Zen Cart Logo
Forums / General Questions / more info link on product listings

more info link on product listings

Locked

Views: 1,759

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
13 Nov 2009, 5:20 PM
#1
tecbrat avatar

tecbrat

Zen Follower

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

more info link on product listings

I asked part of this question on a existing thread, but decided It needed it's own thread...

I disabled the setting, "Display Multiple Products Qty Box Status and Set Button Location" in the Product Listing controls, and saw the "Buy Now" button, but I want to replace "Buy Now" with "View Product" and have it link to the product info page instead of adding it to the cart. Do I have to hard-code that change?

If there are attributes, I get "...more info" and I am sure I could replace that with a button, and I want that to happen regardless of if there are attributes.

How do I do this?

13 Nov 2009, 9:33 PM
#2
tecbrat avatar

tecbrat

Zen Follower

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

Re: more info link on product listings

I forgot to mention I am using the Product Layout Grid mod.

13 Nov 2009, 9:35 PM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: more info link on product listings

The 'more info' link when there are attributes requires the customer to go to the product info page where the attributes are selected. What would you have them do instead?

16 Nov 2009, 3:59 PM
#4
tecbrat avatar

tecbrat

Zen Follower

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

Re: more info link on product listings

stevesh:

The 'more info' link when there are attributes requires the customer to go to the product info page where the attributes are selected. What would you have them do instead?

Thanks for the reply.
This is the behavior I want. The problem is that it does not happen if there are no attributes.

I want the "more info..." behavior even when there is no attribute.

16 Nov 2009, 5:31 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: more info link on product listings

In the Configuration ... Product Listing ...

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

set to 0 and you have more info on the listing with or without attributes ...

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!

16 Nov 2009, 9:43 PM
#6
tecbrat avatar

tecbrat

Zen Follower

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

Re: more info link on product listings

Thanks Linda.
That's what I was looking for.

I'm sure I could figure this out, but is there a set way I should go about replacing the text "...more info" with an image? I thought about finding it in a language define and putting in the html for an IMG, but I don't know if it would cause problems in some other page.

16 Nov 2009, 11:53 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: more info link on product listings

Depends on what directory you put it in ...

If in the /images you can use:

define('MORE_INFO_TEXT', zen_image(DIR_WS_IMAGES . 'info_more.jpg'));

Just adjust as needed ... :smile:

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!

17 Nov 2009, 4:16 PM
#8
tecbrat avatar

tecbrat

Zen Follower

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

Re: more info link on product listings

Thanks,
That worked.

11 Apr 2010, 11:33 AM
#9
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: more info link on product listings

Ajeh:

Depends on what directory you put it in ...

If in the /images you can use:

define('MORE_INFO_TEXT', zen_image(DIR_WS_IMAGES . 'info_more.jpg'));

> 
> Just adjust as needed ... :smile:
Hi Ajay 
   Just wondering where you would place the code - I tried to place it in includes>modules>MYTEMPLATE>product_listing.php

I uploaded the image to /images

it didnt work
11 Apr 2010, 11:54 AM
#10
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: more info link on product listings

Hi ive managed to sort it -

heres what i done.

I amended the coding in includes>languages>english.php

on line 745 i found the text

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

and replaced it with

define('MORE_INFO_TEXT','<img src="images/More_Info.gif" alt="More Info" />');

I uploaded my more info button (More_Info.gif) to the /images file

For some reason I tried to add the english.php files to includes>languages>english>MYTEMPLATE however it would not pick up on the changes. Im not sure but i though i would have needed to add it here - for me i had to overright the file in its original place in order for it to work

thanks

11 Apr 2010, 12:34 PM
#11
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: more info link on product listings

ok - ive realized why the overwrite system wasnt working for me - i was trying to add the english.php to the wrong page.

Ive now added it to includes>languages>MYTEMPLATE>

and its fine

thanks

11 Apr 2010, 2:25 PM
#12
ajeh avatar

ajeh

Oba-san

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

Re: more info link on product listings

Thanks for the update that you have this working and for the information on how you got it to work for you ... this is always a great help to others to have the additional details ... :smile:

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!