How to update Akira theme to latest version? Click here.

Okay
  Public Ticket #2963237
Product still shows Add to cart when product is not available for shopping
Closed

Comments

  • mercro started the conversation

    If you uncheck the option available to buy in product options, product can't be added to cart but product page still shows "Add to cart". Should not it be hidden?

    Thanks

  •  343
    Naik replied

    This is the default functionality from Prestashop, the add to cart button only disables the click event. If you want to hide it you can use custom CSS.

    Thank you!

    Best regards,

    Naik - Lightatend Team 

    A good review and positive comment would help us to keep doing what we do best Rate now

    Our support time Monday-Saturday (9am-6pm GMT+7)

  • mercro replied

    I solved it with this piece on my child theme:


    {if $product->available_for_order}
                                                {$product->available_for_order}
                                                {block name='product_add_to_cart'}
                                                    {include file='catalog/_partials/product-add-to-cart.tpl'}
                                                {/block}
                                            {else}
                                                <p>Product is not available for order.</p>
                                            {/if}


  •  343
    Naik replied

    We are glad to hear this is resolved. 

    Please do not hesitate to contact us if you have any other needs. 

    Best regards,

    Naik - Lightatend Team 

    A good review and positive comment would help us to keep doing what we do best Rate now

    Our support time Monday-Saturday (9am-6pm GMT+7)

  • OneEightyOne replied

    Why can't you build this into your theme. Cause it is misleading to the customer that the button is still here. 
    When the button does not work and it do not give an alert, what is the use of showing the button?

  •  343
    Naik replied

    Hi,

    For SEO tools, all components must be sufficient even if it is not used.

    Products will still be found on search engines like Google,...

    Thanks!

    Best regards,

    Naik - Lightatend Team 

    A good review and positive comment would help us to keep doing what we do best Rate now

    Our support time Monday-Saturday (9am-6pm GMT+7)

  • OneEightyOne replied

    Okee understand, but can you then add a warning msg so the customer can also understand the same?

  •  343
    Naik replied

    Unfortunately Prestashop does not have this function at the moment.

    Best regards,

    Naik - Lightatend Team 

    A good review and positive comment would help us to keep doing what we do best Rate now

    Our support time Monday-Saturday (9am-6pm GMT+7)