Hide Quantity Field Changer When Product Sold Out

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
11 years 10 months ago #83619

It hides the "Add to Cart" button but not the quantity field change selection as per the attached. How do I get it to hide those as well when a product is sold out?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 10 months ago #83644

Hi,

A product is sold out when his quantity is "0".
A badge is just a additional graphism, it does not affect the product content.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
11 years 10 months ago #83685

Hi Jerome,

I wasn't referring to the badge - I am referring to the plus + and minus - signs that are circled, next to where it says "add to wish list". Should that not disappear along with the "Add to Cart" button when the quantity is "0"?

Thanks!!

Please Log in or Create an account to join the conversation.

  • Posts: 82817
  • Thank you received: 13360
  • MODERATOR
11 years 10 months ago #83947

Hi,

Actually, that's normal. You can still add a product to a wishlist if the product has no stock since the user might want to put it in his wishlist for later, when the product gets some stock again.

You can remove it in such cases by editing the file "quantity" of the view "product" for your frontend template via the menu Display->Views and removing the code

if($this->params->get('add_to_wishlist')  && $config->get('enable_wishlist', 1)){
							echo '<div id="hikashop_add_wishlist">';
								echo $this->cart->displayButton(JText::_('ADD_TO_WISHLIST'),'add',$this->params,$url,$wishlistAjax,'',@$this->row->product_max_per_order,1,'',false);
							echo '</div>';
						}
from it.

Please Log in or Create an account to join the conversation.

Time to create page: 0.035 seconds
Powered by Kunena Forum