Is this possible? No quantity when out of date

  • Posts: 246
  • Thank you received: 9
  • Hikashop Business Hikashop Essential
10 months 4 weeks ago #351906

-- HikaShop version -- : 4.7.2
-- Joomla version -- : 4.3.1
-- PHP version -- : 8.1

Hi,
My client sells courses. So you can subscribe during a certain period.
I show the number of available spaces (quantity available) on the website. But when the subscription period is over I display button CLOSED but the quantity is still shown. Can I set it up like when subscription period closes that quantity is also not displayed anymore?


I'll keep on trying!
Attachments:

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

  • Posts: 81509
  • Thank you received: 13064
  • MODERATOR
10 months 3 weeks ago #351913

Hi,

When you edit both files product / quantity and product / add_to_cart_ajax via the menu Display>Views, you can find the line:

if($end_date > 0 && $end_date < $now) {
Add the line:
$this->row->product_stock_message = '&nbsp;';
after it and it should do what you want.

The following user(s) said Thank You: gasoline

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

  • Posts: 246
  • Thank you received: 9
  • Hikashop Business Hikashop Essential
10 months 3 weeks ago #351921

nicolas wrote: Hi,

When you edit both files product / quantity and product / add_to_cart_ajax via the menu Display>Views, you can find the line:

if($end_date > 0 && $end_date < $now) {
Add the line:
$this->row->product_stock_message = '&nbsp;';
after it and it should do what you want.


You'r a hero. Thanks for the fast respons.

This message contains confidential information


I'll keep on trying!

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

Time to create page: 0.091 seconds
Powered by Kunena Forum