Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Multiple redemption fields


novalogix

Recommended Posts

hi all, i have been using this mod for a while and now i want to allow my customers to redeem 3 coupons/vouchers in 1 order. i have made the cosmetic changes to have 3 fields but the first 2 fields are not responding. would anyone care to help?

 

this is the code i made:

//multiple redemption code fields

$selection_string .= "Please enter your coupon/voucher code in the following fields. (One code per field only) " . '<p>';

 

$selection_string .= TEXT_ENTER_COUPON_CODE . tep_draw_input_field('gv_redeem_code') . '<p>';

$selection_string .= TEXT_ENTER_COUPON_CODE . tep_draw_input_field('gv_redeem_code') . '<p>';

$selection_string .= TEXT_ENTER_COUPON_CODE . tep_draw_input_field('gv_redeem_code') . '</td>';

Link to comment
Share on other sites

you have to name your 3 fields differently, each one must have a unique name.

 

Suggest to name them like 'gv_redeem_code_1' /_2 and _3

and then you have to update your code to read each of these separate fields and ensure any references to 'gv_redeem_code' have been replaced by _1/_2/_3 equivalent code.

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

can somebody pls help me with this? i am not familiar with the codes.

 

i want to have 3 fields for entering the codes but all must be activated by 1 redeem button. and it must accept when any 1 of 3 is filled up and of course not go through when all 3 are empty. i am using Credit Class/Gift Vouchers/Discount Coupons (Version 5.06). please help me with the coding and thanks again!

Link to comment
Share on other sites

sorry, I don't have this contribution installed so can't help.

Suggest to post this question in the official support thread; more people actually using that contribution will receive your question for help

 

Good luck

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...