Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Cart customization

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-18-2004, 02:22 PM
 
elabdesigns elabdesigns is offline
 

Advanced Member
  
Join Date: May 2003
Location: Mount Airy, NC
Posts: 66
 

Default Cart customization

I am wanting to skip the cart.php file and go straight to the checkout mode.

How can I add the discount/coupons section from the cart.php to the cart.php?mode=checkout page?

When someone adds something to the cart is sends them to the cart.php page, how can I either post a message saying " Thank you. That item has been added to your cart" or send them to the checkout mode. I want to skip the cart.php page all together?


Thanks
Reply With Quote
  #2  
Old 11-18-2004, 02:58 PM
 
western-merc western-merc is offline
 

Advanced Member
  
Join Date: Dec 2003
Location: Tacoma, WA
Posts: 43
 

Default

To prevent a customer from being directed to the cart after adding a product to the cart, go to General Settings in the administrator area and uncheck "Redirect customer to cart".

PhiLL
__________________
X-Cart Version: 4.0.17
Linux 2.4.21-37.ELsmp
Apache 1.3.34
MySQL 4.0.25-standard
PHP 4.4.1
Reply With Quote
  #3  
Old 11-18-2004, 03:18 PM
 
elabdesigns elabdesigns is offline
 

Advanced Member
  
Join Date: May 2003
Location: Mount Airy, NC
Posts: 66
 

Default

Phill-

Thanks, but I want them to go to the cart, just not the cart.php. I want them to go the "new" cart which is the cart.php?mode=checkout page?

Any one have any ideas? To this and my other questions above?
Reply With Quote
  #4  
Old 11-19-2004, 06:46 AM
 
western-merc western-merc is offline
 

Advanced Member
  
Join Date: Dec 2003
Location: Tacoma, WA
Posts: 43
 

Default

When you click the "add to cart" button for a product the form submits to cart.php?mode=add. I guess you could either have it redirect to cart.php?mode=checkout at the end of the add portion of the cart.php code or maybe add the mode=add functionality to the mode=checkout portion of the code.

I know this isn't any specific help, but maybe can help a little bit.
__________________
X-Cart Version: 4.0.17
Linux 2.4.21-37.ELsmp
Apache 1.3.34
MySQL 4.0.25-standard
PHP 4.4.1
Reply With Quote
  #5  
Old 11-19-2004, 07:17 AM
 
elabdesigns elabdesigns is offline
 

Advanced Member
  
Join Date: May 2003
Location: Mount Airy, NC
Posts: 66
 

Default

It sound like your own the right track Phill, now if I could just get a X-Guru to help me out with the coding, I would be golden.

Does anyone know where I can change the redirection?
Reply With Quote
  #6  
Old 11-19-2004, 07:56 AM
 
elabdesigns elabdesigns is offline
 

Advanced Member
  
Join Date: May 2003
Location: Mount Airy, NC
Posts: 66
 

Default Checkout Page

Has anyone noticed that on the checkout page you can change the QTY to 0 and it will remove it, but you can't up the QTY. Why is this?
Reply With Quote
  #7  
Old 11-23-2004, 03:51 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

I've sent you a PM.

For the redirect, above where the smarty display is:

Code:
$smarty->display(....

Put:

Code:
if (!$mode && !$paymentid) { header ("Location: cart.php?mode=checkout"); }

I think that will do it.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:32 PM.

   

 
X-Cart forums © 2001-2020