![]() |
X-Cart 4.0.0 Showing Manufacturer on Product Page
Hello,
I was trying to figure this out, but couldn't seem to get the SQL right. ( I believe that is where my problem is). What would I have to do to display the product's manufacturer in the product's detailed page. I want to use the manufacturer's table in the database, but can't seem to get it to work. Any ideas? Thanks in advance for any comments / suggestions!! -mike |
This is the way I have done it:
Quote:
I hope this will help you a little bit |
Mike,
Please add your version number and server info to your forum signature. |
thomas,
very cool mod indeed. works perfect in 4.0.2. nice work! =D> |
does anyone have a link that shows this working...?
My problem is that I want to setup categories and sub categories (example --- bath & body [category], soaps [subcategory]. Then I want to add a product to this (or possibly more categories). Now the key thing is that when I create a new product I want to enter the manufacture (or select from a list of manufactures directly from the product page). I now want to give the customer the ability of viewing all the manufactures and when he selects one it shoud lists all the products categorized in categorises/subcategories. A customer should also be able to search for a manufactures and have all products listed. |
what version are you running?
manufacturers was incorporated into version 4 you can see the manufacturer listed on the product page on my site here: http://www.netmedicalsupply.com/store/catalog/BioStim-M7-Digital-TENS-Unit-p-22161.html live site, so no test orders please notice the manufacturer listing on the lower left, and the ability to search for mfr in the advanced search page. ver 4 also allow unlimited categories/subcategories hth, mike |
Manufacturer on Invoice
Great, I got manufacturer on product page, now how do I get it to show on the Invoice.
I'm using xcart for a bookstore and client wants author (manufacturer) to show under each product title. http://www.books-newzealand.co.nz (live site, no test orders please) version 4.04 |
Modified TPL code for my purposes.
Advantages, only show Manufacturer if the manufacturer exists for that product. I also turned off the absolute link to the manufacturers.php and went with the relative link. Code:
{if $manufacturer ne ""} |
Based on this, does anyone know how to get the manufacturer's description to display on product.tpl ?
I tried Code:
{$manufacturer.descr|escape} but that doesn't work - it just shows the first character of the manufacturer's name and nothing of the description. :oops: |
For manufacturer name, not description of:
All I did was put the following code in the customer/main/product.tpl: Code:
<TR><TD align="left" valign="top">{$lng.lbl_manufacturer}:</TD> - Mike |
I did get this to work in the product.tpl but I could not get it to work in products.tpl.
Is there a difference or a change needed? Thanks in advance. Hmm, the version listed below is wrong, I'm 0n 4.0.13 |
pls post example link
none of the live site links above show the functionality of this mod.
can someone pls post? |
Yes I would like to know if the manufacturers logo can be placed in the product.tpl as well as the products.tpl file?
|
Isn't that in Modules/Manufacturers/customer_manufacturer_products.tpl?
Something like: Code:
{if $manufacturer.url ne ''}{/if}[img]{$xcart_web_dir}/mlogo.php?manufacturerid={$manufacturer.manufacturerid}[/img]{if $manufacturer.url ne ''}{/if} |
Quote:
http://www.vortex-online.com/store/product.php?productid=42&cat=0&bestseller |
Wow that site looks good, but I am still having problems getting the manufacturers logo to show for me.
I am just getting the standard Xcart image holder. Could someone please post the correct code to display the manufacturers logo at the top of the products template? Thnaks |
Ok, this is how I did it and it works like a charm in 4.0.13. The following code first checks to see if a manufacturers image is available. If so, the image is shown as a link. I also created a language file called {$lng.lbl_click_more_manuf_products} which basically say "Click above image to see all toys under this manufacturer".
In the product.tpl add this code wherever you want the image to appear. If you cut and paste this code as is and insert it just after the "</TR></TABLE></TD>" code at around row 142, the image will appear to the right hand side in a column of it's own. Code:
{if $manufacturer ne ""} In product.php at the following code just after: $main = "product"; $smarty->assign("main",$main); (you should find it near row 50) Code:
$thisManufactorer = $product_info["manufacturerid"]; This is a great mod so I hope it works for you as well as it works for me. |
Does anyone know how to get the manufacturer's description to display on product.tpl ? {$manufacturer.descr} isn't working. Thanks in advance for any replies! -christa
|
I figured it out...
In product.php, under this code provided above: ($smarty->assign("manufacturer", $manufacturer[0]["manufacturer"]);) Add: $smarty->assign("thedescr", $manufacturer[0]["descr"]); Then in product.tpl, add: {$thedescr} |
Re: X-Cart 4.0.0 Showing Manufacturer on Product Page
This worked for me as well. I have 4.1.10
Quote:
|
Re: X-Cart 4.0.0 Showing Manufacturer on Product Page
do you know how to show the manufacturer name on the search results page?
|
Re: X-Cart 4.0.0 Showing Manufacturer on Product Page
this is weird... I added that code snippet to the product.tpl file to see how it works once and then I deleted it... But it still shows the "Producer:... blah blah blah" ever since. I can't get rid of it!
Is it stored somewhere? |
Re: X-Cart 4.0.0 Showing Manufacturer on Product Page
Quote:
|
Re: X-Cart 4.0.0 Showing Manufacturer on Product Page
Quote:
Hi adpboss I want to display the manufacturer's name/logo which are currently on that category.I have approximately 50 manufactures in my store.Each manufacturer links with different different category.Suppose X category links with a,b,c,d manufacturer's product among 50 manufacturers.I want to display only a,b,c,d manufacturer's name/logo when I click on X category.Is it possible? Can you help me? Thanks to all. |
Re: X-Cart 4.0.0 Showing Manufacturer on Product Page
adpboss any soltion to solve this issue?
Thanks. |
All times are GMT -8. The time now is 06:00 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.