VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: ralfeez on April 25, 2015, 16:27:48 PM

Title: No coupon field during checkout
Post by: ralfeez on April 25, 2015, 16:27:48 PM
VM2.6.18 and J2.5.28 - My coupon box does not even show up. Any help is appreciated and Yes it is checked in the configuration settings and I tried AWOCoupons but it did not make a difference. See http://screencast.com/t/zL1dSpsF
Thank you,
Ralph
Title: Re: No coupon field during checkout
Post by: ralfeez on April 25, 2015, 16:57:03 PM
Here are the configuration settings http://screencast.com/t/9y7ehaekve
Thank you,
Ralph
Title: Re: No coupon field during checkout
Post by: ralfeez on April 25, 2015, 17:09:28 PM
If you could point me to the code that is supposed to display the coupon field, then I will try to trace it back. This is a live website, so I am trying to do as little damage as possible while solving the issue.
Thank you,
Ralph
Title: Re: No coupon field during checkout
Post by: ralfeez on April 25, 2015, 18:00:03 PM
There are two coupons currently installed, http://screencast.com/t/g8VFKQsNR9
Any suggestions will help. Where should I look first? How would you troubleshoot this?
Thank you for anything that you suggest,
Ralph
Title: Re: No coupon field during checkout
Post by: ralfeez on April 25, 2015, 19:15:16 PM
Okay I just did some more testing. This is a Yootheme template, but I am not seeing any jQuery conflict notifications. I did try jQueryEasy and it did not make a difference. I also tried various browsers IE, Firefox, Chrome and made no difference. Any suggestions? I can't change the template on this live website, but that will be the next step when I can create a test version.
Ralph
Title: Re: No coupon field during checkout
Post by: ralfeez on April 25, 2015, 20:33:55 PM
Could someone please attach a screenshot of a working website and the one page checkout where the coupon box is supposed to be in VM2. I am not finding it in the code anywhere.
Thank you,
Ralph
Title: Re: No coupon field during checkout
Post by: ralfeez on April 25, 2015, 21:46:47 PM
Okay I have over 75 views of this subject and not one response. Does anyone have this setup currently working? If so, please just let me know. I would love to see it.
thank you,
Ralph
Title: Re: No coupon field during checkout
Post by: GJC Web Design on April 25, 2015, 21:57:30 PM
can only be your template.. u get no answers because no one has this problem

if you want to see a clean and up to date J2.5.28/VM2.6.18 with no template over rides of vm->  http://www.gjcwebdesign.com/vm2t1

could also be only u and me are the only two sado's web working on a Saturday night..  ;)

My excuse is my white disco suit is at the cleaners.. what's yours?  ;)
Title: Re: No coupon field during checkout
Post by: ralfeez on April 25, 2015, 22:01:49 PM
I have a customer screaming into the phone every 15 minutes.... ugh.... ;)
Title: Re: No coupon field during checkout
Post by: GJC Web Design on April 25, 2015, 22:17:08 PM
the std tmpl. code for the coupon is  components\com_virtuemart\views\cart\tmpl\default_pricelist.php

compare what in your template - as you can see it uses a sub template default_coupon.php

<?php
if (VmConfig::get ('coupons_enable')) {
?>

<tr class="sectiontableentry2">
<td colspan="4" align="left">
<?php if (!empty($this->layoutName) && $this->layoutName == 'default') {

echo $this->loadTemplate ('coupon');
}
?>


<?php if (!empty($this->cart->cartData['couponCode'])) { ?>
<?php
echo 
$this->cart->cartData['couponCode'];
echo $this->cart->cartData['couponDescr'] ? (' (' $this->cart->cartData['couponDescr'] . ')') : '';
?>


</td>

<?php if (VmConfig::get ('show_tax')) { ?>
<td align="right"><?php echo $this->currencyDisplay->createPriceDiv ('couponTax'''$this->cart->pricesUnformatted['couponTax'], FALSE); ?> </td>
<?php ?>
<td align="right"> </td>
<td align="right"><?php echo $this->currencyDisplay->createPriceDiv ('salesPriceCoupon'''$this->cart->pricesUnformatted['salesPriceCoupon'], FALSE); ?> </td>
<?php } else { ?>
</td><td colspan="3" align="left">&nbsp;</td>
<?php
}

?>

</tr>
<?php ?>
Title: Re: No coupon field during checkout
Post by: ralfeez on April 25, 2015, 22:32:35 PM
Thank you. It helps a lot just to see a working website. The one that I am working on works perfectly except for the coupon field. It has been working for quite a while now.
Thank you again
Title: Re: No coupon field during checkout
Post by: Huntchuks on April 30, 2016, 23:38:08 PM
Any luck with this? I have the same problem, no coupon box anymore. Joomla 2.5.28 and VirtueMart 2.6.12.2. I know, old stuff but I need a plugin to be able to move to Joomla 3x and the developer seems to have stopped support.
Title: Re: No coupon field during checkout
Post by: jenkinhill on April 30, 2016, 23:54:36 PM
Using default VM template or third party? It really has to be a template problem.

It does not take too much work to update plugins for VM3. http://docs.virtuemart.net/tutorials/development/175-code-adjustments-for-virtuemart-3.html
Title: Re: No coupon field during checkout
Post by: Huntchuks on May 02, 2016, 23:20:36 PM
Unfortunately I have not been using anything but the Joomla YooTheme template and if I change it to Default it makes no difference. It has been working ok till a couple of months ago. Updating the DigiToll plugin is not something easily done as your link suggests and I believe that is why the developer stopped supporting it, there was discussions in the forum about VirtueMart updates breaking his code.