Lengkap

Virtuemart 1.1.9 price label update using "%" attribute

I want [url removed, login to view]

eg 32x40cm + color CARBONO_3D a total of EUR 35.17 not EUR 15.37

I have added a hack that allows you to add a percentage of the price selected by an attribute. functions are +20, -20 and 20% for example.

With this code get it to work the percentage function attributes, but I want to update the price label in flypage with this hack:

/administrator/components/com_virtuemart/classes/[url removed, login to view]

on line 1305:

if( strstr( $price, '+' ) or (strstr( $price, '-' )) or (strstr( $price, '=' )) ) {

$attribute_string .= '[' . trim( $price ) . ']' ;

replace for:

if( strstr( $price, '+' ) or (strstr( $price, '-' )) or (strstr( $price, '%' )) or (strstr( $price, '=' )) ) {

$attribute_string .= '[' . trim( $price ) . ']' ;

And:

/administrator/components/com_virtuemart/classes/[url removed, login to view]

on line 1791:

if ($operand=="+") {

$adjustment += $modifier;

}

else if ($operand=="-") {

$adjustment -= $modifier;

}

replace:

if ($operand=="+") {

$adjustment += $modifier;

}

else if ($operand=="-") {

$adjustment -= $modifier;

}

else if ($operand=="%") {

$adjustment += (($price['product_price'] * $modifier)/100);

}

//Now you can add on attributes such as this:

%10

Kemahiran: eDagang, Joomla, PHP, Virtuemart

Lihat lagi: php hack code, get the label, update virtuemart, Trim, attribute, code line 137, selected price, update php joomla, php code hack, joomla update www, strstr price strstr price strstr price, virtuemart price update hack, hack joomla virtuemart, hack html, html hack, virtuemart attribute percentage, joomla virtuemart color, virtuemart flypage price, joomla replace html, hack virtuemart attributes

Tentang Majikan:
( 1 ulasan ) Torrevieja, Spain

ID Projek: #2637401

Dianugerahkan kepada:

joommasters

Hi i'm sure that will be best choice for you in this project, Please check PM. thanks

€30 EUR dalam sehari
(11 Ulasan)
4.5

5 pekerja bebas membida secara purata €36 untuk pekerjaan ini

VR26

Vrz solutions is a perfect provider of web development, design SEO services. We Provide experts in the vried fields of online Web solutions, SEO services and graphic solutions Together with our rich-experienced group Lagi

€49 EUR dalam 25 hari
(2 Ulasan)
2.0
ITdQ0x4C3

Custom software development: w w w . The Administrator removed this message for containing contact details which breaches our Terms of Service . i o

€40 EUR dalam sehari
(0 Ulasan)
0.0
majinvegeta

Hi , i am interested in this task and can deliver it .Check your PMB for details .

€30 EUR dalam sehari
(0 Ulasan)
0.0
bamshap

my joomla works [login to view URL] (Virtuemart 1.1.9) [login to view URL] [login to view URL]

€30 EUR dalam 2 hari
(0 Ulasan)
0.0