the domain refactor will be released in v4.1 , and appear is will take a long time . we are searching a way to accomplish the feature of free domain with packages "xx" .
we have worked hard in a new order type for the order plugin without touching any core files , and we have arrive to a true hosting order form , we have created a new plugin that act in the vent "Invoice.Add" , when a invoice is created and have both the package "XXXX" and domain service, the line for the domain is changed to 0$ . when invoice is paid the domain + hosting is renewed . at here all thing is wonderful .
now it left for us just the option of free domain with a selected packages in the order form , the problem we are facing is that every package need a pricing_id , and we can't make a new term pricing with 0$ ,as the smarty client can change the term price for a single domain .
the obstacle is that the cart is getting the prices form database directly for every pricing_id . and we cant just change the pricing view in the cart to 0$ .
we have looked to use a hidden coupon, and in our order form type , we have magic function that check the cart content , and if the package "XXXX" + domain exist we apply the coupon, if not the coupon is not applied . do you think this is real solution or something we can really relay in it ?
any help in a idea is welcome , we will release the order form type when we are 100% satisfied with our work with the extra plugin .
Question
Blesta Addons
Hello .
the domain refactor will be released in v4.1 , and appear is will take a long time . we are searching a way to accomplish the feature of free domain with packages "xx" .
we have worked hard in a new order type for the order plugin without touching any core files , and we have arrive to a true hosting order form , we have created a new plugin that act in the vent "Invoice.Add" , when a invoice is created and have both the package "XXXX" and domain service, the line for the domain is changed to 0$ . when invoice is paid the domain + hosting is renewed . at here all thing is wonderful .
now it left for us just the option of free domain with a selected packages in the order form , the problem we are facing is that every package need a pricing_id , and we can't make a new term pricing with 0$ ,as the smarty client can change the term price for a single domain .
the obstacle is that the cart is getting the prices form database directly for every pricing_id . and we cant just change the pricing view in the cart to 0$ .
we have looked to use a hidden coupon, and in our order form type , we have magic function that check the cart content , and if the package "XXXX" + domain exist we apply the coupon, if not the coupon is not applied . do you think this is real solution or something we can really relay in it ?
any help in a idea is welcome , we will release the order form type when we are 100% satisfied with our work with the extra plugin .
thanks for all in advance .
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.