Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2009
    Posts
    16
    Plugin Contributions
    0

    Default Reset "Next products table id" - Easy Populate

    Does anyone know how to reset the "next products table id" that is displayed in the tools > Easy Populate - admin panel?



    I added some test products using Easy Populate to make sure it was working and then deleted the products from the store. The products_id's no longer show the added product ids as they were deleted but the table id displayed in the admin is still counting the deleted products.

    I am using EPA 3.0.3 and realise that it is probably outwith the remit of the community here to trouble shoot this but there is no support coming from the mod creator.

    So if anyone can shed some light on how to adjust this number that would be great.

    I have tried to track it down and it looks like it is being generated by the product id ( this is currently at 10 not 22 )

    PHP Code:
    echo sprintf(EASYPOPULATE_PRODUCTS_INDEX_MODEEASYPOPULATE_CONFIG_PRIMARY_INDEX);
    if (
    EASYPOPULATE_CONFIG_PRIMARY_INDEX == 'products_id')
    {
      echo 
    sprintf(EASYPOPULATE_ADVICE_NEXT_PRODUCTS_IDep_get_next_id(TABLE_PRODUCTS));

    Any help appreciated, thanks.

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Reset "Next products table id" - Easy Populate

    You've got to be very careful here, because the product ID is not exclusive to the products table. It is used for a wide variety of relational processes (linking fields in OTHER tables to appropriate product data).

    When you upload your products (either manually via the admin console) or through EP, a lot of additional processing takes place with the assignment of the product ID to other areas of the database.

    re-setting the product ID in only the Products Table will result in an array of problems that you will find very challenging to repair.
    20 years a Zencart User

  3. #3
    Join Date
    Nov 2009
    Posts
    16
    Plugin Contributions
    0

    Default Re: Reset "Next products table id" - Easy Populate

    Thanks for your help Schoolboy,

    I have taken your advice and restored my shop to a previous version before the EP trials.

 

 

Similar Threads

  1. v151 Easy Populate - Min: 0 Units: 0 - Is there a "global" config ?
    By mesnitu in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 14 Apr 2016, 09:31 PM
  2. v151 Use of Easy Populate to add/modify Attributes "instructions"
    By mc12345678 in forum General Questions
    Replies: 0
    Last Post: 14 Nov 2013, 05:37 AM
  3. Easy Populate 1.2.5.5.csv "No model field" error
    By swirlback in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 18 Sep 2009, 08:41 PM
  4. Add "shipping" next to "table rate" on invoice
    By mrmeech in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 12 Jan 2007, 07:54 AM
  5. easy populate problem"no model field in record"
    By akritkey in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 30 Jun 2006, 09:32 AM

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