Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2007
    Posts
    122
    Plugin Contributions
    0

    Default Very strange databsae problem.

    I have done a mod to import products and transfer pictures from a suppliers web site to my site. I am using 1.2.5 of zen, which before anyone say's something is being upgraded soon to 1.3.8a.

    The problem I have is that out of the 1012 products that are in the feed, only 706 show up in the admin and the shop itself. The products that do show up, show correctly. When I started investigating this, thinking that it was a problem with the code I had written, it turned out that the missing products are present in the database. I cannot see any difference between the data of a product that does show in the shop, and a product that does not show in the shop.

    Anybody every had an issue like this, or got any ideas of what could cause these not to show in the admin or the shop front.

    Thanks for any help given,
    Laurie

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Very strange databsae problem.

    You are probably missing products_to_categories table entries for those products which are not appearing anywhere.

    Also worth noting is that you should never mix both products and sub-categories at the same level. v1.2 didn't enforce that, but v1.3 does.
    .

    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
    Jun 2007
    Posts
    122
    Plugin Contributions
    0

    Default Re: Very strange databsae problem.

    Thanks for your response.

    Checked the products to catagories entry and the entry for one of the many missing products is present and correct.

    Any other ideas. Racking my brains over this one !!!!!!!!!!!

    Regards
    Laurie

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Very strange databsae problem.

    If your products are not showing in the list, then they're likely missing the master_categories_id.

    The fast way to set that if your custom feed code doesn't already do it, is to use the Store Manager's "reset master categories ID" option to go through all your products and set a master categories id.

    But before you do that, check that your data is intact:
    - count of products table matches count of products_description table
    - count of products table matches count of products_to_categories table
    - each product in products table needs to have a non-zero products_type entry (you should be setting it to "1" if in doubt of what to put there)
    .

    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.

 

 

Similar Threads

  1. Replies: 9
    Last Post: 7 Jan 2014, 12:49 PM
  2. Very Strange problem with order/account
    By edadk in forum General Questions
    Replies: 6
    Last Post: 14 Aug 2010, 08:07 PM
  3. Very strange permissions problem with configure.php
    By vito in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 11 May 2010, 07:13 PM
  4. Very strange and big problem - See if you can figure it out?
    By ttrowell in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 27 Jun 2009, 01:28 AM
  5. IH2 problem... very strange...
    By LittleOleMeDesigns in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 3 Apr 2008, 06:34 PM

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