Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Description 1.2 MOD


bluestallion

Recommended Posts

I installed the Product Description 1.2 Mod and got this error:

 

Warning: wordwrap() expects parameter 2 to be long, string given in F:Domainsmyname.comwwwrootcatalogincludesmodulesproduct_listing.php on line 17

 

However, the product description listing works fine.

 

How do I get rid of the error message and is there a serious error here?

 

Any advice appreciated.

 

Thanks.

Link to comment
Share on other sites

did you load the supplied file 'product_description.sql' into your mySQL database and did you defined PRODUCT_LIST_DESCRIPTION_MAX_LENGTH in the admin well??

Link to comment
Share on other sites

I did not load supplied file 'product_description.sql' into mySQL database but I inserted the code in the 'product_description.sql' file directly into mysql_catalog.sql database file via HELM: The Web Hosting Control System. Is this method correct coz I'm don't know much about databases.

 

And where and how do I define PRODUCT_LIST_DESCRIPTION_MAX_LENGTH? I tried checking catalog/admin but there are no such option for me to configure or define. Or should I edit the code directly in any php file, the 'advanced_search_result.php' perhaps?

 

Please advice. Thanks.

Link to comment
Share on other sites

I don't know HELM so I can't say you if your mySQL database is OK

 

PRODUCT_LIST_DESCRIPTION_MAX_LENGTH would be in your database, you don't need a define() in yours php files. you would find it in your database and define it in your admin: Configuration->Maximum Values->Product Description->

Maximum number of caracters when displaying the product description in the product listing
Link to comment
Share on other sites

xaglo,

 

I've found the PRODUCT_LIST_DESCRIPTION_MAX_LENGTH in my database file but I can't see any Product Description option in my admin: [Configuration->Maximum Values->Product Description->]

 

Does the Product Description appear in the orginal admin?

Link to comment
Share on other sites

yes, i think you didn't load the supplied file 'product_description.sql' into your mySQL database correctly

 

you would have a Product Description line in Configuration->Maximum Values to select the Maximum number of caracters to display in the description in the product listing.

# Insert configuration items into the configuration table.

INSERT INTO configuration (

  configuration_title,

  configuration_key,

  configuration_value,

  configuration_description,

  configuration_group_id,

  date_added

  ) VALUES (

  'Display Product Description',

  'PRODUCT_LIST_DESCRIPTION',

  1,

  'Include product description in the product listing. The product description will be included undef the product name. So, the product name has to be printed in the product listing',

  8,

  now()

  );



# Insert configuration items into the configuration table.

INSERT INTO configuration (

  configuration_title,

  configuration_key,

  configuration_value,

  configuration_description,

  configuration_group_id,

  date_added

  ) VALUES (

  'Product Description',

  'PRODUCT_LIST_DESCRIPTION_MAX_LENGTH',

  200,

  'Maximum number of caracters when displaying the product description in the product listing',

  3,

  now()

  );

:wink:

Link to comment
Share on other sites

what does it mean?

Create a new table? Create a new database? Pls advice.

No, how it's explain in the comment of the sql request, you only have to insert configuration items into the configuration table.

 

I think, if you don't know what does it mean, that it's easier to load the file with a programm as phpmyadmin for exemple :roll:

Link to comment
Share on other sites

Thanks Xavier! :D

 

You're a life saver man! The product description is working fine now.

 

Now I know how I should load the sql file. Meaning, I just add new data values into the table named 'configuration'. It was so easy to see when I used mySQL Manager. It's the coolest app for tweaking sql stuff. You guys should check it out.

 

Cheers!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...