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 / Links to Other Products of Category on Product Page

Links to Other Products of Category on Product Page

2 Mar 2011, 11:49 PM
#1
robertwhitis avatar

robertwhitis

New Zenner

Join Date:
Mar 2011
Posts:
42
Plugin Contributions:
0

Post #1 by robertwhitis

Hello,

I am new to Zen Cart and have done a lot of customization but ran into something I wanted to implement that I could not figure out.

I am using v1.3.9h.

On the individual product page, I want there to be a list of links to the other products of the same category.

I want to add this list of links within the tpl_product_info_display.php file, within the Category Icon block.

I have created a div within the Category Icon block, and inserted some static text ("list of links here"), which displayed properly.

I just need to replace this static text with the actual list of links.

Can anyone give me a push in the right direction or tell me the solution to implementing this?

Thank you in advance!

:lamo:

3 Mar 2011, 12:24 AM
#2
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Post #2 by get_em_fast

Are you adding these links to be used for cross-selling? If so, you would be MUCH better off installing the Multi Cross Sell mod, which give you links, images, and even a Buy Now feature. And you can EASILY change any product(s) that's showing on the pages at any given time in the Admin, without all that 'hard coding'.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

3 Mar 2011, 12:31 AM
#3
robertwhitis avatar

robertwhitis

New Zenner

Join Date:
Mar 2011
Posts:
42
Plugin Contributions:
0

Post #3 by robertwhitis

That sounds like a good idea, if it's possible to turn off all those other features.

All I want is a text link to the other products within the given product's category.

I will investigate that module, thank you for telling me about it.

I'll reply in a little while with whether or not this module is what I need to solve this issue.

Thank you very much!

3 Mar 2011, 12:36 AM
#4
robertwhitis avatar

robertwhitis

New Zenner

Join Date:
Mar 2011
Posts:
42
Plugin Contributions:
0

Post #4 by robertwhitis

Well, it says that you cannot customize whether the image is shown or not, which pretty much makes that module a no-go.

Perhaps it would be possible to go into the code of the module and remove the part that displays the image?

I just think there's an easier solution, the hard coding may be difficult to figure out, but in the end I think it would provide the best solution.

In any case, thanks still for that link, if I can't find a different solution I will probably wind up giving that module a try and attempt to modify it's code to remove the image display.

3 Mar 2011, 3:02 AM
#5
robertwhitis avatar

robertwhitis

New Zenner

Join Date:
Mar 2011
Posts:
42
Plugin Contributions:
0

Post #5 by robertwhitis

To clarify things a bit, I'm not using this for cross selling really.

I have products which have various scents, and an image of each product based on scent. Therefore an example product would have 5 scents, and 5 images of the product, each image showing the particular label for the given scent.

Also, based on the scent, the product has different ingredients which must be listed such that a customer doesn't buy something they have an allergy to.

Because of this, I have entered each version of the product as a separate product, within a category.

Therefore, I want the visitor to be able to see a list of textual links on the left hand side under the Category Icon block which displays the name of the other products within the category.

I hope this helps people understand what I am asking a little more clearly.

Thanks in advance, again!

3 Mar 2011, 6:36 PM
#6
robertwhitis avatar

robertwhitis

New Zenner

Join Date:
Mar 2011
Posts:
42
Plugin Contributions:
0

Post #6 by robertwhitis

The cut and dry question is, what is the code that will display just the textual product links of every product within a category.

On any given category page, links to each product of that category (along with image, price, whatever else you select) are displayed.

I am trying to figure out the code that will display just the text links of every product within the active category, so that I can plug it in under the Category Icon block to provide a nice subnavigation within product pages.

This has got to be doable, I just have not figured out how yet.

If anyone cares to help, I think this would be code that others could benefit from as well.

Any help would be greatly appreciated!

3 Mar 2011, 7:40 PM
#7
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Post #7 by rbarbour

I agree with Get Em Fast

There is only 1 line in the multi_xsell_products.php file to remove the image and you can disable the Model Number/Add to Cart (more info..) in admin leaving only the name.

