Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Responsive Joomla Virtuemart Template - LightMart (SKU# FLEX-00012)

TOPIC: If coupon added check out doesn't work

If coupon added check out doesn't work 8 years 2 months ago #13733

Hi

I bought the lastest version of the lightmart template.
VM 3.0.12 Joomla 3.4.8 Php 5.6

If a customer adds a coupon, the check out doesn't work, keeps looping (Cart updated message)
I have tested this on a clean install (QuickStart) as well, still does not work.

Can you get me a quick solution for this AND for my other open issues, thanks
The topic has been locked.

If coupon added check out doesn't work 8 years 2 months ago #13748

Hi,

Looks like we have made a mistake. Thanks for raising this issue.

It is easy to patch though,

1- open this PHP file:
/templates/flexible_lightmart/html/com_virtumeart/cart/default_pricelist.php

2- Find these 2 lines:
 <input type="text" name="coupon_code" size="20" maxlength="50" class="flexibleCouponInput" autocomplete="off" placeholder="<?php echo (empty($this->cart->cartData['couponCode'])) ? JTEXT::_('TPL_FLEXIBLE_APPLY_ENTER_COUPON_CODE') : $this->cart->cartData['couponCode'];?>" value="<?php echo (empty($this->cart->cartData['couponCode'])) ? "" : $this->cart->cartData['couponCode'];?>"><br/>                
        <input class="flexibleButton" type="submit" name="setcoupon" title="Save" value="<?php echo (empty($this->cart->cartData['couponCode'])) ? JTEXT::_('TPL_FLEXIBLE_APPLY_DISCOUNT_CODE') : JTEXT::_('TPL_FLEXIBLE_APPLY_ANOTHER_DICSOUNT_CODE');?>" >  

3- Replace them with these:
 <input type="text" name="coupon_code" size="20" maxlength="50" class="flexibleCouponInput" autocomplete="off" placeholder="<?php echo (empty($this->cart->cartData['couponCode'])) ? JTEXT::_('TPL_FLEXIBLE_APPLY_ENTER_COUPON_CODE') : $this->cart->cartData['couponCode'];?>" value=""><br/>                
        <input class="flexibleButton" type="submit" name="setcoupon" title="Save" value="<?php echo (empty($this->cart->cartData['couponCode'])) ? JTEXT::_('TPL_FLEXIBLE_APPLY_DISCOUNT_CODE') : JTEXT::_('TPL_FLEXIBLE_APPLY_ANOTHER_DISCOUNT_CODE');?>" >  

This should fix the "Looping" problem. TESTED & CONFIRMED.

Regards.
The topic has been locked.

If coupon added check out doesn't work 8 years 2 months ago #13764

Works for me too (Cleanmart)! Thank you.
Last Edit: 8 years 2 months ago by Erik Kluit.
The topic has been locked.

If coupon added check out doesn't work 8 years 2 months ago #13801

Thanks for confirming.

Case solved, topic is closed.

regards.
The topic has been locked.
Time to create page: 0.220 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo