VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: ereallstaff on January 09, 2015, 13:36:04 PM

Title: Coupon for guest / not registered users
Post by: ereallstaff on January 09, 2015, 13:36:04 PM
I can't fine how to workout what in topic Coupon for guest / not registered users . Customers are already difficult to arrive to website , than I don't want to add the difficulty of registering too to use discount

Is it possible anywhere or anyway to set this?

THank you
Title: Re: Coupon for guest / not registered users
Post by: ereallstaff on January 09, 2015, 13:51:44 PM
Sorry I am on vm 2.6.6 on joomla 2-5
Title: Re: Coupon for guest / not registered users
Post by: jenkinhill on January 09, 2015, 16:06:09 PM
A coupon code can be used just with guest registration. No need for full registration.   
Title: Re: Coupon for guest / not registered users
Post by: ereallstaff on January 10, 2015, 11:53:02 AM
Thanks for your reply

So that means that the following code I find in following snippet was added by template creator?   :°°

All Files   templates/flexible_stylemart/html/com_virtuemart/cart/helper.php

$user = VmModel::getModel('user');
        if ($user->_id == null || $user->_id == 0) {
            return array('coupon_verified_not_logged', 'is_logged');
        } else {
            $this->cart->couponCode = $coupon_code;
            $this->cart->setCartIntoSession();
            $msg = JText::_('COM_VIRTUEMART_CART_COUPON_VALID');
            return array($msg, 'not_logged');
        }
Title: Re: Coupon for guest / not registered users
Post by: GJC Web Design on January 10, 2015, 13:09:50 PM
didn't even know you could over ride the helper in the template -  - but doesn't exist in core VM2.6
Title: Re: Coupon for guest / not registered users
Post by: jenkinhill on January 10, 2015, 14:03:55 PM
That code does not exist in VM3.0.3 either.