Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / description insted of "more info" & space between products images

description insted of "more info" & space between products images

Locked
This thread is locked. New replies are disabled.
27 Sep 2006, 11:33 AM
#1
shmints avatar

shmints

New Zenner

Join Date:
Jun 2005
Posts:
37
Plugin Contributions:
0

Post #1 by shmints

hello,
I have 2 questions:

link:
https://www.scrap2gether.com

  1. In my New & All products listings I have the products image and on its right there are few detaikls with "more info".
    Can I display the products description instead of the "more info" thing?

  2. On a seperate category listing (and manufacturer listing) - there is no space between products images. How can that be fixed?

I appreciate any help!

27 Sep 2006, 4:34 PM
#2
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Post #2 by sketchy

  1. I'm not to sure if you would have to hack files to achieve that... I didn't see any switch in Admin, but I could also be blind. I'll leave this for someone else.

  2. You can add a Selector into the stylesheet that will fix that up;

.productListing-data {
             padding: 0.5em;
             border-bottom: 1px solid #cacaca;
             }

That will space out the listings and add a separator line. If you prefer without the line, then omit the border-bottom declaration.

27 Sep 2006, 5:16 PM
#3
virtualahmad avatar

virtualahmad

Zen Follower

Join Date:
Jan 2006
Location:
Toronto, Ontario, Canada
Posts:
179
Plugin Contributions:
0

Post #3 by virtualahmad

shmints:

  1. In my New & All products listings I have the products image and on its right there are few detaikls with "more info".
    Can I display the products description instead of the "more info" thing?

What version of ZC are you running ? One example of a default 1.3.5 all listing:
http://www.ave nv iew.com/avenview/index.php?main_page=products_all (take out the spaces between www and .com)

The files you need to edit are:
/includes/templates/template_default/templates/tpl_modules_products_new
/includes/templates/template_default/templates/tpl_modules_products_all

I strongly suggest you copy these files to the override folder:
/includes/templates/YOUR_TEMPLATE/templates/

In the files (they are basically the same), look for where you have the price

Add the following where you want the description to appear. Note that the 350 controls the number of characters to display before truncating and putting a "more":

      if (PRODUCT_ALL_LIST_DESCRIPTION != '0') {
        $disp_text = zen_get_products_description($products_all->fields['products_id']);
        $disp_text = zen_clean_html($disp_text);

        $display_products_description = stripslashes(zen_trunc_string($disp_text, 350, '<a href="' . zen_href_link(zen_get_info_page($products_all->fields['products_id']), 'products_id=' . $products_all->fields['products_id']) . '"> ' . MORE_INFO_TEXT . '</a>'));
      } else {
        $display_products_description = '';
      }

I'm not sure where the "more" was created,

############# :blink: STOPPED TO THINK :unsure: ###############

ignore everything above this line.

Go to your admin, navigate to the product (any one for now), edit it, and add some text to the description box.

The problem is you dont have any descriptions.

However, that said, it will likely display 150 characters and the "more...". If you want to increase that, then you can follow the instructions above and .... well, it will make sense :)

That all said, if you really want to hack the page, you can go all the way... take a look at:
http://www.etc h art.ca/index.php?main_page=products_all (remove the spaces in URL)

Ahmad Rahman
TRUST IT | web site design and development
mobile: 416.828.0224 | email: [email protected]
www.trustit.ca

For IT solutions how you want IT, when you want IT, TRUST IT.

27 Sep 2006, 6:36 PM
#4
shmints avatar

shmints

New Zenner

Join Date:
Jun 2005
Posts:
37
Plugin Contributions:
0

Post #4 by shmints

sketchy - thank you! you solced problem #2

virtualahmad - I think I wasn't clear enough with my qustion - I apologize.
I meant to ask how to move the description to be shown beside the image and not under the image (some products have descriptions which appears below the image).

problem #1 still looking for an answer.... LOL
any help is welcome :-)

27 Sep 2006, 6:46 PM
#5
virtualahmad avatar

virtualahmad

Zen Follower

Join Date:
Jan 2006
Location:
Toronto, Ontario, Canada
Posts:
179
Plugin Contributions:
0

Post #5 by virtualahmad

shmints:

...some products have descriptions which appears below the image).

Can you give an example ? Also, can you post the code you have in the all product page (as per the path i gave before above).

Ahmad Rahman
TRUST IT | web site design and development
mobile: 416.828.0224 | email: [email protected]
www.trustit.ca

For IT solutions how you want IT, when you want IT, TRUST IT.

27 Sep 2006, 7:29 PM
#6
shmints avatar

shmints

New Zenner

Join Date:
Jun 2005
Posts:
37
Plugin Contributions:
0

Post #6 by shmints

Thanks to Ahmad the problem has been solved :-)

Again - I really appreciate the help!!

23 May 2009, 9:10 AM
#7
akaraman avatar

akaraman

New Zenner

Join Date:
Apr 2009
Location:
Eskisehir, Turkey
Posts:
22
Plugin Contributions:
0

Post #7 by akaraman

I have a similar problem. I set Product Listing>>Display Product Description to zero. Product description is now disappeared (this is what I wanted). Besides this, I want "more info" link for the product description, but it doesn't show up. How can I make it appear? Is there any admin setting for this?
my store address is: https://www.camtasarim.com

A beginner