We offer professional Design/Code Customisation and Website Optimisation Service Request Customisation
  • Status: Waiting on customer

Ticket #13060 - Not available for order | add to card display

Hello,

When we create a product, in tab “Option” there is an option “Available for order”, which we can uncheck or not.

I’m not sure but, I guess this option mask or not the button “add to card”. But with Alysum, the button is display even if it’s unchecked.

Maybe I’m wrong, to be honest I’m not sure...

This ticket does not depend on any other tickets.

Marek (marek) 13 Oct 2018, 10:05

I just added a fix, but don't see any changes. Do you use some cache module?

anon (anonym01) 13 Oct 2018, 10:11

no, but I use a child theme.

Marek (marek) 13 Oct 2018, 10:36

now it should be ok

anon (anonym01) 13 Oct 2018, 16:14

Strange.

Which file has been modified?

Marek (marek) 15 Oct 2018, 11:40

/templates/catalog/_partials/miniatures/product.tpl

anon (anonym01) 15 Oct 2018, 12:08

Thanks to this fixed.

But, in product page we can see "add to card", is it possible to change that too?

Marek (marek) 15 Oct 2018, 12:19

how do you want to change that?

anon (anonym01) 07 Nov 2018, 03:11

Normaly this button is not display when we uncheck the option "Available for order" on the product page.

Marek (marek) 07 Nov 2018, 10:35

try this css:

.product-add-to-cart button[disabled] {display:none !important}
anon (anonym01) 07 Nov 2018, 12:52

ha nice, but, can we not display all the div "product-add-to-cart", not only the button?

Marek (marek) 08 Nov 2018, 10:14

Unfortunately no, it requires additional customizattion

anon (anonym01) 11 Nov 2018, 01:53

In product-add-t-cart.tpl, line 25-26
I modify by

<div class="product-add-to-cart">
  {if (!$configuration.is_catalog) && ($product.available_for_order == 1) && ($product.availability != 'unavailable')}

This change fixed the problem :)

Marek (marek) 11 Nov 2018, 09:54

Sorry, I didn't think about that :)

Loading...