Page 1 of 1
Change add to cart to stock availability
Posted: Wed Sep 09, 2020 1:00 am
by TheLegendP
Hi,
Does anybody know a way to change the 'Add to cart' button to display the stock availability instead? ie In stock, 3-4 days etc.
I did have a look for the easy option of an extension, but couldn't see anything suitable.
Re: Change add to cart to stock availability
Posted: Wed Sep 09, 2020 2:24 am
by chongshengdz
change all or certain products?
Re: Change add to cart to stock availability
Posted: Wed Sep 09, 2020 10:13 am
by letxobnav
"Add to cart" is a function, "stock availability" is information, they do not mix.
Re: Change add to cart to stock availability
Posted: Wed Sep 09, 2020 11:09 am
by khnaz35
TheLegendP wrote: ↑Wed Sep 09, 2020 1:00 am
Hi,
Does anybody know a way to change the 'Add to cart' button to display the stock availability instead? ie In stock, 3-4 days etc.
To change 'Add to cart' button text edit catalog/controller/language/en-gb.php
Find:
Code: Select all
$_['button_cart'] = 'Add to Cart';
Replace:
Just a question:
How your customers will know that what should i do next when they can see the item is in stock proceed to add to cart checkout
Unless you put the button text like 'In stock Add to Cart Now etc'
Re: Change add to cart to stock availability
Posted: Wed Sep 09, 2020 11:38 am
by letxobnav
the only way this makes sense is if you do not have stock, disable the button and change the text to "no stock".
If you do have stock, just leave "add to cart", besides who cares how many you have in stock other than you.
Re: Change add to cart to stock availability
Posted: Wed Sep 09, 2020 9:32 pm
by TheLegendP
letxobnav wrote: ↑Wed Sep 09, 2020 10:13 am
"Add to cart" is a function, "stock availability" is information, they do not mix.
So your saying that the "add to cart" text can not display the stock status?
I know you can change the add to cart to anything you want, but I thought there would have been a way to change it to display the availability of a product (as it does for example if a product is out of stock).
The reason I want to change it is simply because some items are in stock for immediate dispatch, and others are a special order. Although it does display this on the product page under availability, I would rather it also displayed it as part of the add to cart button, so it was clear if the product was in stock or a special order.
Re: Change add to cart to stock availability
Posted: Thu Sep 10, 2020 12:47 am
by pprmkr
See
demo ....
If product['quantity'] < 1 it shows image in corner with stock status text. Also checks in cart Add if product quantity > 0. If not in stock, add to cart button in modules redirect to product page. There Add to cart button displays stock status text and is disabled.
Re: Change add to cart to stock availability
Posted: Thu Sep 10, 2020 12:52 am
by khnaz35
pprmkr wrote: ↑Thu Sep 10, 2020 12:47 am
See
demo. Also see category 'Presents' ...
If product['quantity'] < 1 it shows image in corner with stock status text. Also checks in cart Add if product quantity > 0. If not in stock, add to cart button in modules redirect to product page. There Add to cart button displays stock status text and is disabled.
Nice work
