Jump to content

Get attributes' price by ID


Cenzy

Recommended Posts

Hi everyone, I'm new in prestashop.

My question in detail is:
How can I get the impact price of an attribute if I have his ID?

 

Example:

 

I've the attribute "Red" with impact price of €20,00 and ID 7. How can I do?

I've searched in product.js but nothing for my purpose...

 

Sorry for bad english, thank you!

Link to comment
Share on other sites

Hi.

 

First, an attribute has no impact on price, is the product combination who has it.

 

How to get the price of a combination :

$combination = new Combination($id_combination);
/* then access */
$combinacion->price;

Notice that this is not javascript, but php.

 

And please, stop spamming in the forum.

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

  • 2 months later...

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...