Skip to main content

Dynamic Pricing

More
11 years 11 months ago #175930 by veeco
Dynamic Pricing was created by veeco
-- HikaShop version -- : 2.3.3

Hello,
i'm planning to use hikashop for selling email marketing service, i can do that via: Hikashop->Products->Characteristics
for example
0-500 subscriber $10
510-100 subscriber $15
etc..

now my question is, if in the middle of the month customer would like to upgrade to next level of plan.. i need to calculate the upgrade fee based on pro-rata plan.. i can do the calculation, but how can i set this pricing to their cart ?

Thanks

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

More
11 years 11 months ago #175933 by Xavier
Replied by Xavier on topic Dynamic Pricing
Hi,

Why not create "upgrade products" ?

Else you can create one "upgrade product" then create a plugin based on the function "onBeforeCartUpdate()" and in this function do a PHP check on the product added in the cart, make a request to get the orders of the currently logged in customer in order to knwo the current subscription.

Then edit dynamically the price of the added product to the correct value.

Here is the developer documentation for the plugins:
hikashop.com/support/support/documentati...r-documentation.html
The following user(s) said Thank You: veeco

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

More
11 years 11 months ago #176035 by veeco
Replied by veeco on topic Dynamic Pricing
Thanks for the insight...
love hikashop

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

Time to create page: 0.179 seconds
Powered by Kunena Forum