Jump to content

Customer group reduction & product combinations


Daenu

Recommended Posts

Customer group reduction & product combinations

 

Using version 1.6.1.6 (latest)

 

The situation is as follows:

 

  1. If product HAS combination AND group reduction
    => Detail page price = wrong
    => shopping cart price = correct
  2. If product HAS NO combination AND group reduction
    => all prices = correct
  3. If product HAS combination AND NO group reduction
    => all prices = correct

 

I've read a lot of topics concerning this subject but they all cover elder versions like 1.6.01 and so on. the last entry i saw was posted in October 2015.

So I wonder if it's (still) a bug or if it's just impossible to have combined products with a group reduction....

 

To say that my client swears that it has worked (sometimes) which isn't really helpful. I did a lot of the things suggested by the before mentioned posts but none of them has solved the problem.

 

Any suggestions?

Edited by Daenu (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
  • 3 years later...

From my POV is BUG
#462 in ProductController.php

// replace
// $combinations[$row['id_product_attribute']]['price'] = (float)Tools::convertPriceFull($row['price'], null, Context::getContext()->currency, false);

// with this
// $combinations[$row['id_product_attribute']]['price'] = (float)Tools::ps_round(Product::getPriceStatic((int)$this->product->id, false, $row['id_product_attribute'], 6), (int)Configuration::get('PS_PRICE_DISPLAY_PRECISION'));

 

  • Like 1
Link to comment
Share on other sites

  • 1 year later...
On 6/26/2020 at 3:00 PM, MarX said:

From my POV is BUG
#462 in ProductController.php

// replace
// $combinations[$row['id_product_attribute']]['price'] = (float)Tools::convertPriceFull($row['price'], null, Context::getContext()->currency, false);

// with this
// $combinations[$row['id_product_attribute']]['price'] = (float)Tools::ps_round(Product::getPriceStatic((int)$this->product->id, false, $row['id_product_attribute'], 6), (int)Configuration::get('PS_PRICE_DISPLAY_PRECISION'));

 

it solved my problem, thanks.
I don't know if it will cause another problem.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...