Jump to content
Jack_mcs

Gift Vouchers Secure

Recommended Posts

If this is an upgrade from a differ Gift Voucher asson, be sure to read the instruction file for that. Also, be sure you ran the install file twice as mentioned in the install file. If that isn't it, then all I can think of is that you don't have an active coupon or maybe it doesn't apply to what you are ordering, like an amount limit.

Share this post


Link to post
Share on other sites

No, it's a fresh install.  I made some active coupons, although once made they won't let me edit them (strange).  And I made sure to put $50 in the shopping cart to test (since that was the minimum purchase for the coupons).

 

I also found a bug that's very strange.  I emailed myself a gift voucher, but when I clicked the link to redeem it, I received this error:

Parse error: syntax error, unexpected ';' in /home/dreaming/www/coyoteas-store/catalog/gv_redeem.php on line 29

this is the line it's referring to:

$gv_query = tep_db_query("select c.coupon_id, c.coupon_amount from coupons c, coupon_email_track et where coupon_code = '" . tep_db_input(($voucher_number) . "' and c.coupon_id = et.coupon_id");

 

Share this post


Link to post
Share on other sites

You seem to be missing a closing bracket or have an extra opening bracket.  ie you have three opening ( and only two closing ).

Dan

Share this post


Link to post
Share on other sites
10 hours ago, dreaminggates said:

$gv_query = tep_db_query("select c.coupon_id, c.coupon_amount from coupons c, coupon_email_track et where coupon_code = '" . tep_db_input(($voucher_number) . "' and c.coupon_id = et.coupon_id");

@Dan Coleis correct. There is an extra left parenthesis for the tep function. To fix it, change the above to

    $gv_query = tep_db_query("select c.coupon_id, c.coupon_amount from coupons c, coupon_email_track et where coupon_code = '" . tep_db_input($voucher_number) . "' and c.coupon_id = et.coupon_id");

Regarding the code not working, what version of oscommerce are you using? And how did you do the installation - following the instructions or with a compare program?

Share this post


Link to post
Share on other sites
1 hour ago, dreaminggates said:

osCommerce v.2.3.4.1

That's not a clear answer, though you probably wouldn't know that. The official version uses that number but so do some of the CE versions, and the installation is different for those two. Do you recall where you downloaded the package from - here or github?

In either case, the instructions are not very good, I'm sorry to  say. If you used the install from the Version_CE directory, that assumes you have the modular checkout addon installed. If you used the Version_2.3.4 install, that is probably the one you want but the instructions are sparse. In my defense, I hurried the release because the addon it is meant to replaces would not work in 2019. I will be improving upon the instructions when I can find the time. I do apologize to you, and to anyone else, that have problems due to the instructions.

Share this post


Link to post
Share on other sites

Hello,

I am running Gift Vouchers Secure 1.1 on both OS Commerce 2.3.4.1 and OS Commerce 2.3.1 with PHP 5.3. In both cases, if I enter a coupon code, the Credit Card fields disappear so the checkout cannot be completed.

Any insight would be greatly appreciated!

 

Brad

 

Share this post


Link to post
Share on other sites

The JS code is not closed.
i assume not even your footer show, besides the CC entry.
( conclusion: bad code................... or more likely............. a template you use/bought............. not compatible with add-on)
Excuse coming in 1,2,3
GO:


- ICECAT specialist.
(Icecat: open feed with product information, data-sheets for oscommerce.)
- CSV IMPORT specialist.
(manage your suppliers via supplier manager)
Contact me via PM.

Share this post


Link to post
Share on other sites
10 hours ago, Talen7 said:

I am running Gift Vouchers Secure 1.1 on both OS Commerce 2.3.4.1 and OS Commerce 2.3.1 with PHP 5.3. In both cases, if I enter a coupon code, the Credit Card fields disappear so the checkout cannot be completed.

I've not ran across this problem. My guess is it has to do with the php version you are running. Those versions of oscommerce should run on php 5.4 without any issues to so I suggest making that change. I don't have a test shop here with this addon installed that will run with php 5.3 so I can't test it. But it might also be the version of the files you are using. The latest changes are only for shops that can load modules. Your 2.3.4.1 shop should be able to do that but not the 2.3.1. If you have used code from the non-CE versions in the package, you may have unfinished code since not all of that was updated, as I recall.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×