Zen Cart Logo

Manufacture link

Locked

Views: 1,592

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
14 Dec 2006, 5:08 PM
#1
jezjones29 avatar

jezjones29

New Zenner

Join Date:
Sep 2006
Posts:
22
Plugin Contributions:
0

Manufacture link

For the site I'm working on I needed each designer (manufacturer) to have their own page so I created a hidden category and placed each designer in there.
So now my tree looks like this:

Other (hidden/not active) > Designers (second level/active but not shown in tree) > Designer > Designers items.

Now I can copy products to each category and keep things tidy.

Anyway, my question is this:

How can I make the manufacture link (next to the image in the product description) a link to their category page (blue level above)?

e.g. /index.php?main_page=index&cPath=4_5

I hope this makes sence :sleepy:

15 Dec 2006, 3:12 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Manufacture link

<a href="http://www.your_domain.com/index.php?main_page=index&cPath=4_5">Your_desc</a>
```This code will create the link and a name for it, place it where you want it to appear
15 Dec 2006, 10:32 AM
#3
jezjones29 avatar

jezjones29

New Zenner

Join Date:
Sep 2006
Posts:
22
Plugin Contributions:
0

Re: Manufacture link

Thank you Kobra for your reply, but now I need to make that link dynamic by calling the database.

At the moment it works via simple IF statements, but this isn't the solution I need in the long run.

15 Dec 2006, 10:35 AM
#4
jezjones29 avatar

jezjones29

New Zenner

Join Date:
Sep 2006
Posts:
22
Plugin Contributions:
0

Re: Manufacture link

This is what I have at the moment:

  
<?php
if($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)){

if ($manufacturers_name == 'XXXX'){$manNo = '_5';}
  elseif ($manufacturers_name == 'YYYYY'){$manNo = '_6';}
 
   $manufacturers_name = '<a href="index.php?main_page=index&cPath=4'.$manNo.'">'.$manufacturers_name.'</a>';
   echo '<li>'.TEXT_PRODUCT_MANUFACTURER .''. $manufacturers_name . '</li>';
   }   
   ?>
15 Dec 2006, 1:42 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Manufacture link

You appear to be using the "manufacturers" native support.

In the product page for this "designer" at the bottom their is a link to manufacturers url or similar.

Place the internal link to their page in this box. Will this not produce the desired result?

15 Dec 2006, 2:07 PM
#6
jezjones29 avatar

jezjones29

New Zenner

Join Date:
Sep 2006
Posts:
22
Plugin Contributions:
0

Re: Manufacture link

nice idea, but I'm using that link.

15 Dec 2006, 2:33 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Manufacture link

Well you can clone all the entries in the files for it with your name and add a DB record.

15 Dec 2006, 3:11 PM
#8
jezjones29 avatar

jezjones29

New Zenner

Join Date:
Sep 2006
Posts:
22
Plugin Contributions:
0

Re: Manufacture link

I guess what I need is a script that will take the products_id and tell me the relevent manufacturer's catagory page.

What would the code for this be?

15 Dec 2006, 5:46 PM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Manufacture link

nice idea, but I'm using that link.
This is the code that does this but you say that you are using it???? So I suggested that you you clone that same code and assign it a different name