If this is your first visit, check our documentation. To post, register or login.

Manufacturer Descriptions

Started by bravo00 on 26 Feb 2009, 1:23 PM · Views: 3,671

Results 1 to 12 of 12
26 Feb 2009, 1:23 PM
#1
bravo00 avatar

bravo00

New Zenner

Join Date:
Feb 2008
Posts:
5
Plugin Contributions:
0

Post #1 by bravo00

I created this for use on my website and thought i would share it. Working in conjuction with the manufacturers sidebox it allows you to set a manufacturer description to display in the results page.

this is my 1st ever attempt at using php/mysql and its pretty basic.

1 Mar 2009, 8:32 PM
#3
evenangelsdie avatar

evenangelsdie

New Zenner

Join Date:
Oct 2008
Posts:
31
Plugin Contributions:
0

Post #3 by evenangelsdie

thanks Bravo, but it doesn't seem to be working for me. I keep getting "Table does not exist" errors.
1146 Table '******_zc3.manufacturers_info' doesn't exist
in:
[SELECT * from manufacturers_info where manufacturers_id = '29']

I think it's a problem with the tpl_manufacturer_filter_info.php file. Any idea why it would keep saying this? I do have a manufacturers_info table!

3 Mar 2010, 2:25 AM
#4
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Post #4 by webskipper

1146 Table '******_zc3.manufacturers_info' doesn't exist
!

Do you have a table named with zc3? That's what it is looking for.

Cheers!
v2.2.1

25 Mar 2011, 12:13 AM
#5
cjsmiff avatar

cjsmiff

Zen Follower

Join Date:
Jul 2006
Location:
UK
Posts:
170
Plugin Contributions:
0

Post #5 by cjsmiff

Just wanted to say WoooooHooooo! Thank you for sharing this!

Kind regards
Claire :D

5 Jun 2011, 9:36 PM
#6
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Post #6 by willie_bee

I installed this and am trying to input this and get this error

"Founded in 1998, ZEX™ designs and manufactures truly superior bolt-on nitrous systems and related components. We integrate advanced engineering technology and superior customer service to provide you with the ideal nitrous solution for any application.

As a member of the COMP Performance Group™, ZEX™ is able to combine R&D efforts for constant new product developments. Our innovative designs and custom-fit nitrous systems allow for easy installation and optimized performance. Patented technological developments such as our Active Fuel Control™ to adjust fuel enrichment with changes in the bottle pressure, now enable safer, more efficient nitrous injection for increased horsepower gains without sacrificing engine safety.

In addition to nitrous systems, our product line also includes a full line of innovative nitrous accessories, spark plugs and much more. With ZEX's modern technology you can be sure that no power-adding option is safer, smarter or faster."

AND THIS IS THE ERROR I'M GETTING

"1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's modern technology you can be sure that no power-adding option is safer, smarte' at line 1
in:
[update manufacturers_info set Manufacturers_info='Founded in 1998, ZEX™ designs and manufactures truly superior bolt-on nitrous systems and related components. We integrate advanced engineering technology and superior customer service to provide you with the ideal nitrous solution for any application. As a member of the COMP Performance Group™, ZEX™ is able to combine R&D efforts for constant new product developments. Our innovative designs and custom-fit nitrous systems allow for easy installation and optimized performance. Patented technological developments such as our Active Fuel Control™ to adjust fuel enrichment with changes in the bottle pressure, now enable safer, more efficient nitrous injection for increased horsepower gains without sacrificing engine safety. In addition to nitrous systems, our product line also includes a full line of innovative nitrous accessories, spark plugs and much more. With ZEX's modern technology you can be sure that no power-adding option is safer, smarter or faster.' where manufacturers_id='138']
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields."

AND I SEE IT HAS TO DO WITH THE ' symbol. Is this an easy fix or do I need to just start removing all the 's. Thanks

don't mess with willie bee. i may go crazy on you.

10 Jul 2011, 4:35 PM
#7
tesefoti avatar

tesefoti

New Zenner

Join Date:
Jul 2010
Location:
Italy
Posts:
66
Plugin Contributions:
0

Post #7 by tesefoti

Thanks for this very interesting addon and works without any problem.

One suggestion, don't know if it is a quick fix, we could use the manufacturer description to fill the meta-tag description. And if we could choose keywords it would be great.

10 Nov 2011, 10:29 PM
#8
ksookma avatar

ksookma

Zen Follower

Join Date:
Aug 2009
Posts:
212
Plugin Contributions:
1

Post #8 by ksookma

It appears that this manufacturer description mod does not seem to be adding the database prefix. I had to copy the manufacturers_info table without the prefix. Now I am going to see if I can get this to show up on the catalog side now. Just thought I'd let you all know since one of the posters seemed to have this same issue.

19 Nov 2011, 5:59 AM
#9
alray10 avatar

alray10

New Zenner

Join Date:
Jan 2007
Posts:
96
Plugin Contributions:
0

Post #9 by alray10

A fix but not a great one for the prefix problem is in admin/manufacturers.php find

$prequery = "SELECT * from manufacturers_info where manufacturers_id = '$manid1'";

And change to

$prequery = "SELECT * from zen_manufacturers_info where manufacturers_id = '$manid1'";

This presumes your database prefix is zen_ you will need to change it to whatever your database prefix is.
Then find

$tupdate = "update manufacturers_info set Manufacturers_info='$mantext' where manufacturers_id='$manid1'";

and change to

$tupdate = "update zen_manufacturers_info set Manufacturers_info='$mantext' where manufacturers_id='$manid1'";

Next in \includes\templates\YOUR TEMPLATE\templates\tpl_manufacturer_filter_info.php find

$info = "select * from manufacturers_info where manufacturers_id = '$mid'";

and change to

$info = "select * from zen_manufacturers_info where manufacturers_id = '$mid'";

Remember to change zen_ to whatever your prefix is.
I will say I am no coder and I am sure there is a better way of doing this, but it works and fixes the prefix problem.

19 Nov 2011, 6:42 AM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #10 by gjh42

The better way is to use the constant TABLE_MANUFACTURERS_INFO instead of hard-coding the table name.```php
$info = "select * from " . TABLE_MANUFACTURERS_INFO . " where manufacturers_id = '$mid'";

21 Sep 2012, 10:16 AM
#11
ligrex avatar

ligrex

New Zenner

Join Date:
Oct 2008
Posts:
19
Plugin Contributions:
0

Post #11 by ligrex

I think that it doesn't work with multilanguage sites. When i select the edit option it only show 1 text area for the description. Than it saves the datas in both languages i use. Any idea?

31 Mar 2014, 1:58 PM
#12
igloonaut avatar

igloonaut

New Zenner

Join Date:
Mar 2014
Location:
South Africa
Posts:
1
Plugin Contributions:
0

Post #12 by igloonaut

I would love to use the Manufacturers About content on a page, I've installed the module and added about information to each manufacturer, so now I want to add the description to the list of items made by that manufacturer, very much the same way that the description of a category shows up when you select a category in the catalogue. But I am not a coder, Any ideas, samples, or suggestions on where to begin?