Magento Forum

   
Dynamic Price Calculation
 
AcidX
Jr. Member
 
Total Posts:  2
Joined:  2013-05-01
 

Hello

I’m wondering if there is any plugin already out there for dynamic price calculation.
What i need is a plugin that would calculate price depending on X and Y.
It would have 2 dropdowns with numbers from 1 to 90 , so the price would change depending on what numbers u would choose.

This is just quick preview of what i’m looking for. However the code will be alot bigger in the end, because i must add alot more algorithms smile

<?php

$start1 
$_GET['start1'];
$end1 $_GET['end1'];

$x $end1 $start1;

$price 0;

for(
$i 0$i <= $x$i++){
if($end1!=$start1){
if($start1<=55){ $temp_price 0.5}else
if($start1<=60){ $temp_price 1}else
if($start1<=70){ $temp_price 2}else
if($start1<=80){ $temp_price 3}else
if($start1<=85){ $temp_price 5}
}

$start1
++;
$price $price $temp_price;
}
echo $price '$';
?>

If anyone know of a plugin like this, payable or free doesn’t matter, or if anyone knows how to make this into the product site let me know please!

 
Magento Community Magento Community
Magento Community
Magento Community
 
G_Mehta
Guru
 
Avatar
Total Posts:  418
Joined:  2010-01-27
India
 

Not sure about your needs but it seems you want to calculate price based on options selection from X - Y dropdown boxes… Through Magento you can do it by configurable Or Custom options..

I hope it helps yoi.. Cheers!

 
Magento Community Magento Community
Magento Community
Magento Community
 
AcidX
Jr. Member
 
Total Posts:  2
Joined:  2013-05-01
 

Hello G_Mehta thanks for your reply.
Could you be abit more specific please where i could find those configurable Or Custom options?

And yes thats exactly what i need, options selection from X - Y dropdown boxes.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top