Post by galihsan » Thu Jul 11, 2013 4:11 pm

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

Newbie

Posts

Joined
Thu Jul 11, 2013 4:07 pm

Post by AvanOsch » Thu Jul 11, 2013 7:01 pm

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
Hello,

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.

User avatar
Active Member

Posts

Joined
Sat Sep 03, 2011 9:17 pm

Post by AvanOsch » Thu Jul 11, 2013 7:07 pm

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!
Hello Joe,

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.

User avatar
Active Member

Posts

Joined
Sat Sep 03, 2011 9:17 pm

Post by AvanOsch » Thu Jul 11, 2013 7:25 pm

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.

User avatar
Active Member

Posts

Joined
Sat Sep 03, 2011 9:17 pm

Post by gfisch » Fri Aug 02, 2013 9:14 am

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.

Newbie

Posts

Joined
Fri Aug 02, 2013 4:47 am

Post by AvanOsch » Fri Aug 02, 2013 7:41 pm

gfisch wrote:Is the extension still being developed? Looks like a year ago you were about to update.
?????
Yes. it is.
I released version 1.0.7 only a couple of weeks ago!!!

User avatar
Active Member

Posts

Joined
Sat Sep 03, 2011 9:17 pm

Post by AvanOsch » Sun Aug 04, 2013 4:47 am

gfisch wrote:I see nothing under Options regarding discounts. I want to "Show Discounts when logged in ".
Do you still have this problem?
What OpenCart version are you using?
Do you have any vQMod errors?
The settings should be under System --> Settings (Option Tab)

User avatar
Active Member

Posts

Joined
Sat Sep 03, 2011 9:17 pm

Post by UncommonTrend » Mon Aug 05, 2013 3:35 am

This extension is a life saver. Thank you so much.

Newbie

Posts

Joined
Thu Jul 25, 2013 7:35 am

Post by UncommonTrend » Mon Aug 05, 2013 4:41 am

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.

Newbie

Posts

Joined
Thu Jul 25, 2013 7:35 am

Post by Felipe Calife » Mon Aug 26, 2013 11:52 am

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

Newbie

Posts

Joined
Mon Nov 26, 2012 11:22 pm

Post by maryswave » Tue Aug 27, 2013 1:42 pm

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

Newbie

Posts

Joined
Thu Jun 27, 2013 4:50 pm

Post by popcorn0124 » Tue Aug 27, 2013 11:48 pm

This is soooooo GREAT! Just what I need! Thanks a lot

Newbie

Posts

Joined
Wed Nov 21, 2012 8:26 pm

Post by Cue4cheap » Sat Sep 21, 2013 9:26 am

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

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by Cue4cheap » Sat Sep 21, 2013 9:30 am

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

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by ZenDumper » Fri Sep 27, 2013 1:56 am

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

Newbie

Posts

Joined
Thu Nov 15, 2012 8:55 am

Post by dreamfalcon » Fri Nov 29, 2013 8:14 pm

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

Newbie

Posts

Joined
Fri Nov 29, 2013 8:08 pm

Post by jakuba » Mon Dec 09, 2013 7:47 pm

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

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 . "'");

Active Member

Posts

Joined
Fri Jul 08, 2011 12:51 am
Location - CZ-Prague

Post by ocdev » Sat Dec 14, 2013 2:02 am

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:
// 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

New member

Posts

Joined
Wed Sep 11, 2013 3:53 am
Location - Texas

Post by ocdev » Mon Dec 16, 2013 11:51 pm

I put the following in front of the line causing the error, just not sure if this is correct solutions:
if (!isset($group['discount_minimum'])) $group['discount_minimum']='';

at least it stopped the error messages.

New member

Posts

Joined
Wed Sep 11, 2013 3:53 am
Location - Texas

Post by svavrek » Fri Jan 03, 2014 11:35 pm

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?

New member

Posts

Joined
Sat May 11, 2013 12:05 am
Who is online

Users browsing this forum: No registered users and 6 guests