Thread: MSRP contrib

Page 8 of 40 FirstFirst ... 67891018 ... LastLast
Results 71 to 80 of 393
  1. #71
    Join Date
    Mar 2005
    Location
    Tempe, AZ
    Posts
    324
    Plugin Contributions
    0

    Default Re: Strike Through - MSRP

    Quote Originally Posted by majoritywhip View Post
    How about getting rid of the strike through on MSRP?
    Why would you want to get rid of the strike through that is the reason for this mod to show your customers that they are not paying MSRP
    Lextechs.com Powered By ZenCart

  2. #72
    Join Date
    Mar 2005
    Location
    Tempe, AZ
    Posts
    324
    Plugin Contributions
    0

    Default Re: MSRP contrib

    Quote Originally Posted by majoritywhip View Post
    How about getting rid of the strike through on MSRP?
    Quote Originally Posted by bigsy85 View Post
    Solved it! , cheers Lextechs.

    For anyone who has the same problem i just created an if statement that compares the normal price with the msrp price, if its the same no saving is shown.

    I nested it with the If that determines if the msrp should be run, the code below is all you need.

    if ($display_normal_price == $display_msrp_price){
    $final_display_price = $show_normal_price . $show_special_price . $show_sale_price . $show_sale_discount;
    }

    else{
    .....normal msrp routine}

    ##########################################################################################_

    Or just replace with the whole routine pasted below in
    includes/functions/function_prices.php



    if ($display_normal_price == 0) {
    // don't show the $0.00
    if(($display_msrp_price!='')&&($display_msrp_price!='0')){

    if ($display_normal_price = $display_msrp_price){
    $final_display_price = $show_normal_price . $show_special_price . $show_sale_price . $show_sale_discount;
    }


    else
    {


    $save=$display_msrp_price-$display_normal_price;
    $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 .$currencies->display_price($save, '').'&nbsp;&nbsp;('. 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')){

    if ($display_normal_price == $display_msrp_price){
    $final_display_price = $show_normal_price . $show_special_price . $show_sale_price . $show_sale_discount;
    }

    else{


    $save=$display_msrp_price-$display_normal_price;
    $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 .$currencies->display_price($save, '').'&nbsp;&nbsp;('. 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;
    }
    }
    Glad to help just being a good zenner
    Lextechs.com Powered By ZenCart

  3. #73

    Default Re: MSRP contrib

    Hiya,
    I'd like to try and use this mod in a slightly different way, but am having trouble...

    My client has a 3.0% discount on all cash/bank deposit payments (courtesy of the Payment Type Discount mod), but want's to reflect that discount on the product info page, ie:

    Regular price: $5.00
    Cash price: $4.85

    The price will be the regular price right up until checkout when the Payment Type discount kicks in, so I don't need to pass the correct value to the shopping cart.

    Can anyone help with this, please?
    TIA!

  4. #74
    Join Date
    Mar 2007
    Posts
    74
    Plugin Contributions
    0

    Default Re: MSRP contrib

    Hello can anyone help me with this module please?

    I am getting a blank home page on my website having installed the module on 1.3.8. I have spent nearly a whole day looking into this.

    Looking at debugging the error message is:

    PHP Parse error: syntax error, unexpected $end in /home/liquidat/public_html/includes/functions/functions_prices.php on line 1359

    This is the code debugging refers to 1359 is the last line shown.

    Code:
    // BOF: flat amount discounts
          case ($discount_type_id == 20):
            // flat amount discount Sale and Special without a special
            if (!$attributes_id) {
              $sale_maker_discount = $sale_maker_discount;
            } else {
    I checked this area of the file and it wasn't even an area amended by the install so I am confused.

    I am also a novice in this area!

    I stepped back through the install steps, and once I restored the original functions_prices.php file the site was back to normal. I have tried starting from scratch about 3 times but same error.

    I can get into the admin area fine and see the new MSRP field on the product page to add the new price into. It is just this blank home page and I don't know how to go about fixing it.

    Can anyone help me please?

    Thanks in advance

  5. #75
    Join Date
    Mar 2007
    Posts
    74
    Plugin Contributions
    0

    Default Re: MSRP contrib

    I have had another go at installing this but still getting the same problem. I am really stuck. Can anyone offer any advice or help? I have struggled through a lot of stuff to get this far with the website and am reluctant to give up here but can't see a way forward unless I can resolve this.

    Thanks for any help/advice given - even suggestions for an alternative way to solve the problem

  6. #76
    Join Date
    Mar 2005
    Location
    Tempe, AZ
    Posts
    324
    Plugin Contributions
    0

    Default Re: MSRP contrib

    Quote Originally Posted by kbalona View Post
    Still doesn't work
    The instructions said to change catalog/admin/modules/update_product.php but there' no such file, it's in "catalog/admin/includes/modules" I figured it was just a mistake, correct?

    I'm going to go through all the steps again and make sure I didn't miss anything.
    I think you are missing something a part of the file or something, because when i first loaded this mod i got the blank page as you did then i restored every modified file back to default and got the home page to work, then i went through the mod installion slowly and compared files for a site i added to and knows that it works. anyway it is working on my test site, i am sure i missed something the first time around, here is the link http://lextechs.net/shop/index.php?m...&products_id=2

    I can send you zip file with the files i have modified and work, you would have to use a compare program to compare the files i send you to the ones in your installation of zencart.

    Yes that location in the instruction is a type O the file is actually located "catalog/admin/includes/modules"
    Last edited by lextechs; 9 Mar 2009 at 06:17 PM. Reason: forgot a part
    Lextechs.com Powered By ZenCart

  7. #77
    Join Date
    Mar 2005
    Location
    Tempe, AZ
    Posts
    324
    Plugin Contributions
    0

    Default Re: Strike Through - MSRP

    Quote Originally Posted by majoritywhip View Post
    How about getting rid of the strike through on MSRP?
    to remove the strike through in functions functions_prices.php, find html tags <s> and</s> there should be two sets in the MSRP section remove them and the strike through is gone
    Lextechs.com Powered By ZenCart

  8. #78
    Join Date
    Mar 2007
    Posts
    74
    Plugin Contributions
    0

    Default Re: MSRP contrib

    Hello Lextechs

    Yes - please send me the zip file for me to have a compare with - thank you.

  9. #79
    Join Date
    Mar 2007
    Posts
    74
    Plugin Contributions
    0

    Default Re: MSRP contrib

    I am so excited (sad!!) because I finally got this working all by myself!!!

    For anyone else really battling my problem turned out to be in step 5. I had cut and pasted code from the 'read me' instruction file into the functions_prices.php file. On going through the install for about the 5th time line by line i just noticed a visual difference in the code. The code I had cut and pasted had no gaps around the = sign, whereas the code in the original file had gaps.

    Here's what I mean

    Instruction text file step 5 says:

    Code:
      Find: 
      
       $display_sale_price = zen_get_products_special_price($products_id, false);
       
      After add:
      
     $display_msrp_price=zen_get_products_msrp_price($products_id);
     $display_price_save=zen_get_products_price_save($products_id);
    I changed this to

    Code:
      After add:
      
     $display_msrp_price = zen_get_products_msrp_price($products_id);
     $display_price_save = zen_get_products_price_save($products_id);
    I hope this saves someone the headache I had. Now it is done it does work well and I am pleased so keep perservering if you are struggling!

  10. #80
    Join Date
    Jul 2007
    Location
    Roseville, Michigan
    Posts
    188
    Plugin Contributions
    0

    Default Re: MSRP contrib

    Quote Originally Posted by majoritywhip View Post

    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'zen_products ADD products_msrp DECIMAL( 15, 4 ) NOT NULL AFTER products_price' at line 1
    in:
    [ALTER TABLE zen_ zen_products ADD products_msrp DECIMAL( 15, 4 ) NOT NULL AFTER products_price ;]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.


    So then I saw the zen_zen_products statement and figured that I should just write it simply as "products" since the "zen_" was being inserted.

    Nope. Here is the error message:

    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'products ADD products_msrp DECIMAL( 15, 4 ) NOT NULL AFTER products_price' at line 1
    in:
    [ALTER TABLE zen_ products ADD products_msrp DECIMAL( 15, 4 ) NOT NULL AFTER products_price ;]


    Any ideas on step one?
    Zencart 1.3.8a
    I was having the same problem. I inserted in this way.

    Code:
    ALTER TABLE `products`
    ADD  `products_msrp` DECIMAL( 15, 4 ) NOT NULL AFTER  `products_price` ;
    This worked for me. I hope this help.

 

 
Page 8 of 40 FirstFirst ... 67891018 ... LastLast

Similar Threads

  1. v151 MSRP Display Mod
    By Larry0652 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 26 Oct 2017, 12:36 PM
  2. v154 Msrp
    By SilverHD in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 6 Oct 2015, 09:00 AM
  3. v139h MSRP Add-on
    By MortalWombat in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 23 Aug 2012, 01:11 AM
  4. Msrp display issue
    By CRYSTALDOLL in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 10 Aug 2009, 02:40 PM
  5. MSRP Contrib, can anyone install it for me ?
    By Spdster in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 14 Jan 2009, 08:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR