Jump to content

Wishlist View.tpl enable 'add to cart button' when 0 in stock but only if 'allow orders' is true


Recommended Posts

Does anyone know how to fix the Wishlist View.tpl so that it does enable the 'add to cart botton' for products which are out of stock, but ONLY if they are listed as 'allow orders when out of stock' in the DB table product.out_of_stock.

Here is the present code:

{if isset($product.attribute_quantity) AND $product.attribute_quantity >= 1 OR !isset($product.attribute_quantity) AND $product.product_quantity >= 1}



If i change the values to >=0, then obviously the button is there for all out of stock products, but it doesn't hide, if I then change the product to DENY orders in BO. So I can't win.

Can anyone help?
I normally just get tumble-weeds on here - boo hoo :(

Link to comment
Share on other sites

  • 2 years later...

Any news on this? 
 

The add to cart button is on my wishlist for products out of stock but when clicked the product is not added to the cart?

Any ideas how to make the button add to the cart even if the product is out of stock. On the regular shop it works but on the wishlist it does not :(

 

Thanks,

jer...

Link to comment
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
×
×
  • Create New...