Have products publish/unpublish autopmatically

  • Posts: 202
  • Thank you received: 2
13 years 8 months ago #9597

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #9599

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.

  • Posts: 202
  • Thank you received: 2
13 years 8 months ago #9606

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #9610

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.

  • Posts: 202
  • Thank you received: 2
13 years 8 months ago #9611

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #9613

There is no option to completely publish and unpublish products on fixed dates

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

  • Posts: 202
  • Thank you received: 2
13 years 8 months ago #9615

Okay!

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

  • Posts: 3
  • Thank you received: 0
13 years 8 months ago #10762

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 ;-)

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #10765

Isn't the problem a timezone problem ?

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

  • Posts: 3
  • Thank you received: 0
13 years 8 months ago #10767

I changed the date (pay attention to the year): 2000-02-11 10:29
The problem is still here :-(

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #10773

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 Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 0
13 years 8 months ago #10778

It works!

Thank you so much :-)

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

Time to create page: 0.076 seconds
Powered by Kunena Forum