Promotions module question - Calguy?
Posted: Sun May 15, 2011 5:36 am
I have set up and am using the Calguy ecommerce setup with Cart, Orders, FEU, Self-Registration, Paypal, and Promotions modules.
In the Order process, I have the FE user logged in, sees View Cart with the order, clicks Checkout, and goes to the Billing address screen, then the Confirm Order screen. At the bottom of that page where the order subtotal and details shows up, I inserted the {promotions} coupon code entry box.
However, entering a coupon code and submitting gives a new page which only has the coupon code entry box again and so the user is now stuck there instead of viewing the order with the discounted total and carrying on to payment - very NON user friendly. Everything is working and without using a coupon code is smooth - but using a coupon brings the user into a frustrating loop.
I need to solve this. Been through all the templates, code, settings etc and can't figure out how to make the template action just update and refresh the total on the Confirm Order page instead of go to a new page.
The page ID which has the promotions coupon code box is
"http://www.mysite.com/index.php?page=ch ... rder_id=12"
Upon entering the coupon code, I end up back on my Checkout page (which is blank and just has {Orders} on it)
"http://www.mysite.com/index.php?page=checkout" but now it just has the coupon code box and whether the coupon was valid or not - it is working fine as far as the coupons go - but now there is no option to view the order, see an updated total, proceed to payment etc. To get out of the dead end as the buyer you have to go up to the cart nav, click View Cart, and go back through the billing address and next to Confirm Order again, at which point you see that the discount is now being applied and can proceed to payment via Paypal.
So where in the module coding is the {$actionid}promo_submit defined as to what page you go to afterward.. or how can I get it to just update the existing order page with the correct new total and leave the proceed to payment at the bottom so customers can just pay after receiving their discounted total??
HELP!!???
My Confirm Orders template is here, just to show where Promotions was added:
In the Order process, I have the FE user logged in, sees View Cart with the order, clicks Checkout, and goes to the Billing address screen, then the Confirm Order screen. At the bottom of that page where the order subtotal and details shows up, I inserted the {promotions} coupon code entry box.
However, entering a coupon code and submitting gives a new page which only has the coupon code entry box again and so the user is now stuck there instead of viewing the order with the discounted total and carrying on to payment - very NON user friendly. Everything is working and without using a coupon code is smooth - but using a coupon brings the user into a frustrating loop.
I need to solve this. Been through all the templates, code, settings etc and can't figure out how to make the template action
Code: Select all
<input type="submit" name="{$actionid}promo_submit" value="{$mod->Lang('submit')}"/>
The page ID which has the promotions coupon code box is
"http://www.mysite.com/index.php?page=ch ... rder_id=12"
Upon entering the coupon code, I end up back on my Checkout page (which is blank and just has {Orders} on it)
"http://www.mysite.com/index.php?page=checkout" but now it just has the coupon code box and whether the coupon was valid or not - it is working fine as far as the coupons go - but now there is no option to view the order, see an updated total, proceed to payment etc. To get out of the dead end as the buyer you have to go up to the cart nav, click View Cart, and go back through the billing address and next to Confirm Order again, at which point you see that the discount is now being applied and can proceed to payment via Paypal.
So where in the module coding is the {$actionid}promo_submit defined as to what page you go to afterward.. or how can I get it to just update the existing order page with the correct new total and leave the proceed to payment at the bottom so customers can just pay after receiving their discounted total??
HELP!!???
My Confirm Orders template is here, just to show where Promotions was added:
Code: Select all
{* display the order notes *}
{if $order_obj->get_order_notes() != '' }
<br/>
<fieldset>
<legend><strong>{$Orders->Lang('order_notes')}:</strong> (<a href="{$edit_url}">Edit</a>):</legend>
{$order_obj->get_order_notes()}
</fieldset>
{/if}
{Promotions}
<br/>
<fieldset>
<legend><strong>{$Orders->Lang('payment_options')}:</strong></legend>
{* this is where the payment gateway plugin should be *}
{if isset($payment_gateway_form)}{$payment_gateway_form}{/if}
</fieldset>