Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Product listing - swaping elements around

Product listing - swaping elements around

Locked

Views: 1,300

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
22 Jun 2009, 8:52 PM
#1
peanut77 avatar

peanut77

Zen Follower

Join Date:
Feb 2005
Posts:
266
Plugin Contributions:
0

Product listing - swaping elements around

I am using zen 1.38a with the column layout module.

I am quite familar with this but I am stuck at a really daft bit.

I want to display the item like this

product name,
product image,
product description,
more info

But the name & the description seem stuck to each other like glue.

So I can only have

product image,
product name,
product description,
more info

or

product name,
product description,
product image,
more info

Eveything I have tried to move has just thrown up an error.

Have probably been looking at this too long - any help appreciated.

22 Jun 2009, 10:17 PM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Product listing - swaping elements around

The file that produces the elements that go in the product listing table is product_listing.php

In it's default form the name and the description are grouped together.

You can remove the description entirely from the admin section but if you want both the description and name to display then getting them to display as you described is going to take some php programming of that file. Doing it in a hack might not be too hard but doing it nicely would take a bit of work.

Depends how badly you want it and how happy you are with php :smile: maybe not displaying the description in product listing and only displaying it on the product info page is a solution for you?

23 Jun 2009, 7:34 AM
#3
peanut77 avatar

peanut77

Zen Follower

Join Date:
Feb 2005
Posts:
266
Plugin Contributions:
0

Re: Product listing - swaping elements around

Hi Nicol

Thanks for your reply - I've hacked that file before but I just can't see how to safely and without causing errors get this on the go.

Maybe this morning I'll beable to see what to do!

Cheers

31 Jul 2009, 4:20 PM
#4
richard_tung avatar

richard_tung

New Zenner

Join Date:
May 2009
Location:
Toronto, Canada
Posts:
70
Plugin Contributions:
0

Re: Product listing - swaping elements around

Is there any way to keep the desciption lined up (column) after it reaches the bottom of the image and not align to the left under the image...
I might have to try to put the product name and description under the image... just means more scrolling down to read... :(

Or maybe Product name, description and then image on the left... that would work fine if it can be done...
Its because of long detailed descriptions....

31 Jul 2009, 4:37 PM
#5
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Product listing - swaping elements around

Yes, there are ways to do it nicely if you edit tpl_product_info_display. However a quick fix is :

#productDescription{margin-left:104px;}

And match the 104px to what it is exactly for your site.

31 Jul 2009, 6:00 PM
#6
richard_tung avatar

richard_tung

New Zenner

Join Date:
May 2009
Location:
Toronto, Canada
Posts:
70
Plugin Contributions:
0

Re: Product listing - swaping elements around

I've tried to put this into my template tpl_product_info_display.php but no luck working...
Any easy way to arange so that it displays
Product
Proudct Description
and price on the left and photo on the right???
:cry:

31 Jul 2009, 6:17 PM
#7
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Product listing - swaping elements around

Sorry, I wasn't clear. The code for the quick fix is to go into the stylesheet.

Nick

31 Jul 2009, 6:35 PM
#8
richard_tung avatar

richard_tung

New Zenner

Join Date:
May 2009
Location:
Toronto, Canada
Posts:
70
Plugin Contributions:
0

Re: Product listing - swaping elements around

Hi Nick...
I've tried putting into my template/theme##/css/stylesheet.css
but its still the same...
is there somewhere its over-ridding this?

31 Jul 2009, 6:41 PM
#9
richard_tung avatar

richard_tung

New Zenner

Join Date:
May 2009
Location:
Toronto, Canada
Posts:
70
Plugin Contributions:
0

Re: Product listing - swaping elements around

can I remove the call for price image out and just leave the call for price link (which goes to contact us form)?

31 Jul 2009, 8:16 PM
#10
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Product listing - swaping elements around

You guessed it. Yes there is a definition for #productDescription in stylesheet_main.css.

The rule you want to place at the bottom of that file is:

#productDescription{margin-left:285px;}

In theory you need to tidy up all these duplicate rules as well! I HATE nagging!

31 Jul 2009, 8:22 PM
#11
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Product listing - swaping elements around

Regarding the call for price image - I don't see why not.

You may want to get rid of the border on the addCart box.

#cartAdd{border:none;}