VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: dannystang on December 09, 2012, 04:52:46 AM

Title: Profit Margin on Custom Field
Post by: dannystang on December 09, 2012, 04:52:46 AM
Can't seem to figure this one out, searched everywhere. I am on 2.0.14

Price Modifier for Profit Margin = 10%. My Base price for X product = 100. Final Price $110

So far everything is perfect.

Cart Variant based on size tshirts (Small/Medium/Large) = $5 / $10 / $15 respectively.

Drop down has +5 / +10 / +15 now how can I create a price modifier for profit margin for the CART VARIANT?

In this particular case say I also want to increase by 10% and show (Small $5.5 / $11 etc)

Another words I am trying to markup the cost of the variant AND the product. I thought I could just increase it before plugin it into the cart variant price but then if I wanted to increase my variant price by a % in the future I would have to do this all over again.

If by any chance anyone knows the line and php code for math on custom fields I will just take Custom Field price * 1.10 and adjust in the future...

Thanks for any help in advance it seems like such a simple change but can't figure this out!
Title: Re: Profit Margin on Custom Field
Post by: dannystang on December 09, 2012, 05:21:00 AM
Ok, I am sure there is an easier way but since I still can't find it.

Myphpadmin
Virtuemart product customfields

Export to Excel and do calculation or I guess you can do it in sql.

So much easier than csvi tried that also.

Still I am sure there is a easier approach but can't figure it out...
Title: Re: Profit Margin on Custom Field
Post by: Actlas on February 20, 2013, 16:21:01 PM
Could you explain how you did this please?
Title: Re: Profit Margin on Custom Field
Post by: Actlas on May 07, 2013, 11:30:23 AM
Anybody please? How to make calculation rules apply to the custom fields as well?