Hi I'm using OC v.1.5.1.3
I have a problem, when I try to install this modul (click catalog>category) I got this error:
Fatal error: Cannot redeclare ControllerCatalogCategory::discounts() in C:\AppServ\www\oc2\vqmod\vqcache\vq2-admin_controller_catalog_category.php on line 688
thanks for helping
I have a problem, when I try to install this modul (click catalog>category) I got this error:
Fatal error: Cannot redeclare ControllerCatalogCategory::discounts() in C:\AppServ\www\oc2\vqmod\vqcache\vq2-admin_controller_catalog_category.php on line 688
thanks for helping
Hello,galihsan wrote:Hi I'm using OC v.1.5.1.3
I have a problem, when I try to install this modul (click catalog>category) I got this error:
Fatal error: Cannot redeclare ControllerCatalogCategory::discounts() in C:\AppServ\www\oc2\vqmod\vqcache\vq2-admin_controller_catalog_category.php on line 688
thanks for helping
Strange...
The error says the function "discounts()" is declared twice...
That should mean it is inserted twice somehow!?
Could you please P.M. me your file "vqmod\vqcache\vq2-admin_controller_catalog_category.php", so I can have a look at what's going on?
Thanks.
Hello Joe,joecas wrote:Hello,
Having an odd issue with the module that's gone unseen as we've built our stores in 1.5.4.
I can see the category discounts are getting into the database OK (for cat_id 75, I can see customer group 35 is set to get a -25% discount [we're adding margin]), but when you view a product in said category (whose parent id is 41) the price remains unchanged, despite that I'm viewing as a user in this customer group.
We've tried doing a normal, positive discount, sifting through the XML to make sure no vital searches are failing (a search for older OC versions does, as seen earlier in this thread), updated to the latest XML file, and have had no luck. We're stumped on this one...
Any help would be greatly appreciated. If I end up coming up with a solution or finding anything else, I'll be sure to report back.
Thanks!
Do I understand correctly, that ONLY "negative discounts" are not working?
Is the rest working as expected?
I can imagine I did not account for negative values...
I'll have a look after posting this.
Best regards.
Had a quick look, and "negative discounts" seem to be working normally...
Reading your message again, I also see that was not the problem.
Could you try and see if the "Global" Customer Group discount get's applied?
There's only 1 function (in library/customer.php) that actually applies the discounts.
I'm wondering if that function is missing, or not properly inserted...
Thanks.
Reading your message again, I also see that was not the problem.
Could you try and see if the "Global" Customer Group discount get's applied?
There's only 1 function (in library/customer.php) that actually applies the discounts.
I'm wondering if that function is missing, or not properly inserted...
Thanks.
I installed this and all is working except for two things, one of which I need:
NEW: Show Discounts as normal price, or as "Special" (Admin-->System-->Settings-->Options)
NEW: Only Show Discounts when logged in (Admin-->System-->Settings-->Options)
I see nothing under Options regarding discounts. I want to "Show Discounts when logged in ".
Is the extension still being developed? Looks like a year ago you were about to update.
NEW: Show Discounts as normal price, or as "Special" (Admin-->System-->Settings-->Options)
NEW: Only Show Discounts when logged in (Admin-->System-->Settings-->Options)
I see nothing under Options regarding discounts. I want to "Show Discounts when logged in ".
Is the extension still being developed? Looks like a year ago you were about to update.
Do you still have this problem?gfisch wrote:I see nothing under Options regarding discounts. I want to "Show Discounts when logged in ".
What OpenCart version are you using?
Do you have any vQMod errors?
The settings should be under System --> Settings (Option Tab)
I have found that I cannot add/delete/edit any customer groups after the installation. The customer groups button under the Sales tab in the administration panel brings you to the categories list.
Help me please!
I'm using this great module to make a customer group discount.
When I put the % for discount it works fine but I need to add a minimum order value and then this error appears:
PHP Notice: Undefined index: discount_minimum in /home/matel205/public_html/vqmod/vqcache/vq2-admin_controller_catalog_category.php on line 328
Line 328: $this->data['group_discounts'][$group['customer_group_id']] = $this->language->get('text_default_discount') . $group['discount'] . '% @ ' . $group['discount_minimum'];
No vqmod error in the log.
OC version 1.5.4.1
Group Discounts v1.1.0a Beta
I'm using this great module to make a customer group discount.
When I put the % for discount it works fine but I need to add a minimum order value and then this error appears:
PHP Notice: Undefined index: discount_minimum in /home/matel205/public_html/vqmod/vqcache/vq2-admin_controller_catalog_category.php on line 328
Line 328: $this->data['group_discounts'][$group['customer_group_id']] = $this->language->get('text_default_discount') . $group['discount'] . '% @ ' . $group['discount_minimum'];
No vqmod error in the log.
OC version 1.5.4.1
Group Discounts v1.1.0a Beta
Need a little help: getting this error with Mijoshop
Fatal error: Cannot redeclare ControllerCatalogCategory::discounts() in /home/fashts/public_html/components/com_mijoshop/opencart/vqmod/vqcache/vq2-admin_controller_catalog_category.php on line 785
Fatal error: Cannot redeclare ControllerCatalogCategory::discounts() in /home/fashts/public_html/components/com_mijoshop/opencart/vqmod/vqcache/vq2-admin_controller_catalog_category.php on line 785
EDIT: DOH!!!!
When I remove the xml file this problem goes away.
I installed 1.1.0a beta in 1.5.6. It gave me lots of errors about undefined fields so I attempted to uninstall. Then my store gives me:
Notice: Error: Unknown column 'discounts' in 'field list'
Error No: 1054
SELECT DISTINCT discounts, parent_id as cid FROM category WHERE category_id = '1110' in /public_html/cart/system/database/mysql.php on line 50
I installed 1.0.7 and the extension now works but again I try to uninstall and my store goes back to
Notice: Error: Unknown column 'discounts' in 'field list'
Error No: 1054
Mike
When I remove the xml file this problem goes away.
I installed 1.1.0a beta in 1.5.6. It gave me lots of errors about undefined fields so I attempted to uninstall. Then my store gives me:
Notice: Error: Unknown column 'discounts' in 'field list'
Error No: 1054
SELECT DISTINCT discounts, parent_id as cid FROM category WHERE category_id = '1110' in /public_html/cart/system/database/mysql.php on line 50
I installed 1.0.7 and the extension now works but again I try to uninstall and my store goes back to
Notice: Error: Unknown column 'discounts' in 'field list'
Error No: 1054
Mike
cue4cheap not cheap quality
BTW This is the error I get with 1.1.0a:
Warning: Invalid argument supplied for foreach() in /public_html/cart/vqmod/vqcache/vq2-system_library_cart.php on line 502Warning: Invalid argument supplied for foreach() in /public_html/cart/vqmod/vqcache/vq2-system_library_cart.php on line 502
Mike
Warning: Invalid argument supplied for foreach() in /public_html/cart/vqmod/vqcache/vq2-system_library_cart.php on line 502Warning: Invalid argument supplied for foreach() in /public_html/cart/vqmod/vqcache/vq2-system_library_cart.php on line 502
Mike
cue4cheap not cheap quality
Hi
Thanks for the excellent free extension. You're very kind!
It works brilliantly on my site except on one product when the customer is in a discount group.
If the customer is in a group with discount applied and they search for "Zephyr" on my website. Or they go directly to the product's URL (http://www.firstpersonview.co.uk/aircra ... -ii-bundle) they get nothing but a screen full of this error message:
Notice: Undefined index: discounts in /home/sites/firstpersonview.co.uk/public_html/vqmod/vqcache/vq2-system_library_customer.php on line 268
Like this: https://dl.dropboxusercontent.com/u/371 ... rError.gif
Is there a way for me to fix this please?
Thanks
Simon
Thanks for the excellent free extension. You're very kind!
It works brilliantly on my site except on one product when the customer is in a discount group.
If the customer is in a group with discount applied and they search for "Zephyr" on my website. Or they go directly to the product's URL (http://www.firstpersonview.co.uk/aircra ... -ii-bundle) they get nothing but a screen full of this error message:
Notice: Undefined index: discounts in /home/sites/firstpersonview.co.uk/public_html/vqmod/vqcache/vq2-system_library_customer.php on line 268
Like this: https://dl.dropboxusercontent.com/u/371 ... rError.gif
Is there a way for me to fix this please?
Thanks
Simon
Hi,
Great extension, and free
Just two questions,
- Is possible to disable the discount to one product?
- In my store all registered users have a 30% discount by default (VIP). Is possible to display the normal price and VIP, like this:
VIP: 70€
Normal price: 100€
I'm using v1.0.7
Thanks
Great extension, and free

Just two questions,
- Is possible to disable the discount to one product?
- In my store all registered users have a 30% discount by default (VIP). Is possible to display the normal price and VIP, like this:
VIP: 70€
Normal price: 100€
I'm using v1.0.7
Thanks
Hi, please help. I have problem in 1.1.0 with :
2013-12-09 12:35:15 - PHP Warning: Invalid argument supplied for foreach() in vqmod/vqcache/vq2-system_library_cart.php on line 502
2013-12-09 12:35:15 - PHP Warning: Invalid argument supplied for foreach() in vqmod/vqcache/vq2-system_library_cart.php on line 502
Code: Select all
foreach ($options as $product_option_id => $option_value) {
$option_query = $this->db->query("SELECT o.type FROM " . DB_PREFIX . "product_option po LEFT JOIN `" . DB_PREFIX . "option` o ON (po.option_id = o.option_id) WHERE po.product_option_id = '" . (int)$product_option_id . "' AND po.product_id = '" . (int)$product_id . "'");
oc v1.5.6
Group Discounts v1.1.0a Beta
error when looking at the categories discount
Notice: Undefined index: discount_minimum in /vqmod/vqcache/vq2-admin_controller_catalog_category.php on line 821
line 821 contains:
$this->data['group_discounts'][$group['customer_group_id']] = $this->language->get('text_default_discount') . $group['discount'] . '% @ ' . $group['discount_minimum']
this section of code:
Group Discounts v1.1.0a Beta
error when looking at the categories discount
Notice: Undefined index: discount_minimum in /vqmod/vqcache/vq2-admin_controller_catalog_category.php on line 821
line 821 contains:
$this->data['group_discounts'][$group['customer_group_id']] = $this->language->get('text_default_discount') . $group['discount'] . '% @ ' . $group['discount_minimum']
this section of code:
// BOF - Zappo - Group Discounts - Get Group Discounts
$this->data['discounts'] = array();
if (isset($this->request->post['discounts'])) {
$this->data['discounts'] = $this->request->post['discounts'];
} elseif (!empty($category_info)) {
if ($category_info['discounts'] && strpos($category_info['discounts'], '|')) {
$discounts = explode(' ', $category_info['discounts']);
foreach ($discounts as $group) {
$group = explode('|', $group);
$disco = explode('@', $group[1]);
$this->data['discounts'][$group[0]] = array('discount' => $disco[0], 'discount_minimum' => (isset($disco[1]) ? $disco[1] : ''));
}
}
}
$this->data['groups'] = $this->model_catalog_category->getCustomerGroups();
foreach ($this->data['groups'] as $group) {
if (!isset($this->data['discounts'][$group['customer_group_id']])) {
$this->data['discounts'][$group['customer_group_id']] = array('discount' => '', 'discount_minimum' => '');
}
$this->data['group_discounts'][$group['customer_group_id']] = $this->language->get('text_default_discount') . $group['discount'] . '% @ ' . $group['discount_minimum'];
}
// EOF - Zappo - Group Discounts - Get Group Discounts
So, from my reading, this seems like a really incredible mod - thank you for keeping it free, thus far. Hopefully it will work out like I want... What I am thinking is this... the way we do our wholesale business is kind of odd for pricing because the products we sell are caught up in a "MAP" pricing, where everyone who is a distributor has to sell the product for "X" price. So, we cannot use a percentage off of the item.
ExAMPLE: Product A is 19.99 and we can give a 25% discount for wholesale. No MAP pricing.
Product B is 39.99 MAP Pricing Retail and the Wholesale MAP pricing is 29.45.
Instead of figuring out that exact percentage (which is like 24.3%) for items like that, can we put a dollar amount in instead of a percentage? I like the category percentage, because a lot of our products we can just do that, but on those other ones... what's the best option?
ExAMPLE: Product A is 19.99 and we can give a 25% discount for wholesale. No MAP pricing.
Product B is 39.99 MAP Pricing Retail and the Wholesale MAP pricing is 29.45.
Instead of figuring out that exact percentage (which is like 24.3%) for items like that, can we put a dollar amount in instead of a percentage? I like the category percentage, because a lot of our products we can just do that, but on those other ones... what's the best option?
Who is online
Users browsing this forum: No registered users and 2 guests