Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Feb 2005
    Posts
    283
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default 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 maybe not displaying the description in product listing and only displaying it on the product info page is a solution for you?

  3. #3
    Join Date
    Feb 2005
    Posts
    283
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    May 2009
    Location
    Toronto, Canada
    Posts
    70
    Plugin Contributions
    0

    Default 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....
    Last edited by Richard.Tung; 31 Jul 2009 at 05:27 PM.

  5. #5
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default 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 :
    Code:
    #productDescription{margin-left:104px;}
    And match the 104px to what it is exactly for your site.

  6. #6
    Join Date
    May 2009
    Location
    Toronto, Canada
    Posts
    70
    Plugin Contributions
    0

    Default 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???

  7. #7
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Product listing - swaping elements around

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

    Nick

  8. #8
    Join Date
    May 2009
    Location
    Toronto, Canada
    Posts
    70
    Plugin Contributions
    0

    Default 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?

  9. #9
    Join Date
    May 2009
    Location
    Toronto, Canada
    Posts
    70
    Plugin Contributions
    0

    Default 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)?

  10. #10
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default 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:
    Code:
    #productDescription{margin-left:285px;}
    In theory you need to tidy up all these duplicate rules as well! I HATE nagging!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 Changing the order of product listing elements (product_listing.php)
    By bottyz in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 17 Jun 2016, 05:19 PM
  2. How to Move certain Elements around and align on Product Pages
    By Horrific_ending in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 Dec 2011, 04:44 PM
  3. border around product listing
    By jackii_8 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Sep 2008, 04:41 PM
  4. Remove some elements from my product page and product listing page
    By jamesdavid in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Jun 2008, 01:21 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