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.