0

I would like to make some product modifcations; change qty position to move in the top, add total price (qte* unit_price) in /vendor/magento/module-catalog/view/base/templates/product/price/amount/default.phtml. The problem is that the block is modified in the catalog page also. I need to make some change to the custom options block also. So my question how to make those changes for specific products only (i can add a product attribute for that) Thanks.

0

Suggestion: You can solve your issue if you'll apply this method

Add custom.phtml template file in catalog_product_view.xml

Now in custom.phtml you can use if else condition.

Add design both layout according to condition If product id is ( show your custom layout ) else (default).

| improve this answer | |
  • can you give an example ? – tarek fellah Nov 19 at 12:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.