Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Sep 2006
    Posts
    2
    Plugin Contributions
    0

    Default [Done v1.3.6] Manufacter's help, other products not showing...

    When i click on 'other products' for the manufacturers, i get this error message below, any ideas?

    Warning: constant(): Couldn't find constant in /home/procarst/public_html/shop/includes/init_includes/init_add_crumbs.php on line 45

    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 'from where manufacturers_id = 46' at line 2
    in:
    [select from where manufacturers_id = 46]

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Manufacter's help, other products not showing...

    This is a bug that was fixed in v1.3.6 which we strongly recommend you upgrade to:

    http://www.zen-cart.com/forum/showth..._add_crumbs%2A
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Sep 2006
    Posts
    2
    Plugin Contributions
    0

    Default Re: [Done v1.3.6] Manufacter's help, other products not showing...

    USING PHPMYADMIN HOW EXCATLY DO I DO THIS:

    Warning: constant(): Couldn't find constant in myroot/includes/init_includes/init_add_crumbs.php on line 45
    1064 You have an error in your SQL syntax near 'from where manufacturers_id = 0' at line 2
    in:
    [select from where manufacturers_id = 0]
    SOLUTION:
    Upgrade to v1.3.6

    Or, if you think you can live without doing a full and proper upgrade, you can try:


    Apply the following SQL to your database using SQLPatch or phpMyAdmin:

    ## Updating table `get_terms_to_filter`#ALTER TABLE get_terms_to_filter ADD get_term_table varchar(64) NOT NULL;ALTER TABLE get_terms_to_filter ADD get_term_name_field varchar(64) NOT NULL;UPDATE get_terms_to_filter SET get_term_table = 'TABLE_MANUFACTURERS', get_term_name_field = 'manufacturers_name' where get_term_name = 'manufacturers_id';UPDATE get_terms_to_filter SET get_term_table = 'TABLE_MUSIC_GENRE', get_term_name_field = 'music_genre_name' where get_term_name = 'music_genre_id';UPDATE get_terms_to_filter SET get_term_table = 'TABLE_RECORD_COMPANY', get_term_name_field = 'record_company_name' where get_term_name = 'record_company_id';


    Edit: Moderator added comments in red

  4. #4

    Default Re: [Done v1.3.6] Manufacter's help, other products not showing...

    Quote Originally Posted by downautospares View Post
    USING PHPMYADMIN HOW EXCATLY DO I DO THIS:

    Warning: constant(): Couldn't find constant in myroot/includes/init_includes/init_add_crumbs.php on line 45
    1064 You have an error in your SQL syntax near 'from where manufacturers_id = 0' at line 2
    in:
    [select from where manufacturers_id = 0]
    SOLUTION:
    Upgrade to v1.3.6

    Or, if you think you can live without doing a full and proper upgrade, you can try:


    Apply the following SQL to your database using SQLPatch or phpMyAdmin:

    ## Updating table `get_terms_to_filter`#ALTER TABLE get_terms_to_filter ADD get_term_table varchar(64) NOT NULL;ALTER TABLE get_terms_to_filter ADD get_term_name_field varchar(64) NOT NULL;UPDATE get_terms_to_filter SET get_term_table = 'TABLE_MANUFACTURERS', get_term_name_field = 'manufacturers_name' where get_term_name = 'manufacturers_id';UPDATE get_terms_to_filter SET get_term_table = 'TABLE_MUSIC_GENRE', get_term_name_field = 'music_genre_name' where get_term_name = 'music_genre_id';UPDATE get_terms_to_filter SET get_term_table = 'TABLE_RECORD_COMPANY', get_term_name_field = 'record_company_name' where get_term_name = 'record_company_id';


    Edit: Moderator added comments in red
    Will this fix the issue with authors for the books mod?
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: [Done v1.3.6] Manufacter's help, other products not showing...

    Following the example provided, but adapting it for your custom product type should suffice.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6

    Default Re: [Done v1.3.6] Manufacter's help, other products not showing...

    Quote Originally Posted by DrByte View Post
    Following the example provided, but adapting it for your custom product type should suffice.
    I used this bit of code:

    UPDATE get_terms_to_filter SET get_term_table = 'TABLE_book_authors',get_term_name_field = 'book_authors'where get_term_name = 'book_authors';
    But I still get this:

    Warning: constant() [function.constant]: Couldn't find constant TABLE_book_authors in /home/sonny1/public_html/includes/init_includes/init_add_crumbs.php on line 45
    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 'where book_authors_id = 26' at line 3
    in:
    [select book_authors_name from where book_authors_id = 26]
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: [Done v1.3.6] Manufacter's help, other products not showing...

    Check your defines:
    TABLE_book_authors

    Most all constants are written in all CAPS ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8

    Default Re: [Done v1.3.6] Manufacter's help, other products not showing...

    Quote Originally Posted by Ajeh View Post
    Check your defines:
    TABLE_book_authors

    Most all constants are written in all CAPS ...
    I went to define and found these:

    define('TEXT_PRODUCT_BOOK_LISTINGS_ISBN', 'ISBN/Ref.: ');

    define('TEXT_PRODUCT_BOOK_FIND_THIS_AUTHOR', 'Find all %s\'s books');
    define('TEXT_PRODUCT_BOOK_FIND_THIS_GENRE', 'Show all %s books');
    define('TEXT_PRODUCT_BOOK_FIND_THIS_TYPE', 'Show all %s');
    define('TEXT_PRODUCT_BOOK_FIND_THIS_PUBLISHER', 'Show all books published by %s');

    define('BOX_HEADING_BOOK_AUTHORS', 'Authors');
    define('PULL_DOWN_BOOK_AUTHORS', 'Authors...');
    define('PULL_DOWN_BOOK_AUTHORS_RESET', '- Reset -');

    define('BOX_HEADING_BOOK_GENRES', 'Book Genres');
    define('PULL_DOWN_BOOK_GENRES', 'Genres...');
    define('PULL_DOWN_BOOK_GENRES_RESET', '- Reset -');

    define('BOX_HEADING_BOOK_TYPES', 'Book Types');
    define('PULL_DOWN_BOOK_TYPES', 'Types...');
    define('PULL_DOWN_BOOK_TYPES_RESET', '- Reset -');
    ?>
    I am not really good with php and I am having a hard time getting it to work. Can anyone help me out?
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: [Done v1.3.6] Manufacter's help, other products not showing...

    Since it's unclear what your database table-prefixes are, if any, try this adjustment to the SQL statement you posted earlier:

    Code:
    UPDATE get_terms_to_filter SET get_term_table = 'book_authors',get_term_name_field = 'book_authors' where get_term_name = 'book_authors';
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10

    Default Re: [Done v1.3.6] Manufacter's help, other products not showing...

    Quote Originally Posted by DrByte View Post
    Since it's unclear what your database table-prefixes are, if any, try this adjustment to the SQL statement you posted earlier:

    Code:
    UPDATE get_terms_to_filter SET get_term_table = 'book_authors',get_term_name_field = 'book_authors' where get_term_name = 'book_authors';
    Thanks, but it didn't work.


    I added this earlier:

    UPDATE get_terms_to_filter SET get_term_table = 'TABLE_BOX_HEADING_BOOK_AUTHORS',get_term_name_field = 'Authors'where get_term_name = 'book_authors_id';
    And now I get this:
    Warning: constant() [function.constant]: Couldn't find constant TABLE_BOX_HEADING_BOOK_AUTHORS in /home/sonny1/public_html/includes/init_includes/init_add_crumbs.php on line 45
    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 'where book_authors_id = 25' at line 3
    in:
    [select book_authors from where book_authors_id = 25]
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. how to make right column not showing at product page, and other pages showing?
    By win8win in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 25 May 2012, 10:49 AM
  2. Replies: 13
    Last Post: 6 Aug 2011, 05:07 PM
  3. Replies: 0
    Last Post: 5 May 2009, 03:20 PM
  4. Replies: 1
    Last Post: 23 Feb 2008, 04:23 PM
  5. Could the customers or manufacter post his products
    By nhakhtn in forum Managing Customers and Orders
    Replies: 1
    Last Post: 12 Jul 2007, 04:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR