| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Display manufacturer logo in product.tpl | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Hello ...
Is it possible to display the manufacturers logo within the product details page (product.tpl) for the selected product. Thanks & Regards Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#2
|
|||||||
|
|||||||
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Thanks ...
I got around it .. but required a little tweaking for it to work in version 4.1.0: Added the following code within product.php: Quote:
And then added the following within product.tpl Quote:
Regards Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() can this be done easily in 4.1.10 ?
Is there a nice free module or some additional core function available?
__________________
![]() |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() Quote:
__________________
Regards, Piotr Markushin X-Cart PDF Catalog Generator NEW Professional X-Cart Skins Store (7 new skins added in August 2008!) ahedOffice.com - Web 2.0 Online Groupware |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() Do you think it's not working for me because of the typo ?
$thisManufactorer <- $thisManufacturer ?? how are we supposed to use code with variable variables?
__________________
![]() |
|||||||||
#7
|
|||||||||
|
|||||||||
![]() Quote:
There is the same variable name in SQL query. But table name is case sensitive. So right php code is PHP Code:
tpl code to show manufacturer logo Code:
__________________
Regards, Piotr Markushin X-Cart PDF Catalog Generator NEW Professional X-Cart Skins Store (7 new skins added in August 2008!) ahedOffice.com - Web 2.0 Online Groupware |
|||||||||
#8
|
|||||||||
|
|||||||||
![]() couldn't someone add a function to the core of X-Cart like:
get_manufacturers_image(); these functions are pretty standard in most free systems - eg wordpress, which is so easy to customise compared to X-Cart why are these convenient functions noticably absent from x-cart? also the manufacturers module is not really worthy of the term module is it? shouldn't there be a few more options like: • show manufacturers logo on product pages √ • show next / previous product navigation by same manufacturer √ • show related manufacturers √ (if part of same parent company) • show plain word link below logo √ etc... Where are these options? - why aren't they standard?
__________________
![]() |
|||||||||
#9
|
|||||||||
|
|||||||||
![]() I don't know much php but this looks like relevant code?
$manufacturer['image_path'] = func_get_image_url($manufacturerid, "M", $manufacturer['image_path']); So can anyone tell me how to get the url to the manufacturer for a given product? I've got the logo displaying - but i want it to be an active link (why wouldn't I????) I just need to get the $manufacturerid variable to work (this example below is for a plain text link - not the logo version / but easily transferable) HTML Code:
what am i doing wrong here? Thanks
__________________
![]() |
|||||||||
#10
|
|||||||||
|
|||||||||
![]() The code below shows manufacturer logo as active link. If there is no logo, it shows manufacturer name.
Modified PHP: PHP Code:
Code:
__________________
Regards, Piotr Markushin X-Cart PDF Catalog Generator NEW Professional X-Cart Skins Store (7 new skins added in August 2008!) ahedOffice.com - Web 2.0 Online Groupware |
|||||||||
|
|||
X-Cart forums © 2001-2020
|