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

Step by step checkout?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-29-2008, 07:18 AM
 
BodyBalance BodyBalance is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 44
 

Default Step by step checkout?

Hey everyone,

I am still looking for a way to create a step by step checkout process.

It just dawned on me that this might be possible doing something like this.

My first category will be http://companyname.com/home.php?cat=1

When the customer clicks add to cart, I would like them to be redirected to http://companyname.com/home.php?cat=2 then to cat=3 and so on.

Is there some code that will do a +1 to the cat number? I have about 5 pages I would like this to happen on. On the last page, it should just take them to the shopping cart to checkout.

I am using the BCSE multiple add mod if that makes any difference.
__________________
Version 4.1.9
Reply With Quote
  #2  
Old 05-29-2008, 07:45 AM
  Holub's Avatar 
Holub Holub is offline
 

X-Adept
  
Join Date: Jan 2008
Posts: 432
 

Default Re: Step by step checkout?

Hm, I don't use BCSE multiple add mod and I don't know how this `add to cart` function is realized in. But I can tell you simple logic: when you click add2cart you go to cart.php?mode=add and after product is added you redirecting to cart.php via func_header_location function. You should change cart.php and check, if referrer contains 'cat' variable and this variable is less then 5 then you should redirect customer to home.php?cat=$cat+1 (of course, $cat - extracted variable from referrer). Else (cat is equal 5) you should redirect customer to cart.php?mode=checkout.

I'm not write code sample because you have installed module I'm have not.
__________________
Regards,
Anthony Holub

X-Cart Skins Store
- twenty two different skins available;
- both 4.1.x and 4.2.x versions compatible;
- refresh you store now!

Smart menu X-Cart add-on
Featured Products Slide Show X-Cart add-on
"What's New?" FREE X-Cart add-on
Reply With Quote
  #3  
Old 05-29-2008, 08:34 AM
 
BodyBalance BodyBalance is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 44
 

Default Re: Step by step checkout?

Thanks for that information Holub.

BCSE actually still uses buy_now.tpl in conjunction with its own .tpl file

I tried adding what you said to add, but no luck so far. I will mess with it a little bit more.
__________________
Version 4.1.9
Reply With Quote
  #4  
Old 05-29-2008, 11:30 PM
  Holub's Avatar 
Holub Holub is offline
 

X-Adept
  
Join Date: Jan 2008
Posts: 432
 

Default Re: Step by step checkout?

Main sense is not in templates but in modifyed cart.php. Please post in this thread your code changes - I'll try to help you.
__________________
Regards,
Anthony Holub

X-Cart Skins Store
- twenty two different skins available;
- both 4.1.x and 4.2.x versions compatible;
- refresh you store now!

Smart menu X-Cart add-on
Featured Products Slide Show X-Cart add-on
"What's New?" FREE X-Cart add-on
Reply With Quote
  #5  
Old 05-30-2008, 04:53 AM
 
BodyBalance BodyBalance is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 44
 

Default Re: Step by step checkout?

I have reverted back to my original cart.php file.

I didn't realize how many instances of "cart.php?mode=checkout" are in cart.php and I'm not exactly sure which part is calling to what.

Can you show me which code would check the referrer? Smarty is still a foreign language to me.
__________________
Version 4.1.9
Reply With Quote
  #6  
Old 05-30-2008, 05:08 AM
  Holub's Avatar 
Holub Holub is offline
 

X-Adept
  
Join Date: Jan 2008
Posts: 432
 

Default Re: Step by step checkout?

No, you should find
Code:
if ($mode == "add" && !empty($productid)) {
and redirects in this condition's thread. Of course, this condition is corresponded to standart cart.php - not BCSE mod.
__________________
Regards,
Anthony Holub

X-Cart Skins Store
- twenty two different skins available;
- both 4.1.x and 4.2.x versions compatible;
- refresh you store now!

Smart menu X-Cart add-on
Featured Products Slide Show X-Cart add-on
"What's New?" FREE X-Cart add-on
Reply With Quote
  #7  
Old 05-30-2008, 05:16 AM
 
BodyBalance BodyBalance is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 44
 

Default Re: Step by step checkout?

BCSE didn't modify my cart.php file
__________________
Version 4.1.9
Reply With Quote
  #8  
Old 05-30-2008, 05:30 AM
  Holub's Avatar 
Holub Holub is offline
 

X-Adept
  
Join Date: Jan 2008
Posts: 432
 

Default Re: Step by step checkout?

Therefore please see program logic of cart.php from line 215 to line 277 - there the place I talking about.
__________________
Regards,
Anthony Holub

X-Cart Skins Store
- twenty two different skins available;
- both 4.1.x and 4.2.x versions compatible;
- refresh you store now!

Smart menu X-Cart add-on
Featured Products Slide Show X-Cart add-on
"What's New?" FREE X-Cart add-on
Reply With Quote
  #9  
Old 06-06-2008, 08:54 AM
 
BodyBalance BodyBalance is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 44
 

Default Re: Step by step checkout?

Can anyone code this for me at a reasonable cost? I have been trying for the last week to figure this out but I am having absolutly no luck.
__________________
Version 4.1.9
Reply With Quote
  #10  
Old 06-06-2008, 04:59 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Step by step checkout?

Doesn't x-cart use a step-by-step process for checkout by default? Even the Fast Lane Checkout does this in a more graphic manner. Maybe you could modify Fast Lane to get what you are after. In most instances (if not all) it is better to eliminate the number of "steps" it takes to make a purchase. That is the main purpose of the BCSE multiple add mod, to let the customer add multiple items to their cart without have to go back and add more. There is a single-step checkout mod that I have seen, but forget where
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
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 05:26 AM.

   

 
X-Cart forums © 2001-2020