0

Is there any way that we can add configurable product to cart from category page with their attributes, like color, size etc ? Right now when i add any configurable product to cart it redirects me on product page.

0

There is default behaviour to allow you to do this

Within the sample data there is a colour and size attribute

See on luma theme how these can be shown on category product listing page

https://magento.nublue.co.uk/women/tops-women/jackets-women.html

You see how you can select size and colour and you can add to basket.

I recommend you investigate the luma theme and sample data

5
  • is there any configuration on backend for this>
    – sudo55
    Jul 21 '19 at 18:29
  • Take a look at colour and size attribute codes. Plus this magestore.com/magento-2-tutorial/… and this aitoc.com/blog/adding-clothing-size-options-magento-2 Jul 21 '19 at 20:08
  • thank you for your answer. but i am not sure what you want to say, i mean i have asked that i want to add products to cart from category page but you have shared links of "Adding Clothing Size Options in Magento 2".
    – sudo55
    Jul 22 '19 at 4:52
  • Yes I could have been clearer. That's backend configuration of the attributes - there is no backend configuration to bring through on template. Luma theme picks up on these attributes automatically. Jul 22 '19 at 9:03
  • i am still confused, I don't know how it would be possible. this is my category page. you please brief step by step i would appreciate.i.imgur.com/42cqgdN.png
    – sudo55
    Jul 22 '19 at 17:22

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.