Thread: MSRP contrib

Results 1 to 10 of 393

Hybrid View

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

  2. #2

    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!

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

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

 

 

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

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