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 / all products on product listing to display 'more details...' link

all products on product listing to display 'more details...' link

Started by sushigal on 28 May 2010, 9:16 AM · Views: 3,584

Results 1 to 12 of 12
28 May 2010, 9:16 AM
#1
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #1 by sushigal

Hi, as you can see here;

http://www.thegreatgiftshop.co.uk/zencart/index.php?main_page=index&cPath=cPath=64_66

I have some products with add to cart buttons and others without as they have attributes, the ones without the buy buttons have the more details link displayed, Badically I'd like the products with buy buttons to also display this 'more details...' link. Does anyone know how I can put this in as I really can't figure it out! :unsure:

Many thanks

28 May 2010, 9:28 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,761
Plugin Contributions:
0

Post #2 by Kim

Moderator's note - Your post has been edited to remove the zenID

Please do not post zenIDs in your URLs when showing example pages on your site - Leaving session IDs can cause problems.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

28 May 2010, 9:35 AM
#3
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #3 by sushigal

Ok sorry, didn't think about that. Do you know the answer to my query?

Many thanks

28 May 2010, 9:44 AM
#4
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #4 by sushigal

also, I need a quantities box under my 'add to cart' button on this same products listing page, how can I put this in? Thanks

28 May 2010, 9:52 AM
#5
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #5 by sushigal

Sorry, I forgot to do the above was in the admin and I've figured that out, it was admin/configuration/product listing/Display Product Add to Cart Button set to 2 to show the quantity box

I still need to add a 'more details link' to these products with the add to cart buttons as mentioned above.

Any ideas?

28 May 2010, 9:56 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #6 by ajeh

Products with Attributes will show the more info link ...

Products without Attributes will show the Add to Cart/input box ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 May 2010, 10:11 AM
#7
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #7 by sushigal

I know that, but I want products with the add to cart/input boxes to ALSO show the ...more info link as it doesnt make sense if some do and the others dont as all of my products you can click on to for for info and images so how can I make it so they all display it?

28 May 2010, 10:19 AM
#8
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #8 by sushigal

and the only way I can see how to do this at the moment is to show the product description and turn it back on to show however many number of characters on the prod listing page. Turning this back on then displays some of the description with a ...more info link, but I want just the ...more info link to display and not any of the description. I' really need some help here guys :wacko:

27 Mar 2011, 1:44 PM
#9
gangees avatar

gangees

New Zenner

Join Date:
Feb 2011
Posts:
16
Plugin Contributions:
0

Post #9 by gangees

Hmm, a year on and nobody knows an answer to this, perhaps it's too much trouble or impossible to do, and not being a coder I have no idea myself. Shame because I really don't like that "buy now" button, to have a button saying "Read more", "more info" "or more details" in the same position would be much better, less pushy. None of my products have attributes so I'm stuck with the buy now button and the only option is to turn it off, but that removes the price as well, which I want to keep. Does anyone else have this problem?

This is my first post on this forum, thank you for all the hundreds of tips and information that I've found here so far.

27 Mar 2011, 1:56 PM
#10
gangees avatar

gangees

New Zenner

Join Date:
Feb 2011
Posts:
16
Plugin Contributions:
0

Post #10 by gangees

I'm exploring another thread that I missed that may help..

27 Mar 2011, 2:10 PM
#11
gangees avatar

gangees

New Zenner

Join Date:
Feb 2011
Posts:
16
Plugin Contributions:
0

Post #11 by gangees

Found it, sorry if I posted in haste. The answer I wanted was posted by Ajeh back in 2007, here it is again if anyone needs:

In Admin/Product Listing;

Set this to anything but 0, the value is the sort order of the columns:
Quote:
Display Product Price/Add to Cart
Do you want to display the Product Price/Add to Cart

Set this to 0
Quote:
Display Product Add to Cart Button (0=off; 1=on; 2=on with Qty Box per Product)
Do you want to display the Add to Cart Button?

NOTE: Turn OFF Display Multiple Products Qty Box Status to use Option 2 on with Qty Box per Product
Now instead of Price and Add to Cart you will see the Price and ... more info

27 Mar 2011, 10:29 PM
#12
gangees avatar

gangees

New Zenner

Join Date:
Feb 2011
Posts:
16
Plugin Contributions:
0

Post #12 by gangees

One more last step if you want to change the "..more info" text to a button image of your choice, with the same functionality:

First go to ..includes/languages/YOUR TEMPLATE/english.php

find this line:

// more info in place of buy now

define('MORE_INFO_TEXT','...more info');

replace it with this line

// more info in place of buy now

define('MORE_INFO_TEXT','...more info');

define('MORE_INFO_BUTTON','<img src="includes/templates/YOUR_TEMPLATE/buttons/english/YOUR_MORE_INFO_BUTTON.gif" alt="more info">');

Then in ..includes/modules/YOUR_TEMPLATE/product_listing.php

find the first occurrence of > MORE_INFO_TEXT

and replace it with > MORE_INFO_BUTTON

Please note that this only changes the text to a button on the product listing page, which is perfect for me as I don't want it to appear anywhere else, but if you do you will need to change the code on the respective page.

Hope this helps somebody :smile: