You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
This has just proven to not be the solution either. If you delete the cookies for the site from the broswer and try to create a new account, it does not populate the field. So you nee to switch back to the origanel code for these fields for now.
John
Offline
Thanks John
I have quickly put it back These Cookies Are Very strange with CCP6
I find that some customers phone up to do the order,and i find it hard to do through CCP6 as the cookies keep bringing me back( My Name) and my address even though i have logged out and created a new user ![]()
I have to revert back to one of my other sites which uses Mal shopping cart. ![]()
Come on Howard Lets us get rid of Res/Comm as most us uk uses dont require it, and there has been a good few asking.
Remember with a live cart it cost too much to wait to find that the customers could not order from you.
and why are the cookies such a pain with CCP6
lewis afford
lewaff@btinternet.com
www1st4mobileparts.co.uk
www1st-4-mobile-accessories.co.uk
www1st4mobilebits.co.uk
www1st4mobilefones.co.uk
wwwqualitechnic.co.uk
www1st4mobilebatteries.co.uk
wwwmobile-phone-batteries.eu
Offline
It would seem that if you really want to get rid of this field then go to your private directory private/apps/{app}/CCP_Checkout and edit CCP_Checkout.php in Function: cogetaddress and look for (as I have not found a better way to get the field to populate with residential or comerical with out selecting it manually)
$reqok = 1;
if (empty($address['fname'])) {$reqok = 0;}
if (empty($address['lname'])) {$reqok = 0;}
if (empty($address['addone'])) {$reqok = 0;}
if (empty($address['city'])) {$reqok = 0;}
if (empty($address['stateprov'])) {$reqok = 0;}
if (empty($address['country'])) {$reqok = 0;}
if (empty($address['postalcode'])) {$reqok = 0;}
if (empty($address['rescom'])) {$reqok = 0;}
if (!($this->globals('khxc_user.phone'))) {$reqok = 0;}
if (empty($reqok)) {$address = array();}
if ($this->debug) {$this->debugger("cogetaddress: Worked with billing address.");}and either remove or comment out the requirment for rescom
$reqok = 1;
if (empty($address['fname'])) {$reqok = 0;}
if (empty($address['lname'])) {$reqok = 0;}
if (empty($address['addone'])) {$reqok = 0;}
if (empty($address['city'])) {$reqok = 0;}
if (empty($address['stateprov'])) {$reqok = 0;}
if (empty($address['country'])) {$reqok = 0;}
if (empty($address['postalcode'])) {$reqok = 0;}
//if (empty($address['rescom'])) {$reqok = 0;}
if (!($this->globals('khxc_user.phone'))) {$reqok = 0;}
if (empty($reqok)) {$address = array();}
if ($this->debug) {$this->debugger("cogetaddress: Worked with billing address.");}which should kill it as being required to checkout. From this point you could either hide the field by putting HIDDEN in the type field for the rescom entries or remove them all together (but I would be carefull about doing that).
As always be careful and make backups.
John
Last edited by dh783 (06-18-2007 18:51:24)
Offline
Thanks John I have done that and its seems to be fine
Thanks again
lewis
Offline