Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Easy Coupons


lsd_se

Recommended Posts

Hi

 

I recently installed the Easy Coupons contrib and it seems to be working fine as I am not getting any errors and the admin side works perfectly.

 

The problem I've having is that in the window during checkout I ccan see the boxes where I type in the coupon code, but I cannot actually input anything. It's like the boxes and the "cash in" button are images, I cannot highllight them, and I cannot enter anything in the box.

 

I assume that I've made an error in the coding somewhere but I can't find it. Any suggestions?

 

Thanks! :)

Edited by lsd_se
Link to comment
Share on other sites

Hi

 

I recently installed the Easy Coupons contrib and it seems to be working fine as I am not getting any errors and the admin side works perfectly.

 

The problem I've having is that in the window during checkout I ccan see the boxes where I type in the coupon code, but I cannot actually input anything. It's like the boxes and the "cash in" button are images, I cannot highllight them, and I cannot enter anything in the box.

 

I assume that I've made an error in the coding somewhere but I can't find it. Any suggestions?

 

Thanks! :)

 

go into admin side of easy coupons, select configuration, make sure the active checkbox is checked and press update.

 

It is when easy coupons are not activated, the input fields as well as the buttons are still visible but disabled.

Treasurer MFC

Link to comment
Share on other sites

  • 1 month later...

Hello,

 

I have installed Easy Discount, however i am still unable to enter anything into the Easy Coupon text box.

 

I gone through both Easy Discount and Easy Coupon twice making sure i installed the mod correctly and still having issues.

 

The settings in Easy Coupon are:

Activate or Deactivate Easy Coupons - on

Automatically generate coupons at order confirmation - on

 

If anyone can give any suggestions or tips, i would be extremely grateful.

 

Cheers!

Link to comment
Share on other sites

Hello,

 

I have installed Easy Discount, however i am still unable to enter anything into the Easy Coupon text box.

 

I gone through both Easy Discount and Easy Coupon twice making sure i installed the mod correctly and still having issues.

 

The settings in Easy Coupon are:

Activate or Deactivate Easy Coupons - on

Automatically generate coupons at order confirmation - on

 

If anyone can give any suggestions or tips, i would be extremely grateful.

 

Cheers!

 

verify if you have this in application_top.php (catalog side) :

 

include (DIR_WS_MODULES.'easy_coupons_code.php');

 

if you do, then in the module easy_coupons_box.php you have this code:

 

<?php if ($ec_active) {

echo tep_draw_password_field('coupon_code1', '', ' size="2" onKeyup="autotab(this, document.coupon.coupon_code2)" maxlength=4 class="inputbox" ') . ' - ' . tep_draw_password_field('coupon_code2', '', ' size="2" onKeyup="autotab(this, document.coupon.coupon_code3)" maxlength=4 class="inputbox" ') . ' - ' . tep_draw_password_field('coupon_code3', '', ' size="2" onKeyup="autotab(this, document.coupon.coupon_code4)" maxlength=4 class="inputbox" ') . ' - ' . tep_draw_password_field('coupon_code4', '', ' size="2" maxlength=4 class="inputbox" ');

} else {

echo tep_draw_password_field('coupon_code1', '', ' size="2" maxlength=4 disabled class="inputbox" ') . ' - ' . tep_draw_password_field('coupon_code2', '', ' size="2" maxlength=4 disabled class="inputbox" ') . ' - ' . tep_draw_password_field('coupon_code3', '', ' size="2" maxlength=4 disabled class="inputbox" ') . ' - ' . tep_draw_password_field('coupon_code4', '', ' size="2" maxlength=4 disabled class="inputbox" ');

}

 

before that code you add:

 

echo 'Active? '. $ec_active;

 

then visit the page and see what it says.

Treasurer MFC

Link to comment
Share on other sites

  • 2 weeks later...
verify if you have this in application_top.php (catalog side) :

 

include (DIR_WS_MODULES.'easy_coupons_code.php');

 

if you do, then in the module easy_coupons_box.php you have this code:

 

<?php if ($ec_active) {

echo tep_draw_password_field('coupon_code1', '', ' size="2" onKeyup="autotab(this, document.coupon.coupon_code2)" maxlength=4 class="inputbox" ') . ' - ' . tep_draw_password_field('coupon_code2', '', ' size="2" onKeyup="autotab(this, document.coupon.coupon_code3)" maxlength=4 class="inputbox" ') . ' - ' . tep_draw_password_field('coupon_code3', '', ' size="2" onKeyup="autotab(this, document.coupon.coupon_code4)" maxlength=4 class="inputbox" ') . ' - ' . tep_draw_password_field('coupon_code4', '', ' size="2" maxlength=4 class="inputbox" ');

} else {

echo tep_draw_password_field('coupon_code1', '', ' size="2" maxlength=4 disabled class="inputbox" ') . ' - ' . tep_draw_password_field('coupon_code2', '', ' size="2" maxlength=4 disabled class="inputbox" ') . ' - ' . tep_draw_password_field('coupon_code3', '', ' size="2" maxlength=4 disabled class="inputbox" ') . ' - ' . tep_draw_password_field('coupon_code4', '', ' size="2" maxlength=4 disabled class="inputbox" ');

}

 

before that code you add:

 

echo 'Active? '. $ec_active;

 

then visit the page and see what it says.

 

Everything seems to be working now!

 

Thank you for your help!!!

Link to comment
Share on other sites

Hi everyone!

 

I?ve installed the ?Easy Discount? and ?Easy Coupons? contribution on my oscommerce system and everything works perfectly well?on my local server (testing server). The ?Easy Discount? contribution works fine but the ?Easy Coupons? does not record any data into the database when it should on my live server. It works very well on my local server and I can?t see where this bug is coming from. The both version of the shopping cart are exactly identical, except for the configuration files, of course?

 

Anyone has any idea?

 

Thanks!

Link to comment
Share on other sites

Ok, ok... I found what went wrong: i have the "Email Invoice" contribution installed and my code was in the part of the code that does not use the email template (second part of the 'if' statement in checkout_process.php). In one word: something stupid.

Thanks anyway!

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...