Post by olimax » Tue Apr 09, 2013 1:49 pm

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

Attachments

for 1.5.2.1


User avatar
New member

Posts

Joined
Thu Dec 22, 2011 5:08 pm
Location - Barcelona & London

Post by vkt » Thu Nov 09, 2017 2:44 pm

why it can cannot see thr change of front page .i want show peices as customer group.

Attachments

Last edited by vkt on Thu Nov 09, 2017 3:14 pm, edited 1 time in total.

vkt
Newbie

Posts

Joined
Thu Aug 03, 2017 12:49 pm

Post by vkt » Thu Nov 09, 2017 3:11 pm

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.

vkt
Newbie

Posts

Joined
Thu Aug 03, 2017 12:49 pm

Post by vkt » Thu Nov 09, 2017 6:41 pm

work only in opencart v 1.5.4 .1.5.5.,1.5.5. NOT WORK PROPERLY IN 2.3.0.2

vkt
Newbie

Posts

Joined
Thu Aug 03, 2017 12:49 pm

Post by vkt » Thu Nov 09, 2017 10:15 pm

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

vkt
Newbie

Posts

Joined
Thu Aug 03, 2017 12:49 pm
Who is online

Users browsing this forum: No registered users and 3 guests