Waitlist button in products listing

  • Posts: 1129
  • Thank you received: 12
  • Hikashop Business
8 years 9 months ago #266287

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 7.0

Hello,

how can i enable the waitlist button for products listing too?

Thank you

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

  • Posts: 84951
  • Thank you received: 13838
  • MODERATOR
8 years 9 months ago #266290

Hi,

There is no option for that.

However, the waitlist button is just a link.
So if you want to add it to the listings, you can add such code:

<a class="<?php echo $css_button; ?>" rel="nofollow" href="<?php echo hikashop_completeLink('product&task=waitlist&cid='.$this->row->product_id); ?>"><span><?php
		echo JText::_('ADD_ME_WAITLIST');
	?></span></a>
for example in the file "listing_img_title" of the view "product" and you'll get the link. Then, you might want to check on the product_quantity to only display it when there is no stock.

The following user(s) said Thank You: verzevoul

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

  • Posts: 1129
  • Thank you received: 12
  • Hikashop Business
8 years 9 months ago #266413

Hi,

yes thank you that works but i need to show the waitlist button only if quantity is 0.

Thank you

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
8 years 9 months ago #266417

Hello,

Why not just add a condition with a check on quantity in order to display or not ?
Something like this :

if (product_quantity == 0) {
Display waitlist
}


Hope this will help you.

Regards

Last edit: 8 years 9 months ago by Philip.
The following user(s) said Thank You: verzevoul

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

Time to create page: 0.067 seconds
Powered by Kunena Forum