Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

get manufacture in products.php

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #51  
Old 08-26-2007, 06:27 PM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default Re: get manufacture in products.php

Thanks Carrie.

- Mike
__________________
4.1.9
Reply With Quote
  #52  
Old 09-18-2007, 09:23 AM
 
OpheliaPayne OpheliaPayne is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 130
 

Default Re: get manufacture in products.php

I was unable to get Carrie's code to work in 4.1.8 as well.
__________________
xCart 4.6.1
Reply With Quote
  #53  
Old 11-19-2007, 05:30 AM
 
zeta1600 zeta1600 is offline
 

Advanced Member
  
Join Date: Mar 2006
Posts: 81
 

Default 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?
__________________
Thanks.

X-Cart 4.1.9 Gold upgraded to 4.1.10
Considering 4.2

Local Computer:
Mac OS 10.5.6
Brower Firefox 3.0.5

Server:
OS Linux
Apache 2.0.63
PHP 5.2.5
MySQL 5.0.51a-community
Reply With Quote
  #54  
Old 11-19-2007, 07:30 PM
 
zeta1600 zeta1600 is offline
 

Advanced Member
  
Join Date: Mar 2006
Posts: 81
 

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

X-Cart 4.1.9 Gold upgraded to 4.1.10
Considering 4.2

Local Computer:
Mac OS 10.5.6
Brower Firefox 3.0.5

Server:
OS Linux
Apache 2.0.63
PHP 5.2.5
MySQL 5.0.51a-community
Reply With Quote
  #55  
Old 08-20-2008, 03:21 AM
  version's Avatar 
version version is offline
 

Member
  
Join Date: Aug 2008
Posts: 23
 

Default 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.
__________________
SouqBazaar
Reply With Quote
  #56  
Old 01-30-2014, 04:40 AM
 
dmic dmic is offline
 

Advanced Member
  
Join Date: Nov 2005
Posts: 63
 

Default 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
Reply With Quote
  #57  
Old 01-30-2014, 06:28 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default 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
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:25 AM.

   

 
X-Cart forums © 2001-2020