Results 1 to 9 of 9
  1. #1
    Join Date
    Sep 2006
    Posts
    28
    Plugin Contributions
    0

    help question 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

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Manufacture link

    Code:
    <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
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2006
    Posts
    28
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Sep 2006
    Posts
    28
    Plugin Contributions
    0

    Default Re: Manufacture link

    This is what I have at the moment:
    Code:
      
    <?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>';
       }   
       ?>

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default 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?
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Sep 2006
    Posts
    28
    Plugin Contributions
    0

    Default Re: Manufacture link

    nice idea, but I'm using that link.

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Manufacture link

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

  8. #8
    Join Date
    Sep 2006
    Posts
    28
    Plugin Contributions
    0

    Default 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?

  9. #9
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default 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
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. manufacture commisionist
    By serial3dart in forum General Questions
    Replies: 1
    Last Post: 7 Feb 2010, 02:43 PM
  2. Replies: 3
    Last Post: 11 May 2009, 03:54 AM
  3. Manufacture Group Pricing?Manufacture Group Pricing or a Manufacture Gift Certificate
    By Gamer in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 19 Nov 2007, 03:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR