View Single Post
  #2  
Old 11-12-2009, 11:47 PM
 
ZFalcon ZFalcon is offline
 

Newbie
  
Join Date: Sep 2007
Posts: 8
 

Default Re: Pulling my hair out ... Following Coupon Code

Hi All,

I guess I may end up with some hair left on my head afterall ... because I found the correct place to make the edits, but still can't seem to pass through the $payment variable (I hardcoded in the number 1 since right now we only accept credit cards, and that works as a temporary solution.)

The thread of files to get to this point is :

shop/skin1/modules/Fast_Lane_Checkout/checkout_3_place.tpl
Added the following file, which allows coupon entry (at this point, the variable $paymentid does equal what was selected by the customer in checkout step 2.)

shop/skin1/modules/Discount_Coupons/add_coupon
Posts to cart.php

shop/cart.php
Leads to the next step

shop/modules/Discount_Coupons/discount_coupons.php
File I edited, where I ended up hardcoding in the paymentid=1 but would like to be able to add more payment methods in the future, so still need help!

cart.php?paymentid=1&mode=checkout
What I replaced "cart.php?mode=checkout" with in the discount_coupons.php file so it goes back to the correct page.

The only remaining question! :
Anyone have any idea how to dynamically get the paymentid at this point so it doesn't have to be hard coded as the value of 1? Trying paymentid=$paymentid just leaves the value blank, so for some reason between the top step listed here, where $paymentid does equal whatever the customer selects, and this bottom step, it seems to completely lose any value of $paymentid and makes it null.

Does it need to be passed through from step to step somehow, and if so, how would I do that, or is it stored somewhere as another variable so I can just use that in the URL string? Any help on how to do this would be appreciated!

Thanks!
~David
__________________
Version 4.0.16
Reply With Quote