I am trying to use the custom price module to adjust the price based on total quantity of a product sold. I was trying to use the sum_qty field. Any suggestions?

Comments

tr’s picture

Status: Active » Fixed

I don't know what you mean by the "sum_qty field" - that's not something defined by or used by Ubercart.

Regardless, the simplest thing is to write your own function to get the total quantity of the product sold (you'll have to do this anyway, as there is no function in the Ubercart API for this) then use the output of that function in your custom price calculation. The trick here is that you can call *any* available function from within your price code.

kristat’s picture

The sum quantity is available in uc views. Thanks for your reply.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.