Kryptronic Software Support Forum

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.

#26 06-18-2007 12:29:47

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Turning off residential/commercial in registration form

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

 

#27 06-18-2007 14:37:27

lewaff
Member
From: Nuneaton England
Registered: 03-21-2005
Posts: 298
Website

Re: Turning off residential/commercial in registration form

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 sad
I have to revert back to one of my other sites which uses Mal shopping cart. sad
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


Thanks In advance
Lewis Afford 

wwwqualitechnic.co.uk   (CCP6 UK/EU Version)

Offline

 

#28 06-18-2007 18:44:13

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Turning off residential/commercial in registration form

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)

Code:

$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

Code:

$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

 

#29 06-19-2007 12:32:06

lewaff
Member
From: Nuneaton England
Registered: 03-21-2005
Posts: 298
Website

Re: Turning off residential/commercial in registration form

Thanks John I have done that and its seems to be fine
Thanks again
lewis


Thanks In advance
Lewis Afford 

wwwqualitechnic.co.uk   (CCP6 UK/EU Version)

Offline

 

Board footer