Author Topic: osC AddonsFeatured Products  (Read 666 times)

0 Members and 1 Guest are viewing this topic.

NewsBot

  • The osCommerce University News Bot
  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1024
  • Karma: 0
    • View Profile
osC AddonsFeatured Products
« Reply #1 on: March 06, 2008, 12:00:09 AM »
Featured Products
     


After installaling this contribution and i get an SQL error for /module/feature.php not able to load on index.php, sql 5 error syntax, due to mising

'MAX_DISPLAY_FEATURED_PRODUCTS_LISTING' in SQL database.



I found a fix to add this in Application_Top.php



  define('MAX_DISPLAY_FEATURED_PRODUCTS_LISTING', '10');

  define('MAX_DISPLAY_FEATURED_PRODUCTS', '6');

  define('FEATURED_PRODUCTS_DISPLAY', 'true');



But instead i found an easier way to if we insert this SQL to the database. Problem fixed.



I'm not the programmer but would like to share what i found.



INSERT into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added) values ('Maximum Display of Featured Listing', 'MAX_DISPLAY_FEATURED_PRODUCTS_LISTING', '10', 'This is the maximum amount of items listing on the front page.', '39', '2', now(), now()

);
     

http://addons.oscommerce.com/info/651
     
================================
This post was created by the osCommerce University News Bot.  Feel free to reply, attach polls, etc -- but do not hold the osCommerce University responsible for the content of the post itself.  PM the Administrator for SPAM, thanks!