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

FastLane and Coupon

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-11-2007, 10:46 AM
 
espresso espresso is offline
 

eXpert
  
Join Date: Apr 2007
Location: Ontario, Canada
Posts: 227
 

Default FastLane and Coupon

I noticed that when a customer logs into the cart (new or returning), Fastlane by-passes the first page (your cart). That is the page where the customer can redeem a discount coupon.
How does everybody deal with this ? Has anyone figured out how to call the coupon template from the payment page instead ?
__________________
Rene
End user - merchant
In the upgrade process 4.6.6 to 5.4.x


Mods I miss in 5.4.x:
xCMS, Create-A-Sale, On-Sale AC, Kit Builder AC, Manufacturer-A-Z BCSE, Product-Bundle BCSE, Pre-Order BCSE, Customer Quotes BCSE
Reply With Quote
  #2  
Old 10-18-2007, 08:29 PM
 
xray2 xray2 is offline
 

Member
  
Join Date: Jun 2007
Posts: 20
 

Default Re: FastLane and Coupon

I've noticed the same thing and am looking at how to add it now.

*sigh* yet more customizations required for missing x-cart features.
__________________
4.1.8
X-Cart AOM, Buy Together, Review Approval
CDSEO + Manufacturers + Static Pages
Reply With Quote
  #3  
Old 10-18-2007, 09:42 PM
  wjbrewer's Avatar 
wjbrewer wjbrewer is offline
Banned
 

X-Adept
  
Join Date: Feb 2005
Location: Pittsburgh, PA
Posts: 504
 

Default Re: FastLane and Coupon

The Fast Lane checkout doesn't skip the cart. This is the page that displays when a customer adds an item to the cart using the Buy Together module. The reason the cart.php page is skipped is to get the customers through the checkout as fast as possible to reduce abandoned carts.

There are 2 options to change this:

Option 1. Add the coupon box to the "Added to your cart" page:

Near line 70, after this code:
Code:
<td>{include file="buttons/button.tpl" button_title=$lng.lbl_proceed_checkout style="button" href="`$catalogs.customer`/cart.php?mode=checkout"}</td> </tr></table></div> </td> </tr>

