Page 1 of 5

[vQmod] Hide AddtoCart for Out of Stock Products

Posted: Thu Feb 24, 2011 4:32 am
by Qphoria
As the title says.
if a product has 0 quantity, it changes the "Add to Cart" button to "Out of Stock" and makes it non-clickable
Updated to add 1.4.x and 1.5.x and 1.5.2+ support
Will work with 1.5.5.1 now

Added 2.x version

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Thu Feb 24, 2011 9:48 am
by CJS
I'm a very new OC user.
How do I install or make use of this mod.
Thanks.

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Thu Feb 24, 2011 11:59 am
by Ion_Cannon
CJS wrote:I'm a very new OC user.
How do I install or make use of this mod.
Thanks.
Did you see this thread?

http://forum.opencart.com/viewtopic.php?f=23&t=24529

It should have the answers you are looking for.

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Thu Mar 24, 2011 5:37 am
by tez_a
We have got this mod working, but wondered how easy it would be to also remove the "+" on the catagory page for out of stock items?

We are still fairly new to OC and only just installed the vqmod , any help greatfully received

Thanks!

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Thu Mar 24, 2011 4:04 pm
by Ljubo
Hi,
yes, the mod is now working for me also.

However, I was wondering if this mod could be developed more in terms of hiding AddtoCart for products variations ('option') as well?
For example, I have the same product model, with the same prices, but of different colours.
Often, not all colour variations are on stock all the time.

So, if the variation of the product chosen, the add-to-cart should be changed to Out-of-Stock when the buyer tries to buy it. And not get into the basket.

Best,
Ljubo

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Tue Mar 29, 2011 3:17 am
by Qphoria
Ljubo wrote:Hi,
yes, the mod is now working for me also.

However, I was wondering if this mod could be developed more in terms of hiding AddtoCart for products variations ('option') as well?
For example, I have the same product model, with the same prices, but of different colours.
Often, not all colour variations are on stock all the time.

So, if the variation of the product chosen, the add-to-cart should be changed to Out-of-Stock when the buyer tries to buy it. And not get into the basket.

Best,
Ljubo
Another method I think might be better would be to simply disable the option when out of stock so that it can still be seen but is grayed out and nonselectable

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Wed May 04, 2011 4:19 am
by paddybag
Qphoria wrote: Another method I think might be better would be to simply disable the option when out of stock so that it can still be seen but is grayed out and nonselectable
Hi Qphoria,
Excellent work for everything you have done here. Could you elaborate on how you would disable the option on the fly or would it have to be a manual job?

Im using Version 1.4.9.4

Thanks,
Paddy

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Wed May 04, 2011 4:25 am
by Qphoria

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Tue Jul 12, 2011 8:04 am
by dane
Any chance you can make this work with 1.5.0.5? Thanks!!

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Thu Jul 21, 2011 7:07 pm
by ripper
dane wrote:Any chance you can make this work with 1.5.0.5? Thanks!!
And for 1.5.1? ;)

Thanks!

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Sat Jul 30, 2011 2:31 am
by chadelkins
I would also love a 1.5.1 version! Thanks! BTW ... the VQMod manager is great!

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Sat Jul 30, 2011 5:19 am
by SXGuy
Qphoria wrote:As the title says.
if a product has 0 quantity, it changes the "Add to Cart" button to "Out of Stock" and makes it non-clickable
Nice mod, i recently done this to include another bit.

If quantity is -1 then the button changes to redirect to the contact page and the text changes to availible on request :)

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Wed Aug 03, 2011 4:06 am
by Klimskady
Another vote here for this to be updated when at all possible.

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Wed Aug 17, 2011 3:34 am
by grido
+1 would like this very much :)

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Wed Aug 17, 2011 4:24 am
by Qphoria
updated file in first post to support 1.5.x

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Wed Aug 17, 2011 4:56 am
by chadelkins
It works great on the individual item page ...
store/index.php?route=product/product&path=70&product_id=100

but doesn't work on the main items listing page ...
store/index.php?route=product/category&path=70

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Wed Aug 17, 2011 5:00 am
by Qphoria
it never did. I'll see about adding it

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Wed Aug 17, 2011 5:05 am
by chadelkins
Right on! Thanks!

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Mon Sep 05, 2011 1:29 am
by DawgBones
chadelkins wrote:It works great on the individual item page ...
store/index.php?route=product/product&path=70&product_id=100

but doesn't work on the main items listing page ...
store/index.php?route=product/category&path=70
This is the same feature we are looking for! So far, the VQmod works great for products though. +1!

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Thu Sep 08, 2011 12:01 pm
by mwd
Hi Q,

This is a great vQmod.

I have a question about expanding this for another purpose mentioned in this thread, http://forum.opencart.com/viewtopic.php ... 5&p=194113

Basically, the idea in the other thread is to hide the item price from the default group by replacing the visible price with text (ie: "Wholesale Only") when the price is set to 99999.

It would be nice to combine that text change with the disabling of the add to cart button in this vQmod.
The final outcome would be to make a wholesale restricted product while keeping the product visible, but hiding the price and keeping it from being added to the cart by default group customers.