I need to be able to get a certain product'a value for attribute_id=12 - and show it in my code. Is this easy?
You see, I need a number I've input into the product's attribute section - to calculate a new number that is important for the client. The number is used in a javascript calculation.
From before (in OC 1.4.9.1) I have used a module called "Extra fields", and got the needed number from this code:
Code: Select all
$first_field = reset($extra_fields);
$first_field_val = $first_field['value'];
something like this maybe?
Code: Select all
[code]
$myvalue = $attributevalue(12);