It would also be idea for linking a new product (scent) to an existing 1 without having to add it manually.

Just my opinion!

3 Mar 2011, 7:55 PM
#8
robertwhitis avatar

robertwhitis

New Zenner

Join Date:
Mar 2011
Posts:
42
Plugin Contributions:
0

Post #8 by robertwhitis

Ah, didn't realize there was only one line of code to remove from the cross selling mod to remove the image display.

Well, I'll give it a whirl and see if it can do the job.

Thanks for clarifying things for me!

3 Mar 2011, 10:26 PM
#9
robertwhitis avatar

robertwhitis

New Zenner

Join Date:
Mar 2011
Posts:
42
Plugin Contributions:
0

Post #9 by robertwhitis

Thank you Get Em Fast first for suggesting that mod, and also, thank you rbarbour for clarifying the mod.

I was able to remove the image display, customize the style of the link text, and it is working perfectly to do exactly what I wanted.

I was able to insert the code that calls for the display of the mod in the Category Icon block, and now have on every product page, a list of every other product within the given category under the category title.

I hope other people who are looking for this functionality find this thread, you've truly solved an issue for me that I could not find a 'hard code' or 'admin customization' solution for, and I am quite appreciative.

:clap:

3 Mar 2011, 11:28 PM
#10
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Post #10 by rbarbour

Maybe a link to your site will help to see it in action!

3 Mar 2011, 11:33 PM
#11
robertwhitis avatar

robertwhitis

New Zenner

Join Date:
Mar 2011
Posts:
42
Plugin Contributions:
0

Post #11 by robertwhitis

That is very true!

Currently, I'm building the site on a test server.

Once the site goes live in a couple of days I will be sure to post a link to the finished product.

The website is really jam up, and I've done some fairly heavy customization.

The effect I'm looking for is, "You made that, from Zen Cart?!"

:P

We'll see how it all turns out, but for the time being, I'm very happy with Zen Cart.

I'm an osCommerce junkie who's just getting acquainted with Zen Cart, so I'm on a quest to become a 'Zen Master' haha!

Thanks again for your assistance, it was invaluable!

4 Mar 2011, 12:53 AM
#12
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Post #12 by get_em_fast

Glad to hear you found you solution AND used the mod so it will make things easy for you to update/edit later on.

Can't wait to see.............

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

11 Mar 2011, 4:46 PM
#13
robertwhitis avatar

robertwhitis

New Zenner

Join Date:
Mar 2011
Posts:
42
Plugin Contributions:
0

Post #13 by robertwhitis

Well the website is live, it's not in a 100% finished state, but it's operational. In the upcoming days there are going to be further customizations done and more content added, but for the time being, it is up, running, and getting regular orders!

http://www.nourishsavannah.com

Let me know what you think!

12 Mar 2011, 7:35 AM
#14
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Post #14 by rbarbour

Site looks very good, clean, professional user friendly and good job with the consistency in layout. :bigups:

12 Mar 2011, 7:50 AM
#15
robertwhitis avatar

robertwhitis

New Zenner

Join Date:
Mar 2011
Posts:
42
Plugin Contributions:
0

Post #15 by robertwhitis

Thanks rbarbour, I really put a lot of time and effort into this site for my client, and being my first Zen Cart site, I wanted to go above and beyond. Your comments reinforce my thoughts that I did just that!

It took quite a few modules and tweaking to create the finished result from the proof my graphic designer created, but in the end the finished site is a spitting image of he proof, so I'm happy.

Thanks again, good to hear positive feedback from fellow Zenners!

:wacko::wacko::wacko:

12 Mar 2011, 11:04 AM
#16
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Post #16 by get_em_fast

rbarbour:

Site looks very good, clean, professional user friendly and good job with the consistency in layout. :bigups:

Ditto. Excellent job.:yes:

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

12 Mar 2011, 6:06 PM
#17
robertwhitis avatar

robertwhitis

New Zenner

Join Date:
Mar 2011
Posts:
42
Plugin Contributions:
0

Post #17 by robertwhitis

Thanks Get Em Fast! I'm really happy that this site turned out as good as it did.

:shocking::P