Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Remove break before free image/text

Remove break before free image/text

Locked

Views: 1,114

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
4 Sep 2008, 12:07 AM
#1
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

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?

16 Sep 2008, 9:48 PM
#2
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: Remove break before free image/text

I guess no one knows how to do this?

17 Sep 2008, 12:24 PM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Remove break before free image/text

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

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

17 Sep 2008, 7:28 PM
#4
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

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 :)

17 Sep 2008, 7:41 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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.

17 Sep 2008, 8:10 PM
#6
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

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

18 Sep 2008, 4:59 AM
#7
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: Remove break before free image/text

I found it!! does a lil dance LOL

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

    // 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_FREE, PRODUCTS_PRICE_IS_FREE_TEXT);
      }
    }
```and remove the <br /> tags, like so:

```php
    // 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_FREE, PRODUCTS_PRICE_IS_FREE_TEXT);
      }
    }
```:clap:
18 Sep 2008, 5:26 AM
#8
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

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