Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Database table prefix not recognized when establishing product restriction in coupons

    Setting up discount coupon on this site for first time.

    Everything works except that I am unable to establish coupon restrictions because Zencart not recognizing the prefix on my database table for 'products_to_categories'.

    My database tables are prefixed "ws_"'

    I get the following error when entering a product restriction:
    1146 Table 'zc_wilks.products_to_categories' doesn't exist
    in:
    [select products_id from products_to_categories where categories_id = '7' and products_id not in (select product_id from coupon_restrict where coupon_id = '2')]
    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.
    Related entries in admin/includes/configure.php:
    Code:
     define('DB_PREFIX', 'ws_');
      define('DB_DATABASE', 'zc_wilks');
    Related entries in includes/configure.php:
    Code:
     define('DB_PREFIX', 'ws_');
      define('DB_DATABASE', 'zc_wilks');
    www.aspenshopsonline.com - ZenCart 1.3.9h
    www.wilkssupply.com - ZenCart 1.3.9h
    www.un-du.net - ZenCart 1.3.8a

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

    Default Re: Database table prefix not recognized when establishing product restriction in cou

    Ya, that was a bug that was fixed in v1.5.0
    .

    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.

  3. #3
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: Database table prefix not recognized when establishing product restriction in cou

    Thanks.
    Guess that finally gives me the push to upgrade.
    My reluctance to upgrade is based on how good Zencart works for me since the version 1.3 series came out, that I never felt the need to upgrade and rework the contributions back into a newer version.

    That's meant as a compliment to the development team. Good Job guys and gals of the development team!

    Quote Originally Posted by DrByte View Post
    Ya, that was a bug that was fixed in v1.5.0
    www.aspenshopsonline.com - ZenCart 1.3.9h
    www.wilkssupply.com - ZenCart 1.3.9h
    www.un-du.net - ZenCart 1.3.8a

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

    Default Re: Database table prefix not recognized when establishing product restriction in cou

    Found it in the Bug Reports section: http://www.zen-cart.com/showthread.p...icting-coupons
    .

    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.

  5. #5
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: Database table prefix not recognized when establishing product restriction in cou

    Quote Originally Posted by DrByte View Post
    Found it in the Bug Reports section: http://www.zen-cart.com/showthread.p...icting-coupons
    Thanks, made the changes. Works perfect.

    Ron
    www.aspenshopsonline.com - ZenCart 1.3.9h
    www.wilkssupply.com - ZenCart 1.3.9h
    www.un-du.net - ZenCart 1.3.8a

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Database table prefix not recognized when establishing product restriction in cou

    Quote Originally Posted by ronlee67 View Post
    My reluctance to upgrade is based on how good Zencart works for me since the version 1.3 series came out
    If you're on the 1.3 series, just make sure it's 1.3.9h . It's still robust and reliable...
    20 years a Zencart User

 

 

Similar Threads

  1. error establishing a database connection
    By Spinners Derek in forum General Questions
    Replies: 7
    Last Post: 11 Aug 2015, 09:21 PM
  2. Replies: 0
    Last Post: 11 Dec 2013, 08:05 AM
  3. Database Table Prefix & Mods
    By philip937 in forum General Questions
    Replies: 4
    Last Post: 12 Jan 2012, 07:48 PM
  4. Error establishing a database connection
    By Fireflyz in forum General Questions
    Replies: 2
    Last Post: 22 Oct 2009, 12:19 PM
  5. Order does not seem to be recognized as COWOA when using PayPal Express Checkout
    By alicia1234 in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 3 Feb 2009, 06:06 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