Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Display Manufacturer's Other Product Link

Display Manufacturer's Other Product Link

Locked

Views: 1,296

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
12 Nov 2007, 10:14 PM
#1
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Display Manufacturer's Other Product Link

I am trying to display the manufacturer's other product link on the product page instead of inside the Manufacturer sidebox.

This is the code I am using:

<?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $_GET['manufacturers_id']) . '">' . zen_image(DIR_WS_TEMPLATE_IMAGES . BUTTON_IMAGE_OTHER_MANUFACTURER, BUTTON_OTHER_MANUFACTURER_ALT) .'</a>'; ?>

Unfortunately it doesn't work, it generates the url without the manufacturer id.

Help please!

13 Nov 2007, 8:00 AM
#2
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,566
Plugin Contributions:
58

Re: Display Manufacturer's Other Product Link

<?php
 
$manufacturers_id = zen_get_products_manufacturers_name($_GET[‘product_id’]);

zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers_id . '">' . zen_image(DIR_WS_TEMPLATE_IMAGES . BUTTON_IMAGE_OTHER_MANUFACTURER, BUTTON_OTHER_MANUFACTURER_ALT) . '</a>';
 
?>
13 Nov 2007, 7:22 PM
#3
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,566
Plugin Contributions:
58

Re: Display Manufacturer's Other Product Link

```php

<?php $manufacturers_id = zen_get_products_manufacturers_name($_GET['product_id']); echo '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers_id . '">' . zen_image(DIR_WS_TEMPLATE_IMAGES . BUTTON_IMAGE_OTHER_MANUFACTURER, BUTTON_OTHER_MANUFACTURER_ALT) . '</a>'; ?>
13 Nov 2007, 8:54 PM
#4
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Display Manufacturer's Other Product Link

numinix:

```php

<?php $manufacturers_id = zen_get_products_manufacturers_name($_GET['product_id']); echo '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers_id . '">' . zen_image(DIR_WS_TEMPLATE_IMAGES . BUTTON_IMAGE_OTHER_MANUFACTURER, BUTTON_OTHER_MANUFACTURER_ALT) . '</a>'; ?>

Unfortunately, the above code does not work. It just kills the product display page.

Thanks!
13 Nov 2007, 8:55 PM
#5
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,566
Plugin Contributions:
58

Re: Display Manufacturer's Other Product Link

Use your same code as you were using originally, but use my line above to generate the manufacturers_id.

13 Nov 2007, 9:22 PM
#6
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Display Manufacturer's Other Product Link

numinix:

Use your same code as you were using originally, but use my line above to generate the manufacturers_id.

It did not work, just killed the product_info_display page

I tried this as well```php

<?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturer_info_sidebox->fields['manufacturers_id']) . '">' . BOX_MANUFACTURER_INFO_OTHER_PRODUCTS . '</a>' . "\n"; ?>

which did not kill the page but the link generated does not have the manufacturer id attached.

Thanks!
14 Nov 2007, 5:40 AM
#7
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,566
Plugin Contributions:
58

Re: Display Manufacturer's Other Product Link

email me the page you are working on that had the original code taken directly from the manufacturer's sidebox. This is the code that had the link with manufacturer_id= <BLANK>