Updating drupal commerce price dynamically using views

Public

updating drupal commerce price dynamically using views or any other way to update the price

</> CopyGet raw version
php
  1. Dear Friends,
  2.  
  3. I have a small problem to update the base price in drupal commerce .
  4.  
  5. Problem description:
  6.  
  7. Using drupal commerce cart and i have added multiple products.suppose
  8.  
  9. Product a : Price Rs1000
  10. product b : price Rs1500
  11.  
  12. But after doing some calculation on product in views the calculated price for
  13. Product a : Rs1250
  14. Product a : Rs1750
  15.  
  16.  
  17. Now when i click on "add to cart" button and now on cart page its showing the actual price
  18. 1000 & 1500
  19. But i need the calculated price only which is
  20. 1250 & 1750 respectivily.
  21.  
  22.  
  23. Please help me / Suggest me the solution how i can update the commerce price with calculated values for the particular session,user,product wise.
  24.  
  25. Many Thanks....
  26.  
  27. Regards
  28. Divya
  29. divya@kbcdindia.com

Comments

sreesai's picture

same issue,even i need help in building above functionality code,how to write code for drupal commerce if default sku =11234 and price = 0 is given and in code sku = 11234 and price = 20 is writen and if skus match price update.

sailatha's picture

i have same issue need help