I'm trying to pass the variable in order ...
[code ] .order ([(Prices.Price *?) + Profile .PippingCost), Parameter [: Prod_ID]]. All but this variable does not convert to SQL in exchange, it gives me (In this case the variable was "1").
Group by Price Order by SUM (Prices.Price *?) + Profiles.shippingCost), 1): Is this possible?
You can:
[code] .order ( "SUM (prices.price * # {params [: prod_id] .to_i}) + profiles.shippingCost)". All.
Comments
Post a Comment