X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   get manufacture in products.php (https://forum.x-cart.com/showthread.php?t=10007)

mffowler 08-26-2007 06:27 PM

Re: get manufacture in products.php
 
Thanks Carrie.

- Mike

OpheliaPayne 09-18-2007 09:23 AM

Re: get manufacture in products.php
 
I was unable to get Carrie's code to work in 4.1.8 as well.

zeta1600 11-19-2007 05:30 AM

Re: get manufacture in products.php
 
Quote:

Originally Posted by HWT
To get the manufacturer's name to hyperlink, simply use:

Code:

<a href="manufacturers.php/?manufacturerid={$products[product].manufacturerid}">{$products[product].manufacturer}</a>

instead of:

Code:

{$products[product].manufacturer}

where you would like it to show up in skin1/customer/main/products_t.tpl or skin1/customer/main/products.tpl


I pretty much got this to work, but not the link to the manufacturer. The link isn't resolving. I think because I have XC SEO installed. Can someone show me how to rewrite this? I tried:
<a href="{$products[product].manufacturerid}">{$products[product].manufacturer}</a> But it didn't work.

Also, any way to add the original price (Market price) on the detail page?

zeta1600 11-19-2007 07:30 PM

Re: get manufacture in products.php
 
Got an answer from XC SEO... the code should be without the / after php.

<a href="manufacturers.php?manufacturerid={$products[product].manufacturerid}">{$products[product].manufacturer}</a>

I got this mod to work on both search.php and the products.php. But for product.php (not products.php) I used this code:
<a href="manufacturers.php?manufacturerid={$product.m anufacturerid}">{$manufacturer.manufacturer}</a>

version 08-20-2008 03:21 AM

Re: get manufacture in products.php
 
Quote:

Originally Posted by pmstudios
Make a new function in func.php


Which func.php file are you referring to?

there are about 10 of them in 4.1.10

they all seem to be specific to modules.

dmic 01-30-2014 04:40 AM

Re: get manufacture in products.php
 
Quote:

Originally Posted by pmstudios
Ok, I just checked the method I use since I'm actually doing something similar - not with manufacturers but the idea is exactly same. Do away with everything else and try this...

Make a new function in func.php


Which func.php should this code be added to?

Thanks

Dave

cherie 01-30-2014 06:28 PM

Re: get manufacture in products.php
 
As of 4.1 func.php was broken into specific function files in /include/func, such as func.product.php


All times are GMT -8. The time now is 02:27 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.