Hello there,
After a member logs in, how does Opencart select the correct product special price for each customer group?
Function getProduct($product_id) in catalog\model\catalog\product.php is only select special price for customer_group_id = $this->config->get('config_customer_group_id')?
V.3038
Thanks in advance for your help.
It doesn't "select the correct product special price for each customer group".Gpli wrote: ↑Sat Oct 12, 2024 9:27 amHello there,
After a member logs in, how does Opencart select the correct product special price for each customer group?
Function getProduct($product_id) in catalog\model\catalog\product.php is only select special price for customer_group_id = $this->config->get('config_customer_group_id')?
V.3038
Thanks in advance for your help.
It selects the special price for the customer group id the signed in customer belongs to which is in $this->config->get('config_customer_group_id').
Which in turn is set in the catalog startup controller via $this->config->set('config_customer_group_id', $this->customer->getGroupId());.
If your question is answered could you add [SOLVED] to the start of the topic title?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Guru Member
Who is online
Users browsing this forum: Amazon [Bot] and 78 guests