Coupon discount does'n display for specific name of a coupon

Coupon discount does'n display for specific name of a coupon

Postby krizek@.....cz » Tue Aug 28, 2012 5:31 pm

I have a coupon with a name "1234567777–111". The discount doesn't show up after I enter the coupon code. It's actually there but hidden (display:none). When I simply rename the coupon to e.g. "aaa" then everything works fine.

It seems to me like a javascript problem because "display:none" is assigned to the TD after the document is ready but I can't track it down.

Could you pls help?
krizek@.....cz
 
Posts: 8
Joined: Mon Aug 06, 2012 1:28 pm

Re: Coupon discount does'n display for specific name of a coupon

Postby admin » Wed Sep 26, 2012 1:38 pm

hello, the OPC updates top cart only if the "top basket override" is enabled within OPC backend. the problem with the coupon might be that js thinks it is a number and some part of the system does not recognize it. i will check within my demo. the latest AWO on latest OPC for VM1, might also include this bug which will be fixed on next update of OPC1:

hello, i am fixing the issue with awo coupons on ....se
and in case you get around a similar problem, this is the solution (a
fix within my component):

problem:
coupon works only at the cart page, but does not work when the order
is submitted

solution:
\components\com_onepage\ajax\ajaxhelper.php

Code: Select all
function processCoupon(&$d, $after_login=1)
...
        if (method_exists($ps_coupon_process, 'init_coupon_session'))
        {
       $ps_coupon_process->init_coupon_session();
       $rate = $_REQUEST['shipping_rate_id'];
           $d['coupon_code'] =  $saved_coupon;
          /// FIX was done in the following line, original:
$_REQUEST['coupon_code'] = $saved_coupon;
           $_REQUEST['coupon_code'] = $_POST['coupon_code'] = $saved_coupon;
...


the reason for this error was that this line returned no coupon codes
even when $d['coupon_code'] and $_REQUEST['coupon_code'] was set in
file:
\administrator\components\com_awocoupon\helpers\vm_coupon.php

$multiple_coupons = explode(';',JRequest::getVar( 'coupon_code', '', 'post' ));

I will implement the fix in OPC1 for VM1 in the next release (1.2.348+)
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 1.1.x

cron