Thread: MSRP Add-on

Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    131
    Plugin Contributions
    0

    Default MSRP Add-on

    Hello

    I have recently installed the add-on 'MSRP Display' and have been trying to tweak it a little... Here's what I want to do:

    I'm looking to get the 'You save' section to show the total saving, including any sales or specials, if any, rather than only the difference between MSRP and price.

    e.g.
    MSRP: $50
    Our price: $45
    Special: $40
    Sale: $35
    You save: $5

    The 'You save' should read $15.

    This is what I have so far (the coding is still a bit messy):
    PHP Code:
        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 'RRP: <span class="smalltext1"><s>'.TEXT_PRODUCT_MSRP.$currencies->display_price($display_msrp_pricezen_get_tax_rate($product_check->fields['products_tax_class_id'])).'</s></span><br><span class="save">'.TEXT_PRODUCT_SAVE .$currencies->display_price($savezen_get_tax_rate($product_check->fields['products_tax_class_id'])).'</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_special_price) {
         
    $save=$display_msrp_price-$display_special_price;
              
    $final_display_price 'RRP: <span class="smalltext1"><s>'.TEXT_PRODUCT_MSRP.$currencies->display_price($display_msrp_pricezen_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 .'</span><br><span class="save">'.TEXT_PRODUCT_SAVE .$currencies->display_price($savezen_get_tax_rate($product_check->fields['products_tax_class_id'])).'</span>' ;
        } elseif (
    $display_sale_price) {
         
    $save=$display_msrp_price-$display_sale_price;
              
    $final_display_price 'RRP: <span class="smalltext1"><s>'.TEXT_PRODUCT_MSRP.$currencies->display_price($display_msrp_pricezen_get_tax_rate($product_check->fields['products_tax_class_id'])).'</s></span><br><span class="save">'.TEXT_PRODUCT_SAVE .$currencies->display_price($savezen_get_tax_rate($product_check->fields['products_tax_class_id'])).'</span><br><span class="norm">'.TEXT_PRODUCT_OUR.$show_normal_price $show_special_price $show_sale_price $show_sale_discount.'</span>' ;
        } elseif (
    $display_normal_price) {
         
    $save=$display_msrp_price-$display_normal_price;
              
    $final_display_price 'RRP: <span class="smalltext1"><s>'.TEXT_PRODUCT_MSRP.$currencies->display_price($display_msrp_pricezen_get_tax_rate($product_check->fields['products_tax_class_id'])).'</s></span><br><span class="save">'.TEXT_PRODUCT_SAVE .$currencies->display_price($savezen_get_tax_rate($product_check->fields['products_tax_class_id'])).'</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 almost works -- the 'You save' shows the correct amount, including any sales or specials (as in example above). The only problem I have (which, I might add, is pretty serious) is that all other prices without MSRP are missing. They're blank -- they are reading no pricing at all. Those with attributes show the 'Starting at' wording, but nothing else.

    I would greatly appreciate any help on this matter... I've been at it for many days now and haven't proceeded.

    Thanks in advance,
    Tija

  2. #2
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    131
    Plugin Contributions
    0

    Default Re: MSRP Add-on

    Anyone have any ideas?

    Still haven't managed to work this out... I'm hoping that the problem is just my bad coding knowledge.

    - Tija

 

 

Similar Threads

  1. MSRP contrib
    By hbtrading in forum All Other Contributions/Addons
    Replies: 392
    Last Post: 25 Feb 2019, 01:19 PM
  2. v154 Msrp
    By SilverHD in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 6 Oct 2015, 09:00 AM
  3. v150 Help with addon MSRP: Add a new field to the products table
    By Johnnycopilot in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 5 Jan 2014, 11:28 PM
  4. v139h How to add Numinix Product Fields (MSRP) to Product Listing Pages
    By Angeltown in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 7 Nov 2013, 11:00 PM
  5. MSRP Add On - Not On Front Page
    By NathanLee0921 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 18 Jul 2010, 06:24 AM

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