Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to wrap product info around image

How to wrap product info around image

Locked

Views: 2,414

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
2 Jul 2006, 6:30 PM
#1
signs avatar

signs

Zen Follower

Join Date:
Jun 2006
Posts:
128
Plugin Contributions:
0

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. :lookaroun

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. :D

Signs

2 Jul 2006, 7:58 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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?

2 Jul 2006, 8:37 PM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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?

3 Jul 2006, 12:18 AM
#4
signs avatar

signs

Zen Follower

Join Date:
Jun 2006
Posts:
128
Plugin Contributions:
0

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. :thumbsup:

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. :shocking:

Thanks,
Jeri

3 Jul 2006, 9:18 AM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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.

3 Jul 2006, 1:48 PM
#6
signs avatar

signs

Zen Follower

Join Date:
Jun 2006
Posts:
128
Plugin Contributions:
0

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. :D

Jeri

3 Jul 2006, 2:13 PM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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?

3 Jul 2006, 2:35 PM
#8
signs avatar

signs

Zen Follower

Join Date:
Jun 2006
Posts:
128
Plugin Contributions:
0

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

3 Jul 2006, 6:49 PM
#9
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How to wrap product info around image

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.

signs:

  1. 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.
3 Jul 2006, 7:10 PM
#10
signs avatar

signs

Zen Follower

Join Date:
Jun 2006
Posts:
128
Plugin Contributions:
0

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.

3 Jul 2006, 7:45 PM
#11
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How to wrap product info around image

signs:

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.I suspect that will happen, and maybe sooner than you expect. Just look at my join date :thumbsup:.

3 Jul 2006, 8:00 PM
#12
signs avatar

signs

Zen Follower

Join Date:
Jun 2006
Posts:
128
Plugin Contributions:
0

Re: How to wrap product info around image

OMG I took newbie advice! AAAAAK!! LOL just kidding. :-)