View Full Version : Manufacturer into Detail Page
webbrowser
06-30-2007, 08:35 PM
I was wondering how do I include the manufacturers name into the detail page. I can drop in brand name and get 1,2,3 etc from the products table. How do I adjust the code in global.php to pickup the manufacturers name from the brands table. I have attached a screen shot to show what I am looking for. The sunshop demo has the manufacturers name in all the descriptions. I have added hundreds of items in our cart and didnt do the same.
Pooch
07-06-2007, 10:54 AM
This is how I've added the Manufacturer's name into the product detail page:
Goto the product_detail.html template and find:
<!--// End Hide Image //-->
<div class="IE_left_float_5_px">
<div class="product_title">$product[title]</div>
<div class="product_sku">$lang[sku]: $product[num]</div>
Then add:
<!--// Start Manufacturer //-->
<span class="reg_txt">Manufacturer: <span class="reg_txt">$product[manufacturer_name]</span>
<!--// End Manufacturer //-->
TWT-Chris
07-06-2007, 03:21 PM
Yup, that should do it.
webbrowser
07-09-2007, 08:25 AM
Thanks guys for you help its very much appreciated. I am going to do that now.
I had another Idea as well afterwards. Instead of text for the manufacturers. How diifficult is it to bring in a manufacturer logo?
jmason
07-30-2008, 01:28 PM
I really need to see some manufacturer image or logo somehow at least on the products page... if not also on the Manufacturer's page. We have lots of tools that are made by different manufacturers and so far three people have bought the wrong tool because the manufacturer logo wasn't there to help them distinguish between one and another brand!
Pooch
07-30-2008, 02:19 PM
I really need to see some manufacturer image or logo somehow at least on the products page... if not also on the Manufacturer's page. We have lots of tools that are made by different manufacturers and so far three people have bought the wrong tool because the manufacturer logo wasn't there to help them distinguish between one and another brand!
Wouldn't my fix above suffice? Do you NEED a logo image?? If so, that'll require a database change and I doubt this is on TWTs to-do list anytime soon, if ever. You may need to hire out for that.
jmason
07-31-2008, 09:16 AM
How about I tell you that I just did it. It requires you to run two (2) SQL statement into mysql to update one (1) table. It also requires a few mods to global.php, the templates: list_products.html, and products_detail.html, and then a very big addition to adminindex.php. That's it. No other changes.
I love how people on this forum have a tendency to assume things are difficult. My question above was a simple one... if anyone had done this previously it would save time. But, since your response was a little more direct than I anticipated, I'll assume that nobody has done this. So I did it myself and graciously would like to post it to share it with everyone.
Of course I can't do that. It requires me to post too much code... and TWT would have my head on a stick. So, feel free to email me and I'll send you the instructions and code snippets to make it work. Also, if you want to see it work, goto our site. We finally upgraded from Sunshop version "it's been so long and I did so many mods that I don't even rememeber from 2002 or 2003" to Sunshop v. 4.1.03. That leap was so big I can't even update my items into the new cart... its back to hand-type it all in 1 by 1. So if you can deal with the fact that there is 5 items currently and the categories don't necessarily make sense and all that, feel free to checkout www.masondrywall.com (http://www.masondrywall.com). Specifically, see the manufacturer's pages and also check out some of the items. (particularly texmastertools items... they have the manufacturer's logo on the product detail page.
And like I said, if you want to ask nicely, I'll gladly share this mod with anyone. Just email me at jmason - at - masondrywall.com. I just can't post it here. And I HOPE that at least one person will find this useful as I spent my own time working on it.
Kindest Regards,
Pooch
07-31-2008, 10:18 AM
If you decide to post it, I'm sure TWT wouldn't have an issue with it. The files that you have access to are open source code, unlike the libsecure.php files, and I'm sure the modifications you made to those files are within your license agreement.:D
jmason
08-04-2008, 09:12 AM
Well, I disagree. According to the Sticky Note in the Mods forum, we aren't allowed to post any sunshop code that is TWT's... afterall, people who aren't sunshop users can still search these forums. So, if someone from TWT says it is ok to post this mod, then you got it! :)
Meanwhile I have a PDF documenting every step along the way to anyone who is interested.
NinjaTech
08-06-2008, 02:42 PM
There is also my Improved Manufacturers mod in the mod section.
Also noticed they added the value manufacturer_name for product details sometime I think since 4.1.0, I don't think it set in the first version I had and that they had actually added this value as a query myself. Then when working with 4.1.4 noticed it was already defined.
Powered by vBulletin® Version 4.1.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.