Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted (edited)

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

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

 

 

Easy Coupons Requires Easy Discount http://www.oscommerce.com/community/contributions,3945

  • 1 month later...
Posted

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!

Posted
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

  • 2 weeks later...
Posted
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!!!

Posted

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!

Posted

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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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