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.

1 Answer 1

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

1
  • can you give an example ? Nov 19, 2020 at 12:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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