Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Remove break before free image/text

    I have searched the forums and maybe I am using the wrong terms cos I can't find anything on this LOLOL

    For my freebies, I removed the free image and am just using the text bit, but there is an added break that doesn't happen with just the regular price and I would like to remove this but don't know how LOLOL

    You can see what I mean on this page HERE and the product info page HERE

    And also I want to remove it in the centerboxes as well (might have to refresh a few times to catch one LOL

    http://www.havendesignz.com/store/

    And I know it's a big ask LOL but anyway also of having the text show next to the Price: as normal price would HERE (scroll down) instead of under it?
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  2. #2
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Remove break before free image/text

    I guess no one knows how to do this?
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Remove break before free image/text

    The browser is still looking for the image: (IE7)


    http://www.stevesh.com/test/scrap.jpg

  4. #4
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Remove break before free image/text

    UGH and ppl wonder why I love Firefox so much LMAO guess I'll hafta make another image.....the break problem is still there though with an image and I still wanna remove it LOL if I can :)
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Remove break before free image/text

    No, FF is looking for an image there, too, it just replaces it with the alt text. IE can't do that, I guess.

    What I think you need to do is replace that image with text in the product info template, or wherever you added it in the first place.

  6. #6
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Remove break before free image/text

    lol when I removed the image I thought it just automatically used the text instead....just replaced the image for now since I have windows open and work piled up everywhere LOL
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  7. #7
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Remove break before free image/text

    I found it!! *does a lil dance LOL*

    includes/functions/functions_prices.php ... find these lines:

    PHP Code:
        // If Free, Show it
        
    if ($product_check->fields['product_is_free'] == '1') {
          if (
    OTHER_IMAGE_PRICE_IS_FREE_ON=='0') {
            
    $free_tag '<br />' PRODUCTS_PRICE_IS_FREE_TEXT;
          } else {
            
    $free_tag '<br />' zen_image(DIR_WS_TEMPLATE_IMAGES OTHER_IMAGE_PRICE_IS_FREEPRODUCTS_PRICE_IS_FREE_TEXT);
          }
        } 
    and remove the <br /> tags, like so:

    PHP Code:
        // If Free, Show it
        
    if ($product_check->fields['product_is_free'] == '1') {
          if (
    OTHER_IMAGE_PRICE_IS_FREE_ON=='0') {
            
    $free_tag '' PRODUCTS_PRICE_IS_FREE_TEXT;
          } else {
            
    $free_tag '' zen_image(DIR_WS_TEMPLATE_IMAGES OTHER_IMAGE_PRICE_IS_FREEPRODUCTS_PRICE_IS_FREE_TEXT);
          }
        } 
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  8. #8
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Remove break before free image/text

    As a final note....if you just want the text to display for free products instead of an image, don't just delete the image like I did...there *is* a switch for it in Admin, which I really should have looked for LOL

    Admin - Configuration - Product Info - Show the Price is Free Image or Text on Displayed Price
    0= Text
    1= Image
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

 

 

Similar Threads

  1. v151 Help to remove unwanted break tags
    By longstockings in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Jan 2014, 05:45 PM
  2. v150 IE sometimes ignores page-break-before: always;
    By badarac in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Aug 2012, 10:00 PM
  3. Preview image with the given text before adding it to the cart
    By rajoo.sharma in forum General Questions
    Replies: 0
    Last Post: 8 Mar 2010, 08:03 AM
  4. break before checkout_success using external payment module addons
    By FrilansReklam in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 8 Jan 2009, 08:43 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