- Posts: 202
- Thank you received: 2
Have products publish/unpublish autopmatically
15 years 7 months ago #9597
by momentis
Have products publish/unpublish autopmatically was created by momentis
Is there a way within HikaShop to set start and end publishing dates, similar to most Joomla content? I want to be able to populate products which appear only for periods of time (say, for a month) and then unpublish after that date.
Please Log in or Create an account to join the conversation.
15 years 7 months ago #9599
by nicolas
Replied by nicolas on topic Re: Have products publish/unpublish autopmatically
Yes. In HikaShop, when you edit a product you have the fields "sale start date" and sale end date" where you can define that.
Please Log in or Create an account to join the conversation.
15 years 7 months ago #9606
by momentis
Replied by momentis on topic Re: Have products publish/unpublish autopmatically
I had found these fields, but they didn't seem to affect the front-end display. I selected one product and set it's "sale end date" to last Friday, then saved the product. However, the product still shows in the store.
Please Log in or Create an account to join the conversation.
15 years 7 months ago #9610
by nicolas
Replied by nicolas on topic Re: Have products publish/unpublish autopmatically
Yes, the item still shows but it should not be addable to the cart. Instead of the add to cart button, you should get a message like this: "This item will be sold starting on 09 Mars 2011"
Please Log in or Create an account to join the conversation.
15 years 7 months ago #9611
by momentis
Replied by momentis on topic Re: Have products publish/unpublish autopmatically
Duh! Okay, I didn't even realize that! You know I'm going to ask this - is there a way to hide the products completely?
Please Log in or Create an account to join the conversation.
15 years 7 months ago #9613
by nicolas
Replied by nicolas on topic Re: Have products publish/unpublish autopmatically
There is no option to completely publish and unpublish products on fixed dates
Please Log in or Create an account to join the conversation.
15 years 7 months ago #9615
by momentis
Replied by momentis on topic Re: Have products publish/unpublish autopmatically
Okay!
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 3
- Thank you received: 0
15 years 6 months ago #10762
by FaberIptius
Replied by FaberIptius on topic Re: Have products publish/unpublish autopmatically
Hi,
I have problems with the dates associated with a product (start and end sale dates).
Please, go to this page: www.allinonemicrosystems.it/index.php?op...2&category_pathway=0
I set a sale end date: 2011-03-11 10:29; but when you click o 'Aggiungi al carrello', no message is showing...
Thanks
I have problems with the dates associated with a product (start and end sale dates).
Please, go to this page: www.allinonemicrosystems.it/index.php?op...2&category_pathway=0
I set a sale end date: 2011-03-11 10:29; but when you click o 'Aggiungi al carrello', no message is showing...
Thanks
Please Log in or Create an account to join the conversation.
15 years 6 months ago #10765
by nicolas
Replied by nicolas on topic Re: Have products publish/unpublish autopmatically
Isn't the problem a timezone problem ?
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 3
- Thank you received: 0
15 years 6 months ago #10767
by FaberIptius
Replied by FaberIptius on topic Re: Have products publish/unpublish autopmatically
I changed the date (pay attention to the year): 2000-02-11 10:29
The problem is still here
The problem is still here
Please Log in or Create an account to join the conversation.
15 years 6 months ago #10773
by nicolas
Replied by nicolas on topic Re: Have products publish/unpublish autopmatically
It seems that there is indeed a problem when you set the date for a product with characteristics.
Please try to edit the file quantity of the view product via the menu Display->Views and change the line:
if($this->row->product_sale_end && $this->row->product_sale_end<time()){
by:
if(($this->row->product_sale_end && $this->row->product_sale_end<time()) || (!empty($this->element->main)&&$this->element->main->product_sale_end && $this->element->main->product_sale_end<time())){
and the line:
}elseif($this->row->product_sale_start && $this->row->product_sale_start>time()){
by the line:
}elseif(($this->row->product_sale_start && $this->row->product_sale_start>time())||(!empty($this->element->main)&&$this->element->main->product_sale_start && $this->element->main->product_sale_start>time())){
and try again.
Please try to edit the file quantity of the view product via the menu Display->Views and change the line:
if($this->row->product_sale_end && $this->row->product_sale_end<time()){
by:
if(($this->row->product_sale_end && $this->row->product_sale_end<time()) || (!empty($this->element->main)&&$this->element->main->product_sale_end && $this->element->main->product_sale_end<time())){
and the line:
}elseif($this->row->product_sale_start && $this->row->product_sale_start>time()){
by the line:
}elseif(($this->row->product_sale_start && $this->row->product_sale_start>time())||(!empty($this->element->main)&&$this->element->main->product_sale_start && $this->element->main->product_sale_start>time())){
and try again.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 3
- Thank you received: 0
15 years 6 months ago #10778
by FaberIptius
Replied by FaberIptius on topic Re: Have products publish/unpublish autopmatically
It works!
Thank you so much
Thank you so much
Please Log in or Create an account to join the conversation.
Time to create page: 0.245 seconds