Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Mar 2012
    Posts
    315
    Plugin Contributions
    0

    Default MAP Pricing v1.5 - display strike-through on MAP Price?

    I have Zen Cart V1.5 .. When I have MAP Price enabled, and the MAP price is displayed, now it says " $229 for SALE price, add to cart ".. I want to have a strike-through on the displayed price (only on MAP displayed price). Can I do this by adding some syntax to my CSS stylesheet? If so, where would I add it, and what would it be? I found this 'generic' syntax (below)for something else and so I thought I could make the displayed price on my site have a line through the displayed map price by doing something similar. If not, how can it be done? I am using abagon template. Website is www.stageandtheaterlighting.com Any help would be appreciated. Thanks!!! :)

    .price .sale .onSale {
    text-decoration: line-through;
    color: #900;
    }

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: MAP Pricing v1.5 - display strike-through on MAP Price?

    A direct link to a page where this can be seen
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2012
    Posts
    315
    Plugin Contributions
    0

    Default Re: MAP Pricing v1.5 - display strike-through on MAP Price?

    Kobra thanks. Here is a link. If you need to see more, all of the Omnisistem (brand) products are MAP. The dealers link is on the right. I either have the Omnisistem products listed as a specials, or they are MAP. There are also lots of new products just added that are MAP.
    https://www.stageandtheaterlighting....oducts_id=1534 .. If you are talking about that little piece of syntax, I saw that here http://siteignition.com/Best+Practic...for+Sale+Price
    Last edited by Johnnycopilot; 11 Feb 2013 at 07:46 AM.

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: MAP Pricing v1.5 - display strike-through on MAP Price?

    Is this an upgraded site??

    On this page I see this probably owing to a collation mis match
    https: // www. stageandtheaterlighting.com/index.php?main_page=product_info&cPath=11_19&products_id=392
    • CORE:
    • ABS molded plastic

    • UNIT WEIGHT:
    • 3 Lbs
    • SHIPPING WEIGHT:
    • 4 Lbs
    • SHIPPING DIMENSIONS:
    • 27In x 18In x 19In (12 per box)
    Also, what you want will require custom code added to the MAP module
    Stated in the module
    a) should this product have MAP pricing enabled? If MAP pricing is enabled for that product, it replaces the price (throughout your website) with editable text that says: "Priced so low, we're not able to advertise it. Add to cart for price."
    b) should a MAP price be displayed? If you specify a "Minimum Advertised Price" then it will say "$xxx.xx For a better price, add to your cart" (replacing $xxx.xx with the price you enter)
    Also, why are you running your store front in https??
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Mar 2012
    Posts
    315
    Plugin Contributions
    0

    Default Re: MAP Pricing v1.5 - display strike-through on MAP Price?

    Quote Originally Posted by kobra View Post
    Is this an upgraded site??
    I am not sure what you mean by upgraded site. I am using abagon template, and I tried to make some changes to the appearance of it. I am (kind of) familiar with the way that PHP works, but I literally don't know how to write any php code, so I did what I did from asking questions in the forum. Adding things to CSS, etc. but honestly, before I started learning to use the forum, there is no telling what I may have done to that template. Well, Actually I believe that I made notes... somewhere.

    Quote Originally Posted by kobra View Post
    On this page I see this probably owing to a collation mis match
    https: // www. stageandtheaterlighting.com/index.php?main_page=product_info&cPath=11_19&products_id=392
    1st, what do you mean by a collation mis match? Yea, that happened when I exported via apsona shopadmin to .csv file, and then re-uploaded; Around 400-500 products did that. I didn't see it until it was too late, and had to go back and change all of my descriptions one by one, because the only 'copy' I had of the descriptions in one place was in that corrupt export. Unfortunately I have not "fixed" them all yet. Those [ • ] characters used to be bullets, but somehow got transformed by Elvis. Now, when making product edits via apsona shopadmin, I don't export the "description" field and everything is fine. It could have happened when I pasted formatted code directly into my product description field {like copy/paste from word} (this is my first Zen site,, I have learned not to do that anymore), then exported, and re-imported, but not sure. I will figure out what happened later, but I do know for SURE it happened in the export, and i didn't see it until I had no 'good' database left (by database I mean product descriptions). Now my only recourse is to manually re-enter the descriptions that are corrupt. I haven't fixed them all yet.

    Quote Originally Posted by kobra View Post
    Also, what you want will require custom code added to the MAP module
    Stated in the module
    Kobra, in reference to....
    Quote Originally Posted by kobra View Post
    a) should this product have MAP pricing enabled? If MAP pricing is enabled for that product, it replaces the price (throughout your website) with editable text that says: "Priced so low, we're not able to advertise it. Add to cart for price."
    b) should a MAP price be displayed? If you specify a "Minimum Advertised Price" then it will say "$xxx.xx For a better price, add to your cart" (replacing $xxx.xx with the price you enter)
    I see those two sentences in the 'readme.txt' file in the MAP Pricing v1.5 installation folder, but what am I supposed to do with that information? Where do I add the code, and what should the code say?

    Quote Originally Posted by kobra View Post
    Also, why are you running your store front in https??
    I don't know, I have often wondered that myself. I know that I added the https url to a php page when I started taking credit cards, and some people said to put that https url in two places. ( I would have to go back and look at my old posts to find out who, and why I was told that, or perhaps I misunderstood someone). I saw where I was supposed to only put the https in one place at some point (in the php file), but honestly I just don't remember. I thought it was a security thing, but on the other hand, I thought that I only needed a secure page on the checkout page, or at least the part of the checkout that takes CC information. Is that hurting my SEO? Do you mind providing a link for me to fix it the correct way please? Thanks Kobra !!!!!!!!!!!

    One more thing. I DO want the map price to show, but I just want a thin line through it, so the customer can see what the price 'was' before new price shows up in cart..
    Last edited by Johnnycopilot; 12 Feb 2013 at 04:33 AM.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: MAP Pricing v1.5 - display strike-through on MAP Price?

    In this section output by tpl_product_info_display.php
    HTML Code:
    <!--bof Product Price block -->
    <h2 id="productPrices" class="productGeneral">
    <span class="map_pricing">$398 for SALE price, add to cart</span></h2>
    the entire span is one block so the price cannot be styled separately. The PHP code will have the price output followed by (probably) a constant which holds the text " for SALE price, add to cart". You may be able to find the define for that constant and add new <span> tags around that part like this
    PHP Code:
    define('MAP_TEXT_WHATEVER_NAME''<span class="noMap"> for SALE price, add to cart</span>'); 
    In your stylesheet
    Code:
    .map_pricing {text-decoration: strikethrough;}
    .map_pricing .noMap {text-decoration: none;}

  7. #7
    Join Date
    Mar 2012
    Posts
    315
    Plugin Contributions
    0

    Default Re: MAP Pricing v1.5 - display strike-through on MAP Price?

    Thanks gjh42, I will give it a shot. I don't know how, but I actually understand what you are saying. I will post back with the results after I attempt the changes. Don't hold your breath... haha

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: MAP Pricing v1.5 - display strike-through on MAP Price?

    When you find the define, post the original if it is not clear, and we can tell you for sure how to edit it.

  9. #9
    Join Date
    Mar 2012
    Posts
    315
    Plugin Contributions
    0

    Default Re: MAP Pricing v1.5 - display strike-through on MAP Price?

    ok thanks.

  10. #10
    Join Date
    Mar 2012
    Posts
    315
    Plugin Contributions
    0

    Default Re: MAP Pricing v1.5 - display strike-through on MAP Price?

    Ok, I did the following, but the appearance hasn't changed. Did I add the values to the CSS Correct?

    I CHANGED/ADDED /includes/templates/abagon/css/stylesheet.css
    FROM:
    .map_pricing {
    color: #FF0000;
    font-weight: normal;
    }

    TO:
    .map_pricing {text-decoration: strikethrough;
    color: #FF0000;
    font-weight: normal;
    }

    .map_pricing .noMap {text-decoration: none;
    }

    AND I CHANGED: /includes/languages/english/extra_definitions/map_pricing.php
    FROM:
    define('MAP_PRICE_STORE_FRONT_TEXT', "Priced so low we can't advertise it - Add to cart for price.");
    define('MAP_PRICE_STORE_FRONT_TEXT_WITH_MAP_PRICE_DISPLAYED', 'for SALE price, add to cart');

    TO:
    define('MAP_PRICE_STORE_FRONT_TEXT', "Priced so low we can't advertise it - Add to cart for price.");
    define('MAP_PRICE_STORE_FRONT_TEXT_WITH_MAP_PRICE_DISPLAYED', '<span class="noMap"> for SALE price, add to cart</span>');

    When I do that, browser "View Source" shows this....

    <!--bof Product Price block -->
    <h2 id="productPrices" class="productGeneral">
    <span class="map_pricing">$399 <span class="noMap"> for SALE price, add to cart</span></span></h2>
    <!--eof Product Price block -->

    I see my close span tag out of place, but that's about the limit of my knowledge.

    ALSO, I tried adding ONLY the

    .map_pricing {text-decoration: strikethrough;
    color: #FF0000;
    font-weight: normal;
    }

    to the stylesheet to see if it would strikethrough the price and text, but nothing there either; no strikethrough.
    When I do that, browser 'view source' looks like this

    <!--bof Product Price block -->
    <h2 id="productPrices" class="productGeneral">
    <span class="map_pricing">$399 for SALE price, add to cart</span></h2>
    <!--eof Product Price block -->


    I put both changes BACK in case you wanted to see what it looked like WITH the changes I tried, and that's the way it is currently.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Can you have both the MSRP Display and MAP Pricing Plugins?
    By SilverHD in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 13 Jan 2014, 10:14 PM
  2. MAP Pricing
    By skookumnarrows in forum Addon Templates
    Replies: 12
    Last Post: 20 Jun 2011, 06:29 PM
  3. MAP Pricing
    By tbaquatics in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 6 Oct 2009, 01:18 AM

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