Figured that out, but how can i remove the strike through o nthe MSRp price?
Printable View
Figured that out, but how can i remove the strike through o nthe MSRp price?
i had a problem on my site with some % showing 10 decimal places instead of 2 like this 56.000000001% and it was because of part of the calculation was out side of the number function so if you change this in
includes/functions/functions_price.php
PHP Code:
if ($display_normal_price == 0) {
// don't show the $0.00
if(($display_msrp_price!='')&&($display_msrp_price!='0')){
$final_display_price = '<span class="smalltext1"><s>'.TEXT_PRODUCT_MSRP.$currencies->display_price($display_msrp_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])).'</s></span><br><span class="save">'.TEXT_PRODUCT_SAVE . number_format((($display_msrp_price - $display_normal_price) / $display_msrp_price), 2, '.', '') * 100 . '% '.'</span><br><span class="norm">'.TEXT_PRODUCT_OUR.$show_special_price . $show_sale_price . $show_sale_discount.'</span>' ;
}else{
$final_display_price = $show_special_price . $show_sale_price . $show_sale_discount;
}
} else {
if(($display_msrp_price!='')&&($display_msrp_price!='0')){
$final_display_price = '<span class="smalltext1"><s>'.TEXT_PRODUCT_MSRP.$currencies->display_price($display_msrp_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])).'</s></span><br><span class="save">'.TEXT_PRODUCT_SAVE . number_format((($display_msrp_price - $display_normal_price) / $display_msrp_price), 2, '.', '') * 100 . '% '.'</span><br><span class="norm">'.TEXT_PRODUCT_OUR.$show_normal_price . $show_special_price . $show_sale_price . $show_sale_discount.'</span>' ;
}else{
$final_display_price = $show_normal_price . $show_special_price . $show_sale_price . $show_sale_discount;
}
}
to this
PHP Code:
if ($display_normal_price == 0) {
// don't show the $0.00
if(($display_msrp_price!='')&&($display_msrp_price!='0')){
$final_display_price = '<span class="smalltext1"><s>'.TEXT_PRODUCT_MSRP.$currencies->display_price($display_msrp_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])).'</s></span><br><span class="save">'.TEXT_PRODUCT_SAVE . (((($display_msrp_price - $display_normal_price) / $display_msrp_price)* 100 ), 2, '.', '') . '% '.'</span><br><span class="norm">'.TEXT_PRODUCT_OUR.$show_special_price . $show_sale_price . $show_sale_discount.'</span>' ;
}else{
$final_display_price = $show_special_price . $show_sale_price . $show_sale_discount;
}
} else {
if(($display_msrp_price!='')&&($display_msrp_price!='0')){
$final_display_price = '<span class="smalltext1"><s>'.TEXT_PRODUCT_MSRP.$currencies->display_price($display_msrp_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])).'</s></span><br><span class="save">'.TEXT_PRODUCT_SAVE . (((($display_msrp_price - $display_normal_price) / $display_msrp_price)* 100 ), 2, '.', '') . '% '.'</span><br><span class="norm">'.TEXT_PRODUCT_OUR.$show_normal_price . $show_special_price . $show_sale_price . $show_sale_discount.'</span>' ;
}else{
$final_display_price = $show_normal_price . $show_special_price . $show_sale_price . $show_sale_discount;
}
}
what i changed was this line
to thisPHP Code:
number_format((($display_msrp_price - $display_normal_price) / $display_msrp_price), 2, '.', '') * 100
i hope this helps someone out therePHP Code:
number_format(((($display_msrp_price - $display_normal_price) / $display_msrp_price)* 100 ), 2, '.', '')
Hi,
Does anyone know if this mod (MSRP) and this mod (MAP Pricing ( m.a.p ) : Add to Cart to See Price) are compatible - can they both be installed on a ZC store?
I am assuming that since they both deal with pricing there could be some conflicts with the code, anyway, does anyone know if they can both be installed on the same store. Is it at all possible?
Thank you.
Hi I want to know how I can add and change all prices with easypopulate. I added a field v_products_msrp_price but that doesn't work or add my prices in the database for products_msrp. Thanks in advance.
It should just be v_products_msrp. But, if you haven't altered EP then it won't work. In case you haven't seen it, I created a tutorial on how to add fields to EP, you can read it here
This does not work for me. I still for some strange reason get it to upload my prices for msrp. Do I have to change the code for MSRP before it will work right. What I mean change it like the above says to. I see I have to put the higher cost of a item in msrp and what I'm selling it for in the Products Price to get it to show the lower price. Seems like this works backwards. Thanks for you help. I have tried the easy_populate_csv_1-2-5-6-csv-2
easy_populate 1-2-5-5, and I have the bought version easypopulate_3.0.3_inc_patch1. I can't get none of them to work.
Never mind I got the version I bought to work easypopulate_3.0.3_inc_patch1. Thanks anyway.