Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jun 2006
    Posts
    128
    Plugin Contributions
    0

    Default How to wrap product info around image

    Hi! New to Zen having come from osc and am trying to figure out how to get the product info display to do what I want it to.

    Mainly, I want my product image to be to the left with the description wrapping the image. I have tried altering the product_info_display.php file, but to no avail. Is there a way to do this through CSS?

    I'm sorry if this question has already been addressed, but I had no luck searching and have yet to figure out where everything is here on the boards.

    Thanks in advance for any help.

    Signs

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: How to wrap product info around image

    In my clean install of v1.3 (only change, running future_Zen template) it does exactly what you say you are struggling to achieve. Indeed, I answered questions previously from people wanting to prevent this wrapping. Do you have a link to a site where it's not wrapping?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: How to wrap product info around image

    Hi Jeri

    I've taken a look at your site. The reason that the text doesn't wrap around the product image is because your template puts the image in a table cell spanning the full width of the center column to prevent text from wrapping around it. But this is not how the current version of Zen Cart works. What version are you using? If it is the latest, have you brought in any files from elsewhere that might be overriding the Zen Cart default files? Where is the product_info_display.php file that you are editing located (site hierarchy) and what is its exact name?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  4. #4
    Join Date
    Jun 2006
    Posts
    128
    Plugin Contributions
    0

    Default Re: How to wrap product info around image

    Thanks for taking a look...

    the version of Zen Cart that I am using is Zen Cart 1.3.0.1
    but I had my entire osc database redone by a third party to use with Zen. whether or not that affected any other files, I'm not sure.

    The path to the file I am attempting to alter is
    includes/templates/classic/templates/tpl_product_info_display.php

    I can post the entire file here if that would help. I don't know if that's frowned upon because it takes up a lot of room, so I thought I would ask first.

    The whole structure of Zen is so different than osc that I get lost and confused easily when trying to mess with the files. Chances are I am editing the wrong thing.

    Thanks,
    Jeri

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: How to wrap product info around image

    I suspect that it wasn't just your database that was moved across, but some or all of your template was also incorporated into the classic template as the code generated doesn't look like that

    You're trying to edit the right file, and I puzzled as to why you're not suceeding. But then this is layout tables stuff and I gave that up some time ago because it was pointlessly difficult, so maybe I shouldn't be surprised. However, I'm willing to take a look.

    To post this file, I'd recommend adding .txt to the filename and then when you click on reply, uploading and attaching it as a txt file.

    One other thing that would be worth trying - just delete the file altogether (make a copy first of course). The Classic Template in Zen Cart 1.3 doesn't have it's own tpl_product_info_display.php file, it relies on the default one. Maybe you could do the same - it's worth at least trying.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #6
    Join Date
    Jun 2006
    Posts
    128
    Plugin Contributions
    0

    Default Re: How to wrap product info around image

    Yes, I think my whole catalog is more of an osc masquarading as zen. lol

    Here's the tpl_product_info_display.php file that I've been trying to alter.

    I am thinking perhaps what I really need to do, to get everything functioning as it should in Zen, is to do a fresh install in another folder. The only problem is that I will be back to square one where I have 900+ customers/orders that will be lost unless I import them again. Any thoughts on that?

    I will attempt to delete the tpl_product_info_display.php file and see if that helps. In that case, I assume it will defer to the tpl_product_info_display.php file located in the includes/templates/default_template folder like you said, but when I look at that folder it appears that there are no other layout tags other than
    <div class="centerColumn" id="productGeneral">

    That leaves me with a whole 'nother ball of wax in figuring out which of many styles sheets controls that class. lol

    Thanks so much for your patience with me...I am a great learner just a little slow out of the gate. Once I get a handle on Zen to where I can quit thinking in osc, I'll be alright.

    Jeri
    Attached Files Attached Files

  7. #7
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: How to wrap product info around image

    There's a baby in that there bathwater. Having seen other work by the person who upgraded your database, I'm pretty certain that it will be absolutely fine, and a valuable asset.

    I would recommend doing a fresh install but in a different folder and and include the demo data. Then build your site template from scratch using the Zen Cart template_default. Once you've developed your new template, you can just copy it across to your live site and apply it to your existing database. In simple terms that's what I upgrade sites to version 1.3.

    If you want a head start, dowmload my future_Zen template (link in my sig below) and then throw away the images and references to them in the stylesheet. This will give you a starting point with some of the oddities and inconsistencies of the template_default stylesheet already ironed out.

    Is there any value in still taking a quick look at your tpl_product_info_display.php file?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  8. #8
    Join Date
    Jun 2006
    Posts
    128
    Plugin Contributions
    0

    Default Re: How to wrap product info around image

    Yes, Kuroi, there is definitely a "baby" there. :-) and No, you probably don't even need to look at that file since I am going to take your advice.

    I think you have the best suggestion...I will d/l the future zen template and get my design ducks in a row. Right now the cart is functioning as it should and it really doesn't make any difference if the description doesn't wrap the image <--that's just something I like and only a matter of personal taste, which doesn't matter a flip when it comes to sales because they are still buying my wares no matter how it's laid out.

    Messing with your Future Zen template will give me a chance to "get to know" the files anyhow, so maybe next time I have a question about something like this I won't feel I need a English to Zen translation book to even talk about it.

    BTW, it's very refreshing to be a part of such a forum where questions are taken seriously and help is doled out in generous portions. Can't thank you enough.

    Two more quick questions before I go...
    1. Is there a central location of the contributed mods for Zen that I can peruse? (one that has more files than the download link at the top of this page)

    2. Specifically, is there a mod for creating a feed for Google Base?

    Hopefully, soon I will learn how to find this info by doing the search for it correctly, and not be bothering you nice folks with questions that have been answered over and over again. Every time I use the search it either gives me too many answers or none at all. lol

    Thanks for everything!
    Jeri

  9. #9
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: How to wrap product info around image

    Quote Originally Posted by signs
    Two more quick questions before I go...
    1. Is there a central location of the contributed mods for Zen that I can peruse? (one that has more files than the download link at the top of this page)
    The downloads section is it, but on the front page of sdownloads look for the ink that says "Click here for older contributions" and behind it you'll find a lot more that pre-date this version of the forum. You have to tread carefully though, as many also pre-date this version of Zen Cart.

    Quote Originally Posted by signs
    2. Specifically, is there a mod for creating a feed for Google Base?
    I recommend doing a search on "Google Base". There are a few threads by much more knowledgeable people than me working towards what you're asking about.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  10. #10
    Join Date
    Jun 2006
    Posts
    128
    Plugin Contributions
    0

    Default Re: How to wrap product info around image

    Thanks! I don't know how many times I looked at the Downloads page and missed that link.

    I will search for Google Base and see what's brewing.

    Thanks so much for all your help. I hope that one day I will have such a good grip on the whole Zen Cart thing that I can be the helper instead of the helpee.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Product Info, Align to right and not wrap under image
    By mcpisik in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 5 Oct 2013, 06:35 PM
  2. v151 Product page mess - can I wrap text around my image?
    By kevin baker in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Jun 2013, 06:17 PM
  3. Cannot achieve "text wrap" effect around product image
    By Feznizzle in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 19 Jul 2010, 08:12 PM
  4. wrap text around categories image
    By Edm in forum General Questions
    Replies: 0
    Last Post: 3 Jun 2008, 01:07 PM
  5. Getting Text to Wrap around Homepage Image
    By bsteinagel in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Apr 2008, 06:50 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