Hide address details. [-- SC_Address --]

Questions and answers about ShopSite Custom Templates

Hide address details. [-- SC_Address --]

Postby arta!!ack » Tue Sep 18, 2012 1:57 am

Hi.
We have set number of clients/customers (300+) who once registered (I will do with a bulk upload) should not have the ability to change the billing address details
I can see that [-- SC_Address --] is a vital part of the checkout process, and was wondering if there was a way of "hiding" the content so the address details are still passed on.
But because the code is generated by shopsite, I cannot find a way to hide the content.

I am by no means an html expert and have tried a couple of ways.
I tried this CSS option.

Code: Select all
.hidden {
  position: absolute !important;
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden;
}


and used it the same way the recalculate button works.

Code: Select all
<div class="hidden">[-- BUTTON Recalculate --]</div>


Code: Select all
<div class="hidden">[-- SC_Address --]</div>



In a nutshell I do not wish a customer to be able to change their address details on the checkout page.

Arthur.
arta!!ack
 
Posts: 47
Joined: Wed Jun 13, 2007 2:23 am
Location: Lancashire UK

Re: Hide address details. [-- SC_Address --]

Postby BFChris » Tue Sep 18, 2012 5:49 am

Or just:

Code: Select all
.hidden {
  display:none;
}
~~Barefoot Chris
--------------------------------
Barefoot Chris Web Design
www.barefootchris.net
--------------------------------
BFChris
 
Posts: 322
Joined: Mon Oct 09, 2006 3:28 pm
Location: PA

Re: Hide address details. [-- SC_Address --]

Postby BFChris » Tue Sep 18, 2012 5:54 am

A slightly trickier but more useful option might be to use Javascript to set the form fields to Read-only. That way people can view the address and see if it is correct, but still not edit.
~~Barefoot Chris
--------------------------------
Barefoot Chris Web Design
www.barefootchris.net
--------------------------------
BFChris
 
Posts: 322
Joined: Mon Oct 09, 2006 3:28 pm
Location: PA


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 23 guests