X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Where Is the Math Equation Help (https://forum.x-cart.com/showthread.php?t=65378)

momentum 11-15-2012 07:10 AM

Where Is the Math Equation Help
 
Hello Great Forum

I cannot believe I cannot find this.

I am using a product modifier and found the formula to get a total for the item is

Price = $0.44
Modifier = $25.00
Minimum Purchase 250

If the price is $0.44 and you use the Price modifier of $25.00 it changes the price to $25.44
So you will have $25.44 x 250 = $6,360 Total Product Price

This should be simple if the formula can be found and modified and if it is not done on the fly. I want the following
(0.44 x 250) + 25 = $135 Total Product Price

I am ignorant on x-cart and maybe this is to simple minded of an idea and maybe x-cart is making this formula some other way.

So my question is: if this formula for price modifier can be easily modified if yes where is the formula?

cflsystems 11-15-2012 09:42 AM

Re: Where Is the Math Equation Help
 
You probably have to look in one of the js files in skin/.../Product_Options

momentum 11-15-2012 10:27 AM

Re: Where Is the Math Equation Help
 
Hello

Thanks for the reply. This is very tricky, who would have know how difficult it is to change a formula.

I did a quick search and it is amazing t see how x-cart goes about doing this. At least I now have a place to look.

Thanks again.


All times are GMT -8. The time now is 01:23 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.