Is this possible? No quantity when out of date
3 years 5 months ago #351906
by gasoline
I'll keep on trying!
Is this possible? No quantity when out of date was created 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?
-- 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
Replied by nicolas on topic Is this possible? No quantity when out of date
Hi,
When you edit both files product / quantity and product / add_to_cart_ajax via the menu Display>Views, you can find the line:
Add the line:
after it and it should do what you want.
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) {
Code:
$this->row->product_stock_message = ' ';
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
You'r a hero. Thanks for the fast respons.
I'll keep on trying!
Replied by gasoline on topic Is this possible? No quantity when out of date
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:Add the line:Code:if($end_date > 0 && $end_date < $now) {after it and it should do what you want.Code:$this->row->product_stock_message = ' ';
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