Product availibility on certain days

  • Posts: 14
  • Thank you received: 1
8 years 1 month ago #268580

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5

Related to the topic:
www.hikashop.com/forum/product-category-...ns-availability.html

I have two products: Product A and Product B.
Product A, is only available on Monday and Wednesday
Product B, is only avaialble on Tuesday, Thursday and Friday.
Repeating each week. There is no expiration date.

How can I achieve this with mass action?

Thanks.

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

  • Posts: 12953
  • Thank you received: 1778
8 years 1 month ago #268585

Hello,

The solution will be to directly :
- Set the availability date for the current week through both of your product configuration page
- Create a mass action which will be launched every week, and that will increase both of your products availability dates by 7 days.

For more information about mass actions :
www.hikashop.com/support/documentation/167-massaction-form.html

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

  • Posts: 14
  • Thank you received: 1
8 years 1 month ago #269423

Thanks for your reply,

It took a little while to respond.

If I didn't understand it wrong, your suggestion only works for a specific one day (e.g Monday), repeating each week.
How do I set it up for multiple days (like Monday and Wednesday)? There is only one option to set the availability date in the product configuration.

I have accomplished to set the availability of product "A" on Monday repeating each week, but I am not sure how to set the availability also on Wednesday.

I added the screenshots of my configuration as attachments.

Attachments:
Last edit: 8 years 1 month ago by OA.

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

  • Posts: 83986
  • Thank you received: 13603
  • MODERATOR
8 years 1 month ago #269523

Hi,

You could do it for several days with that method, but only if the days are contiguous. Since that's not the case, you won't be able to do it with just mass actions and the sale start/end dates.
I don't see a solution to do exactly what you want with only two products and mass actions.
You could potentially duplicate your products: one for each day to be able to use mass actions on them.
But if that's not a option, then that would require the development of a plugin to change the start/end dates every day based on some PHP conditions for the different products.

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

  • Posts: 14
  • Thank you received: 1
8 years 1 month ago #269532

Hi Nicolas,

thanks for your reply.

It is for me acceptable to use duplicated products because they are a few of them. But I was wondering how to disable the publication after when the "sale end date" has been passed (to avoid showing duplicated products in the front end). I am afraid it is not possible to compare with "current date/time" and "sale end date" with mass action since they use unix time. What is the best way to do that?

Last edit: 8 years 1 month ago by OA.

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

  • Posts: 83986
  • Thank you received: 13603
  • MODERATOR
8 years 1 month ago #269534

Hi,

I think that in that case the simplest will be do use such plugin:
www.hikashop.com/support/forum/4-how-to/...ale-date.html#128950
That will remove the products for which the current date isn't inside their sale range on the listings.

The following user(s) said Thank You: OA

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

  • Posts: 14
  • Thank you received: 1
8 years 3 weeks ago #269980

Thank you.

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

Time to create page: 0.126 seconds
Powered by Kunena Forum