Jump to content

PS1.6 Get current id_product_attribute from Product Page


fahad_ansari

Recommended Posts

hi @hakeryk2

Thanks for your response,

Yes it will work for tpl file but I want it in my ajax call, and luckily I found a hidden input tag with id "idCombination" in product page which contains current combination's id_product_attribute and it worked for me.  

<input type="hidden" name="id_product_attribute" id="idCombination" value="4">

 

  • Thanks 1
Link to comment
Share on other sites

  • 4 years later...
On 10/11/2018 at 10:25 AM, fahad_ansari said:

hi @hakeryk2

Thanks for your response,

Yes it will work for tpl file but I want it in my ajax call, and luckily I found a hidden input tag with id "idCombination" in product page which contains current combination's id_product_attribute and it worked for me.  

<input type="hidden" name="id_product_attribute" id="idCombination" value="4">

 

Few years ago and I found this thread in google while I was searching for JS solution xD It is so obvious now but yeah. Praise the forums! :D

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