Jump to content

Get product combinations with prices


Lukenzo
 Share

Recommended Posts

Our goal is to display available product combinations and their prices on a product page. For example, our store proposes some loyalty discount program, and we should show all product prices in a proper way. The following solution will fit for you in case you have a variety of product combinations and a set of user group discount rules TargetPayandBenefits

Edited by Graingers (see edit history)

Share this post


Link to post
Share on other sites

  • 1 year later...

Hi, 
I have the same question. I would like to display price on the radio buttons for each combination (3 to 4 combinations).

Knowband plugins seems to have a solution but I'm not sure how to implement this.

The screen capture shows what I would like but the prices shown are the base price of the current product.
 

$product = new Product($id_product);  // I beliver you already have the product id.

$attributes = $product->getAttributeCombinations($id_lang);  //$id_lang can be fetch from the cookie context.  $this->context->language->id

 

Thanks if you can help

 

capture-attributes.jpg

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More