Jump to content

fahad_ansari

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by fahad_ansari

  1. Hi there, I want to do unit testing of my module using PHPUnit. But I don't know how to test action Hooks methods, Anyone? public function hookActionObjectProductInCartDeleteAfter($params) { // Do something Like Delete Specific Price, send mail, etc. }
  2. 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">
  3. hi there, In PS1.6, how to get current 'id_product_attribute' of a product with combinations, when click on a button that i create below 'Add to Cart' button using hook 'displayProductButtons' ? Thanks
×
×
  • Create New...