Zen Follower
- Join Date:
- Oct 2006
- Posts:
- 213
- Plugin Contributions:
- 0
Views: 82,052
Zen Follower
New Zenner
Thanks so much, kbalona. I finally got it to work.
Zen Follower
kbalona:
Change where it says "table_prefix" to whatever your table prefix is. On my database, the prefix is "zen_". So in my case, I changed it to "zen_products"
Lextechs, I snipped code here and there, I can't even remember where all I modified, lol. I'll post the file in a little bit:)
No rush whenever you get a chance i like that $ look better than the %. But like most retailers they use % so the market would show % is a better way to appeal to customers. However i still want to test out the two between $ and % see which picks up sales
Lextechs.com Powered By ZenCart
New Zenner
Im willing to pya someone to add this mod to my website. Email me if you can?
New Zenner
I tried to do this 3 times and everytime i go to the Product to edit it, it gives me the same parse error at line 65.
Can ANYONE?? Please help?
Zen Follower
New Zenner
this is the error I keep getting:
Parse error: parse error, unexpected ':' in /home/content/i/n/s/installer**/html/store/admin/includes/modules/product/collect_info.php on line 66
New Zenner
Nevermind I got it to work. Had to really look carefully.
New Zenner
Simply amazing!!!! This is exactly what I was looking for!
Totally Zenned
When you put a product on special, you get the msrp, our price crossed out with the new special price next to it, the savings from "our price" to the specials price in %, and then the original % off. See the screenshot.
I've been fooling around with functions_prices.php to try to get it to show just the msrp, specials price, and total % discount, when an item in on special. But so far, I haven't gotten it.
Does anyone have any idea how to make it work like that?
Thanks!
Matt
New Zenner
Hi Guys,
I have a question for those who have installed this mod. Does the msrp price show in the cart n checkout screens ?so you can see the original price throughout?
thanks
shane
New Zenner
knighs2:
Hi Guys,
I have a question for those who have installed this mod. Does the msrp price show in the cart n checkout screens ?so you can see the original price throughout?
thanks
shane
No it does not for me. Only the actual price is displayed in the shopping cart and checkout pages, not the MSRP price.
New Zenner
I messed around with the code for awhile. Hopefully this will help someone.
Heres the original piece of code for the contribution you will be replacing:
if ($display_normal_price == 0) {
// don't show the $0.00
if(($display_msrp_price!='')&&($display_msrp_price!='0')){
$save=$display_msrp_price-$display_normal_price;
$final_display_price = '<span class="smalltext1">' . TEXT_PRODUCT_MSRP . '<s>' . $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 .$currencies->display_price($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')){
$save=$display_msrp_price-$display_normal_price;
$final_display_price = '<span class="smalltext1">'.TEXT_PRODUCT_MSRP.'<s>'.$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 .$currencies->display_price($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;
}
}
This will show the "You Save" with dollar amount only:
if ($display_normal_price == 0) {
// don't show the $0.00
if(($display_msrp_price!='')&&($display_msrp_price!='0')){
$save=$display_msrp_price-$display_normal_price;
$final_display_price = '<span class="smalltext1">' . TEXT_PRODUCT_MSRP . '<s>' . $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 . $currencies->display_price($save, '') . '</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')){
$save=$display_msrp_price-$display_normal_price;
$final_display_price = '<span class="smalltext1">'.TEXT_PRODUCT_MSRP.'<s>'.$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 . $currencies->display_price($save, '') . '</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;
}
}
This will show the "You Save" as a percentage only:
if ($display_normal_price == 0) {
// don't show the $0.00
if(($display_msrp_price!='')&&($display_msrp_price!='0')){
$save=$display_msrp_price-$display_normal_price;
$final_display_price = '<span class="smalltext1">' . TEXT_PRODUCT_MSRP . '<s>' . $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)), 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')){
$save=$display_msrp_price-$display_normal_price;
$final_display_price = '<span class="smalltext1">'.TEXT_PRODUCT_MSRP.'<s>'.$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)), 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;
}
}
This will remove the "You Save" line completely:
if ($display_normal_price == 0) {
// don't show the $0.00
if(($display_msrp_price!='')&&($display_msrp_price!='0')){
$save=$display_msrp_price-$display_normal_price;
$final_display_price = '<span class="smalltext1">' . TEXT_PRODUCT_MSRP . '<s>' . $currencies->display_price($display_msrp_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . '</s></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')){
$save=$display_msrp_price-$display_normal_price;
$final_display_price = '<span class="smalltext1">'.TEXT_PRODUCT_MSRP.'<s>'.$currencies->display_price($display_msrp_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])).'</s></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;
}
}
I'm also looking at moving the "You Save" line below the "MSRP Price" and "Our Price" so that it's in a more logical order. I need to get some rest right now though.
Inactive
Does anyone know if this works on v1.38a?
thank you,
betty
New Zenner
bettysue:
Does anyone know if this works on v1.38a?
thank you,
betty
I have just installed it on v1.38a and it appears to work just fine. Just made a quick mod to it so that the savings shown include tax.
New Zenner
Did you ever get the first step? tableprefix_products?
New Zenner
Hi All,
I'm in desperate need of help. I cannot log into my admin and I believe it has something to do with this contribution. I have uninstalled and reinstalled and drop tables and added tables and nothing I do seems to work. When I go to my admin log in page I get this error...
Fatal error: Cannot redeclare zen_update_products_price_sorter() (previously declared in /store/admin/includes/functions/general.php:2512) in /store/admin/includes/functions/functions_prices.php on line 2672
Please help!!!!
Online skin care and cosmetics
http://www.beautyxpress.com.au
New Zenner
I just installed this mod, and had the same problem as bx1. in case you haven't figured out the error here is the solution
for step 5 the file asks you to modify this file
in includes/functions/functions_prices.php
but it should be admin/includes/functions/functions_prices.php
this was a bit confusing since all the text to find and edit seems to be in both files.
New Zenner
mehmehmeh:
I just installed this mod, and had the same problem as bx1. in case you haven't figured out the error here is the solution
for step 5 the file asks you to modify this file
in includes/functions/functions_prices.phpbut it should be admin/includes/functions/functions_prices.php
this was a bit confusing since all the text to find and edit seems to be in both files.
seems I can't edit my post. I was wrong, step 5 is still editing the file includes/functions/functions_prices.php NOT the admin one I posted earlier.
I had tried to install the mod twice before and got the same error so I tried editing the other file and it didn't throw the error at the admin console but then I noticed the msrp was not showing up in the store. Carefully editing includes/functions/functions_prices.php
for the third time got me the desired results.
New Zenner
Wicked contribution thanks!!!
I was just wondering if anyone had any luck modifying the code so that it shows pricing as usual on the product listings under your categories, then shows all pricing on the product info page?
Anyone who figures this out would be a hero!
I tried this approach too as it seems to do what I want but couldnt get it working
http://forum.zen-cart.com/showthread.php?t=77819
Thanks in advance,
Nick.
Tell staff why this post should be reviewed.