Page 1 of 1

Virtuemart Affiliate Component and Affiliate Discounts & OPC

PostPosted: Thu Jan 23, 2014 10:00 pm
by admin
Dear friends, if you are using Virtuemart Affiliate Component and you want to use the discount section where the discount is applied once the VMA username is used at the checkout, you must enable OPC feature at the OPC display tab "DO NOT user ajax for coupons" (related to OPC2.0.225)

Once disabled and a coupon is applied, the page refreshes as normally and VMA is able to create your affiliate coupon code.

Also if you are using Virtuemart 2.0.26D and your VMA coupons don't work at all, you may need to update VMA query at this file:
\plugins\system\vma\vma.php

change this:
Code: Select all
$query            = "INSERT INTO #__virtuemart_coupons VALUES ('', '" . $this->_db->getEscaped($affiliateUsername) . "', '" .

to this:
Code: Select all
$query            = "INSERT INTO #__virtuemart_coupons VALUES ('', '', '" . $this->_db->getEscaped($affiliateUsername) . "', '" .


as towards this version:

/**
* @package VM Affiliate
* @version 4.5.2.7 January 2012
* @author Globacide Solutions http://www.globacide.com
* @copyright Copyright (C) 2006 - 2012 Globacide Solutions
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/



Best Regards,
Stan