Re: discount coupon not working
They have a coupon - it is given to them on a flyer or via a sponsors url....
for example
"http://www.monkeydesignhouse.com/shop/index.php?sponsor=abc123"
Some of these coupons will mean they get their products free.
The way it is currently means that when they enter their coupon they have to enter CC details or else the coupon will not be applied on step 3.
I hope I am explaining myself properly.
Thanks for your help.
Marc
Re: discount coupon not working
I see what you mean by the redeem button not being there. I set up a test account with you. First of all you need to go to admin Modules, Order Total Modules and see if it is activated, if not it will not show up on the check out page.
Re: discount coupon not working
Thanks for looking at this for me...
I have coupons switched on....
Discount Coupon
This module is installed
true
Sort Order
280
Include Shipping
false
Include Tax
true
Re-calculate Tax
Credit Note
Tax Class
--none--
But still no redeem button - any other advice???
Re: discount coupon not working
There's a small javascript error causing you grief.
/includes/modules/order_total/ot_coupon.php
line 89:
Change this:
Code:
'field' => zen_draw_input_field('dc_redeem_code', '', 'id="disc-'.$this->code.'" onchange="submitFunction(0,0)"'),
to this:
Code:
'field' => zen_draw_input_field('dc_redeem_code', '', 'id="disc-'.$this->code.'" onkeyup="submitFunction(0,0)"'),
Changing this will allow them to just type in the code and press Enter if they've done anything in the coupon-redemption field.
Re: discount coupon not working
Ok - great - your right DrByte - that does work (if they change something in the coupon box)
However my coupon code is entered automatically.
for example
"http://www.monkeydesignhouse.com/shop/index.php?sponsor=abc123"
this sets session sponsor and is pulled into the sign-up form and the coupon form.
So ideally i need to add a 'PRESS HERE TO REDEEM YOUR COUPON CODE' button that doesn't argue with the payment selection further down.
Any help will be appreciated - even its a private message with a quote to fix this.
Marc
Re: discount coupon not working
Okay, change the line to this instead:
Code:
'field' => zen_draw_input_field('dc_redeem_code', '', 'id="disc-' . $this->code . '" onkeyup="submitFunction(0,0)"') . zen_image_submit(BUTTON_IMAGE_SUBMIT, BUTTON_SUBMIT_ALT, ' onclick="checkCouponCode(this, \'dc_redeem_code\');"'),
and add to /includes/modules/pages/checkout_payment/jscript_main.php, as shown:
Code:
function methodSelect(theMethod) {
if (document.getElementById(theMethod)) {
document.getElementById(theMethod).checked = 'checked';
}
}
function checkCouponCode(theForm, theField) {
if (document.theForm.theField) {
if (document.theForm.theField.length || document.theForm.theField.value) {
submitter = null;
return true;
}
}
return false;
}
//--></script>
No need to prepare a quote ... just please share your thanks with a donation here: http://www.zen-cart.com/index.php?ma...es&pages_id=14
Re: discount coupon not working
DrByte you are my most favourite person of the week. THANK YOU SO MUCH.
I really appreciate your time and efforts - My whole system is all working.
THANKS SOOOOOOO MUCH.
Marc