Hi all.
I need to dynamically allocate the price of a product when it goes into the cart based on certain custom criteria.
Logic would be something like this
if (PrintArea > A4)
{
// Add 2.00 to cost of product
}
Looking at the Class Library, Product has a CostOfGoods Property. Would this allow me to add cost for the Token.Instance only?
Could this also be used with the Variable Pricing?
Thanks in advance.
Dynamically setting Product Pricing
Re: Dynamically setting Product Pricing
What about using the variable price feature.
Re: Dynamically setting Product Pricing
Thanks for the response.
Do you have an example of how this is used?
Thanks very much.
Do you have an example of how this is used?
Thanks very much.
Re: Dynamically setting Product Pricing
You can add your custom value to the product price when creating basket item. For example in your case
Check the BuyProductDialog.ascx.cs file. Check for the code that is used to support the variable pricing feature. You will need a very similar code for your solution.
Code: Select all
if (PrintArea > A4)
{
// Add 2.00 to cost of product
basketItem.Price += 2;
}
Re: Dynamically setting Product Pricing
Thanks Mazhar, i will be sure to check this out tomorrow.
Best Regards,
Dave
Best Regards,
Dave
Re: Dynamically setting Product Pricing
see the last post on this topic
viewtopic.php?f=42&t=7936
viewtopic.php?f=42&t=7936