is it possible generate subscription for old perches?

  • Posts: 170
  • Thank you received: 7
2 years 10 months ago #333654

-- HikaShop version -- : 4.4.3
-- PHP version -- : 7.3

hi
i have some product in my hikashop and i want to know is it possible to use this subscription for products that sell before install hikasubscription? because probably when hikasubscription will install, then there is no subscription for users that they purchase product before install that.
maybe you say no way to do that BUT:
1-what about use direct query to database?
2-can i write some plugin for that?(i know little PHP,joomla,sql and other)
thank you

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
2 years 10 months ago #333666

Hello,

While serials can be "refresh", the subscription is created in the same time than the order.
You have ways to create manually subscriptions in the backend.
Afterwards, yes you can write a custom plugin to add a special button and perform actions like the "refresh" button is doing ; but I'm afraid that it would require important quantity of code to handle all special cases.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: sadaf3d

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

  • Posts: 170
  • Thank you received: 7
2 years 10 months ago #333684

Thank you
when you say "refresh" are you mean "Refresh associations" btn in each Order?


maybe for some product we have no serial associated but have subscription plan. then this button is not work. 1- Am i right?
2-is there anyway for already purchased product to generate subscription according a plan?

Attachments:
Last edit: 2 years 10 months ago by Jerome. Reason: remove full quote message

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
2 years 10 months ago #333726

Hello,

Yes I'm talking about the "refresh association" button.
But I explained that this button is just for serials, it cannot (and won't) work with subscription.

That's why, I added (for your second question) :

Afterwards, yes you can write a custom plugin to add a special button and perform actions like the "refresh" button is doing ; but I'm afraid that it would require important quantity of code to handle all special cases.

The development of a new custom plugin would do something "like" the refresh association button, it won't do the same thing but the idea beneath the code would be similar. It means that you can use part of the code as starting point for a new custom plugin.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Moderators: Obsidev
Time to create page: 0.058 seconds
Powered by Kunena Forum