X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   FastLane and Coupon (https://forum.x-cart.com/showthread.php?t=34541)

espresso 10-11-2007 10:46 AM

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 ?

xray2 10-18-2007 08:29 PM

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.

wjbrewer 10-18-2007 09:42 PM

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'

xray2 10-19-2007 09:08 AM

Re: FastLane and Coupon
 
For option #1 it looks like the changes go into skin1/modules/Buy_Together/buy_together_added.tpl .

wjbrewer 10-19-2007 10:27 AM

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.

xray2 10-19-2007 10:35 AM

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. :roll: Not a show-stopper though so we're plowing through the final pre-launch checklist on the updated site.



-- Xray2

espresso 10-19-2007 03:26 PM

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 :roll:

wjbrewer 10-22-2007 03:59 AM

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 :roll:


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. :roll: 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).

wardworth 02-29-2008 05:08 AM

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?

jct@dcc 03-31-2008 01:17 PM

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.


All times are GMT -8. The time now is 01:37 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.