Jump to content

Adding link on product page with currently selected values as parameter


dennisss

Recommended Posts

Hi,

I'm new to prestashop and not very familiar with php (c# developer).
First of all, I have a product with two attributes, they have different "reference" set during creation.

I'm trying to add a link on my product page (in product.tpl) that sends the currenty selected reference as a parameter to another webpage that shows all our physical stores stocklevel. The problem is I'm unable to use $product->reference since it shows the main products reference and not the currently selected value.

I've tried creating a html element with the id below in product.tpl and then adding this to product.js
$('#product_reference_dennis')[removed]("Dennis testing");
(as row 275, presta 1.4.0.17), but it won't allow me to use innerHTML to replace the tag contents.


Any help would be greatly appeciated!!!

Best regards
Dennis

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