Page 1 of 1

[vQmod] Product option by customer group

Posted: Tue Apr 09, 2013 1:49 pm
by olimax
I was searching for the ability to add different prices to options by customer group
It seems this was wanted but no one had quite got it.
I found this one by Straighlight but it was a bit of a fail so I took this as a starting point and made it work
http://www.opencart.com/index.php?route ... on_id=7024
I have only tested it on 1.5.2.1 but I think it should be easily adaptable
It seems to work well with Qphoria's excellent Option Price Update Redux
http://www.opencart.com/index.php?route ... on_id=1458
See what you think.

You need to add an extra field. You'll have to add any table suffix

Code: Select all

 ALTER TABLE `product_option_value` ADD `customer_group_id` INT(11) NOT NULL DEFAULT '0';
If you have options already set the initial values of this field to the default group value

Re: [vQmod] Product option by customer group

Posted: Thu Nov 09, 2017 2:44 pm
by vkt
why it can cannot see thr change of front page .i want show peices as customer group.

Re: [vQmod] Product option by customer group

Posted: Thu Nov 09, 2017 3:11 pm
by vkt
vinay tiwari wrote:
Thu Nov 09, 2017 2:44 pm
why it can cannot see thr change of front page .i want show peices as customer group.
if distribuor is loging then only all distributor prices will b displaying and if no login only user prices to b disply.

Re: [vQmod] Product option by customer group

Posted: Thu Nov 09, 2017 6:41 pm
by vkt
work only in opencart v 1.5.4 .1.5.5.,1.5.5. NOT WORK PROPERLY IN 2.3.0.2

Re: [vQmod] Product option by customer group

Posted: Thu Nov 09, 2017 10:15 pm
by vkt
facing fatal error as undefind customer group id

Fatal error: Call to undefined method Cart\Customer::getCustomerGroupId() in C:\xampp\htdocs\postal\vqmod\vqcache\vq2-catalog_model_catalog_product.php on line 340

may anyone fix it