Jump to content
EZEHOST

Editing Cart (Quantity Options)

Recommended Posts

Evening all. 

I am toying with ideas at the moment, and wondered if the following is possible. 

So currently, if "Stock Control" is enabled, and the quantity is "0", a client can click the product and is then shown an "Oops sorry" message. 

I would like to know, if it is possible to edit the file, to either disable the "order now" button, or change its colour, like the example below. This would be instead of showing "-1 Available", and would hopefully prevent the client clicking the "Order Now" button, and seeing the dreaded "Oops Sorry" message.

 

Thank you in advance.

 

59e66d78bd925_WHMCSCART.png.6abb792486a4f5830eab684cf29a70fd.png

Share this post


Link to post
Share on other sites

QHkUzSw.png

if you want to remove the -x available text too, then just remove the following code (from products.tpl ~ line 50)...

{if $product.qty}
	<span class="qty">
	{$product.qty} {$LANG.orderavailable}
	</span>
{/if}

 

Share this post


Link to post
Share on other sites
18 hours ago, brian! said:

QHkUzSw.png

if you want to remove the -x available text too, then just remove the following code (from products.tpl ~ line 50)...

{if $product.qty}
	<span class="qty">
	{$product.qty} {$LANG.orderavailable}
	</span>
{/if}

 

Thank you @brian!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines