Dynamic Pricing

  • Posts: 175
  • Thank you received: 0
10 years 10 months ago #175930

-- 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.

  • Posts: 13201
  • Thank you received: 2322
10 years 10 months ago #175933

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.

  • Posts: 175
  • Thank you received: 0
10 years 10 months ago #176035

Thanks for the insight...
love hikashop

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

Time to create page: 0.108 seconds
Powered by Kunena Forum