Zen Cart Logo

coupon code on first page

Views: 1,928

Results 1 to 4 of 4
24 Feb 2012, 4:28 PM
#1
ayoobg avatar

ayoobg

New Zenner

Join Date:
Nov 2011
Posts:
34
Plugin Contributions:
1

coupon code on first page

Hi,

just a query! currently the discount coupon option is set on the "checkout payment" page, i would like to place the coupon option on the "shopping cart" page. However instead of rewriting the entire code for zen cart i manage to trick zen cart into thinking that the user entered the coupon code during the "shopping cart" page by creating a input box and writing the coupon code to the session id for the coupon code, i.e:

During the "shopping cart" stage if i set:

$_SESSION['cc_id'] = 6;

it makes zen cart think that the coupon id was set to 6 (coupon code 6 was selected). And this works perfectly. however i was just wondering if there are any consequence in setting the coupon code earlier on during the checkout stages? so far everything is going well, but is there anything i should be aware of before i move on??

7 Mar 2012, 5:53 PM
#2
gsmafia avatar

gsmafia

New Zenner

Join Date:
Nov 2004
Location:
Portugal
Posts:
25
Plugin Contributions:
0

Re: coupon code on first page

Hi, i need to put the box coupon in another page...anyone does how do this?

Thanks.

9 Mar 2012, 4:42 PM
#3
gsmafia avatar

gsmafia

New Zenner

Join Date:
Nov 2004
Location:
Portugal
Posts:
25
Plugin Contributions:
0

Re: coupon code on first page

any help here?

Thanks!

14 Mar 2012, 5:56 PM
#4
ayoobg avatar

ayoobg

New Zenner

Join Date:
Nov 2011
Posts:
34
Plugin Contributions:
1

Re: coupon code on first page

I've tried it, but it's not 100%, getting mixed results and a lot of errors. will post in future when i get more time to work on it:wink: