Skip to main content

Is this possible? No quantity when out of date

3 years 5 months ago #351906 by gasoline
-- 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!

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

3 years 5 months ago #351913 by nicolas
Hi,

When you edit both files product / quantity and product / add_to_cart_ajax via the menu Display>Views, you can find the line:
Code:
if($end_date > 0 && $end_date < $now) {
Add the line:
Code:
$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.

3 years 5 months ago #351921 by gasoline

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:

Code:
if($end_date > 0 && $end_date < $now) {
Add the line:
Code:
$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.053 seconds
Powered by Kunena Forum