0

i'm just wondering if anybody faced with following issue. I have enabled "add to card" button on my Related products as per this article

Now button appeared but the problem is that is actually does not work, it point just to checkout/cart/ link

will really appreciate any comments, thanks!

1
  • Gents, anyone ?
    – bofh
    Commented Jul 29, 2018 at 14:52

1 Answer 1

0

By default Magento, there is no setting option in Admin for Add to Cart button on the related products block. If we want to custom the related, upsell, crosssel and new product template, we should override this template vendor/magento/module-catalog/view/frontend/templates/product/list/items.phtml.

Change $showCart = true; in case - related product.

We can refer here: Related Products template customize

source

Your Answer

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

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