MSRP contrib

Views: 82,052

Results 21 to 40 of 393
24 Jul 2007, 8:00 PM
#21
kbalona avatar

kbalona

Zen Follower

Join Date:
Oct 2006
Posts:
213
Plugin Contributions:
0

MSRP contrib

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:)

25 Jul 2007, 12:48 AM
#22
msgok avatar

msgok

New Zenner

Join Date:
May 2006
Posts:
41
Plugin Contributions:
0

Re: MSRP contrib

Thanks so much, kbalona. I finally got it to work.

25 Jul 2007, 5:35 PM
#23
lextechs avatar

lextechs

Zen Follower

Join Date:
Mar 2005
Location:
Tempe, AZ
Posts:
316
Plugin Contributions:
0

Re: MSRP contrib

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

11 Aug 2007, 10:05 PM
#24
spdster avatar

spdster

New Zenner

Join Date:
Apr 2007
Posts:
36
Plugin Contributions:
0

Re: MSRP contrib

Im willing to pya someone to add this mod to my website. Email me if you can?

[email protected]

25 Sep 2007, 9:03 AM
#25
narodk avatar

narodk

New Zenner

Join Date:
Sep 2007
Posts:
3
Plugin Contributions:
0

Re: MSRP contrib

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?

25 Sep 2007, 10:06 AM
#26
kbalona avatar

kbalona

Zen Follower

Join Date:
Oct 2006
Posts:
213
Plugin Contributions:
0

Re: MSRP contrib

I re-uploaded all the files, and then carefully re-configured all of them. That did the trick for me.

26 Sep 2007, 9:02 AM
#27
narodk avatar

narodk

New Zenner

Join Date:
Sep 2007
Posts:
3
Plugin Contributions:
0

Re: MSRP contrib

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

26 Sep 2007, 9:30 AM
#28
narodk avatar

narodk

New Zenner

Join Date:
Sep 2007
Posts:
3
Plugin Contributions:
0

Re: MSRP contrib

Nevermind I got it to work. Had to really look carefully.

10 Dec 2007, 5:59 PM
#29
pastelblack avatar

pastelblack

New Zenner

Join Date:
Nov 2007
Posts:
22
Plugin Contributions:
0

Re: MSRP contrib

Simply amazing!!!! This is exactly what I was looking for!

28 Jan 2008, 6:38 PM
#30
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: MSRP contrib

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


Zen Cart and it's community are the best!!

8 Jun 2008, 8:49 AM
#31
knighs2 avatar

knighs2

New Zenner

Join Date:
May 2007
Posts:
42
Plugin Contributions:
0

Re: MSRP contrib

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

9 Jun 2008, 5:18 AM
#32
izilla_pod avatar

izilla_pod

New Zenner

Join Date:
Sep 2006
Posts:
26
Plugin Contributions:
0

Re: MSRP contrib

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.

9 Jun 2008, 6:07 AM
#33
izilla_pod avatar

izilla_pod

New Zenner

Join Date:
Sep 2006
Posts:
26
Plugin Contributions:
0

Re: MSRP contrib

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.

19 Jun 2008, 12:41 PM
#34
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: MSRP contrib

Does anyone know if this works on v1.38a?

thank you,

betty

20 Jun 2008, 4:45 PM
#35
snowy2008 avatar

snowy2008

New Zenner

Join Date:
May 2008
Posts:
34
Plugin Contributions:
0

Re: MSRP contrib

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.

25 Jun 2008, 1:05 PM
#36
boykor avatar

boykor

New Zenner

Join Date:
May 2008
Posts:
1
Plugin Contributions:
0

Re: MSRP contrib

Did you ever get the first step? tableprefix_products?

15 Jul 2008, 4:46 AM
#37
bx1 avatar

bx1

New Zenner

Join Date:
Aug 2007
Location:
Australia
Posts:
67
Plugin Contributions:
0

Re: MSRP contrib

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

25 Jul 2008, 10:02 PM
#38
mehmehmeh avatar

mehmehmeh

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

Re: MSRP contrib

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.

26 Jul 2008, 6:20 PM
#39
mehmehmeh avatar

mehmehmeh

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

Re: MSRP contrib

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.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.

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.

27 Jul 2008, 6:25 AM
#40
fightthefourwalls avatar

fightthefourwalls

New Zenner

Join Date:
Nov 2007
Posts:
57
Plugin Contributions:
0

Re: MSRP contrib

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.