Insert this:
Code:
{* Display Coupon on 'Added Page' *} <tr> <td colspan="3"> {include file="modules/Discount_Coupons/add_coupon.tpl} </td></tr>

---

Option 2.

Change the link that goes directly to the checkout to go to the cart.php page instead.

It is in the skin1/modules/Buy_Together/buy_together_added.tpl.

Change this (two places):

Code:
{include file="buttons/button.tpl" button_title=$lng.lbl_proceed_checkout style="button" href="`$catalogs.customer`/cart.php?mode=checkout"}

to this:

Code:
{include file="buttons/button.tpl" button_title=$lng.lbl_proceed_checkout style="button" href="`$catalogs.customer`/cart.php"}

Then login to the languages section of the admin and change the language variable lbl_proceed_checkout to 'continue to cart'
Reply With Quote
  #4  
Old 10-19-2007, 09:08 AM
 
xray2 xray2 is offline
 

Member
  
Join Date: Jun 2007
Posts: 20
 

Default Re: FastLane and Coupon

For option #1 it looks like the changes go into skin1/modules/Buy_Together/buy_together_added.tpl .
__________________
4.1.8
X-Cart AOM, Buy Together, Review Approval
CDSEO + Manufacturers + Static Pages
Reply With Quote
  #5  
Old 10-19-2007, 10:27 AM
  wjbrewer's Avatar 
wjbrewer wjbrewer is offline
Banned
 

X-Adept
  
Join Date: Feb 2005
Location: Pittsburgh, PA
Posts: 504
 

Default Re: FastLane and Coupon

Quote:
Originally Posted by xray2
For option #1 it looks like the changes go into skin1/modules/Buy_Together/buy_together_added.tpl .

Yes, the buy_together_added.tpl for both options.
Reply With Quote
  #6  
Old 10-19-2007, 10:35 AM
 
xray2 xray2 is offline
 

Member
  
Join Date: Jun 2007
Posts: 20
 

Default Re: FastLane and Coupon

Thanks again for the code Bill, it works as advertised!

I saw your promotions, sales and specials mod a few days ago. If our store was not under feature lock-down right now I would have purchased it before go-live. That's the next mod on my list to buy.

Unfortunately, I just discovered that X-Cart only supports one coupon per cart. So much for a free shipping _AND_ 10% off weekend. Not a show-stopper though so we're plowing through the final pre-launch checklist on the updated site.



-- Xray2
__________________
4.1.8
X-Cart AOM, Buy Together, Review Approval
CDSEO + Manufacturers + Static Pages
Reply With Quote
  #7  
Old 10-19-2007, 03:26 PM
 
espresso espresso is offline
 

eXpert
  
Join Date: Apr 2007
Location: Ontario, Canada
Posts: 227
 

Default Re: FastLane and Coupon

Once again, thank you Bill for great contributions !
However, it is not only your mod that causes the check out to skip the first page, I was refering to x-cart original Fast-Lane-Check-Out.
Try the x-cart demo on their demo website and you will see that you will never have the opportunity during checkout to enter a discount coupon.
The only time you have a chance to enter a discount coupon is when you add a product to the cart (which brings up the standard cart page) and when you click on "cart" (which also brings up the standard cart page).
I'm still wondering how the community is dealing with this.
Thanks to your ideas, I called up the "modules/Discount_Coupons/add_coupon.tpl" from "skin1/modules/Fast_Lane_Checkout/checkout_2_method.tpl".
Unfortunately, I was not able to place it above the "payment options" because I guess it interferes with the {capture} code (I'm not a pro) so I placed it at the bottom of the page and it works.
It's uggly though because it'll redirect you to the first page (your cart) again. But at least, customers don't miss the opportunity to enter a discount code.
I'm sure Bill, your new long awaited check-out module will take care of all this
__________________
Rene
End user - merchant
In the upgrade process 4.6.6 to 5.4.x


Mods I miss in 5.4.x:
xCMS, Create-A-Sale, On-Sale AC, Kit Builder AC, Manufacturer-A-Z BCSE, Product-Bundle BCSE, Pre-Order BCSE, Customer Quotes BCSE
Reply With Quote
  #8  
Old 10-22-2007, 03:59 AM
  wjbrewer's Avatar 
wjbrewer wjbrewer is offline
Banned
 

X-Adept
  
Join Date: Feb 2005
Location: Pittsburgh, PA
Posts: 504
 

Default Re: FastLane and Coupon

Quote:
Originally Posted by espresso
The only time you have a chance to enter a discount coupon is when you add a product to the cart (which brings up the standard cart page) and when you click on "cart" (which also brings up the standard cart page).

I'm sure Bill, your new long awaited check-out module will take care of all this

It probably will not be stock, but it would be easy to add to the one page template (maybe I will make this an option).


Quote:
Originally Posted by xray2

Unfortunately, I just discovered that X-Cart only supports one coupon per cart. So much for a free shipping _AND_ 10% off weekend. Not a show-stopper though so we're plowing through the final pre-launch checklist on the updated site.

Just a FYI, the On Sale module allows unlimted coupons per order (for coupons made with the On Sale module).
Reply With Quote
  #9  
Old 02-29-2008, 05:08 AM
  wardworth's Avatar 
wardworth wardworth is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 78
 

Default Re: FastLane and Coupon

Has anyone worked out how to add the 'redeem a coupon' box to the actual fast lane checkout rather than the 'items' page? It seems that it would make more sense for it to be on the payment method page, rather than on the items page.

balinor has got it working with the standard checkout, but I'm struggling to get it working with the fast lane checkout.

Any ideas?
__________________
:: Wardworth Ltd
:: X-Cart 4.1.8
Reply With Quote
  #10  
Old 03-31-2008, 01:17 PM
 
jct@dcc jct@dcc is offline
 

Member
  
Join Date: Aug 2007
Posts: 12
 

Default Re: FastLane and Coupon

Quote:
Originally Posted by wardworth
Has anyone worked out how to add the 'redeem a coupon' box to the actual fast lane checkout rather than the 'items' page? It seems that it would make more sense for it to be on the payment method page, rather than on the items page.

balinor has got it working with the standard checkout, but I'm struggling to get it working with the fast lane checkout.

Any ideas?

I moved the coupon code to \xcartdir\skin1\modules\Fast_Lane_Checkout\checkou t_2_method.tpl and it worked -- the coupon box is on the payment method page.
__________________
xcart-4.1.8 [linux]
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 12:07 PM.

   

 
X-Cart forums © 2001-2020