how to implement this system in hikashop?

  • Posts: 201
  • Thank you received: 7
3 months 4 weeks ago #362541

hi
Simplified and simulated, my need is:
I want to start a volume sales system that is incremental. For example, a customer buys one gigabyte with a 6-month validity period, and when he uses up one gigabyte of his volume in 2 months and runs out, he only needs to buy new volume, and if the time validity of the plan he purchased is over, It is necessary to extend only the time of the plan.
1- I am worried that since this is the first time I want to start such a system, maybe I have missed a scenario and this design is wrong. I would be grateful if you could give more explanations in this scenario. Obviously you are more experienced.
2- If such a system is to be designed with hikashop, I guess I should use hikasub and sell a pair of products together. That is, the usable time and the usable volume of the two products are separate, but they are sold together when the time is sold, and when the time runs out, a custom php function is executed by hikasub or hikashop's cron system. If you have any advice on this, I would appreciate it.

Last edit: 3 months 4 weeks ago by sadaf3d.

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

  • Posts: 82956
  • Thank you received: 13392
  • MODERATOR
3 months 3 weeks ago #362544

Hi,

Indeed, HikaSubcription seems appropriated for what you want to do.
With HikaSubscription, you can configure when the use is notified? So for example, you can notify the user when his subscription expires, and 1 week before it expires in order to tell him that he needs to renew.

When the time runs out, HikaSubscription will fire an event of the Subscription API:
www.hikashop.com/support/documentation/1...#subscription_plugin
So, you want to create a Joomla plugin of the group "hikashop" and implement the events you want to interact with the system using the subscription. That way, when a subscription is created, expires, is extended, your plugin can contact your system using the subscription to notify it of the status of the subscription.

For the volume data top up, you probably want to have a normal HikaShop product, and when it is purchased, your plugin would also implement the events of the order API of HikaShop ( www.hikashop.com/support/documentation/6...mentation.html#order ) in order to notify the system using the subscription to notify it that a top up product has been purchased.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum