Page 215 of 367 FirstFirst ... 115165205213214215216217225265315 ... LastLast
Results 2,141 to 2,150 of 3668
  1. #2141
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: EasyPopulate 4.0 Support Thread

    Quote Originally Posted by Feznizzle View Post
    Huh? That must have been the problem!




    Because of what you just said, I typically remove any column I do not want modified, leaving only what I am changing, plus the control (model# being EP4 default). Since I wasn't changing product_name, I removed it.

    But I just uploaded with product_name included (all fields, really) and it went in exactly as expected, removing the foul links.

    Thanks, MC! You da man!
    I'll take another look at that section of code. I think in the addition of languages/an extended field if found present in the database that the test for that sql to be run or not didn't get updated... It looks like originally that code section was intended only to address the products_name field and to be run only if a name was to be inserted or updated... Then along came some other fields... I expect to revise it to still do a test, but 1) only call the code section if something within is to be acted on and 2) only to include the field(s) with data to optimize the query as able.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #2142
    Join Date
    Apr 2010
    Posts
    897
    Plugin Contributions
    0

    Default Re: EasyPopulate 4.0 Support Thread

    Quote Originally Posted by mc12345678 View Post
    1) only call the code section if something within is to be acted on and 2) only to include the field(s) with data to optimize the query as able.
    That seems so much more logical to me! First hit the index (model# being default), then check field. If the index supplies point of reference, no need to act on anything other than supplied fields.

    Wait, maybe that's backwards? First check fields to find out what needs action (code needs calling), then apply only to indexed entry.

    Having to supply the product name when all I wanted to do is alter product_url seemed illogical.

    Anyway, glad your on it! Thanks again!

  3. #2143
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: EasyPopulate 4.0 Support Thread

    Glad you like it. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #2144
    Join Date
    May 2008
    Location
    United States
    Posts
    470
    Plugin Contributions
    1

    Default Re: EasyPopulate 4.0 Support Thread

    I need to modify products_ordered in the products table, I downloaded in Easy Populate 4: Complete Products (with Metatags) but that table column is not in the CSV file, is there another way for it to be download that I'm not seeing?

  5. #2145
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: EasyPopulate 4.0 Support Thread

    Quote Originally Posted by marcopolo View Post
    I need to modify products_ordered in the products table, I downloaded in Easy Populate 4: Complete Products (with Metatags) but that table column is not in the CSV file, is there another way for it to be download that I'm not seeing?
    While I won't leave you with the one liner that would answer this (read the instructions), but if you add the products table field(s) desired in the custom fields section of the admin-configuration then it will appear in the export and be modifiable on the import. Do not include v_ before the field name. Just the field name as it appears in the database for the (YOUR_PREFIX)products table.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #2146
    Join Date
    May 2008
    Location
    United States
    Posts
    470
    Plugin Contributions
    1

    Default Re: EasyPopulate 4.0 Support Thread

    That was easy, worked perfect! Thanks for quick reply and not giving me the one liner

  7. #2147
    Join Date
    May 2008
    Location
    United States
    Posts
    470
    Plugin Contributions
    1

    Default Re: EasyPopulate 4.0 Support Thread

    Ok so I just tested a single line import worked fine, I figured I better try a couple lines to make sure that works and it gave me the following error:

    UPDATED! - Model: 10 | 737 |
    UPDATE PRODUCT FAILED! - Model: 20 - SQL error. Check Easy Populate error log in uploads directory
    UPDATE PRODUCT FAILED! - Model: 30 - SQL error. Check Easy Populate error log in uploads directory

    in the error log I have:

    MySQLi error 1292: Incorrect datetime value: '-0001-11-30 00:00:00' for column 'products_date_available' at row 1
    When executing:
    UPDATE products SET
    products_price = '15.1000',products_upc = '',products_ordered = '258',products_image = 'test.gif',
    products_weight = '1.2',
    products_discount_type = '0',
    products_discount_type_from = '0',
    product_is_call = '0',
    products_sort_order = '0',
    products_quantity_order_min = '1',
    products_quantity_order_units = '1',
    products_priced_by_attribute = '0',
    product_is_always_free_shipping = '0',
    products_tax_class_id = '2',
    products_date_available = '-0001-11-30 00:00:00',
    products_date_added = '2000-05-01 22:08:00',
    products_last_modified = CURRENT_TIMESTAMP,
    products_quantity = '786',
    manufacturers_id = '1',
    products_status = '1',
    metatags_title_status = '0',
    metatags_products_name_status = '0',
    metatags_model_status = '0',
    metatags_price_status = '0',
    metatags_title_tagline_status = '0' WHERE (products_id = '4')
    Last edited by marcopolo; 6 Dec 2015 at 01:54 AM.

  8. #2148
    Join Date
    May 2008
    Location
    United States
    Posts
    470
    Plugin Contributions
    1

    Default Re: EasyPopulate 4.0 Support Thread

    In the CSV I have the following only:

    v_products_model,v_products_ordered
    10,737
    20,258
    30,304

  9. #2149
    Join Date
    May 2008
    Location
    United States
    Posts
    470
    Plugin Contributions
    1

    Default Re: EasyPopulate 4.0 Support Thread

    Ok nevermind, the error above was on my test site. I just tried it on my main site and it worked.

  10. #2150
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: EasyPopulate 4.0 Support Thread

    Glad to hear that it works, but I am curious about why it happened... What's different between the two? Does one have a differrent php version than the other? Are the versions of EP4 the same or different?

    Recently corrected or tried to anyways an issue with those dates to make sure they work. I wonder if the sign is backwards for the more recent version(s) of php although I didn't test with as few columns as you did. (Not necessarily the intended use at the moment). Further since I'm working on publishing a new version I'd like to have ths addressed if it needs to be.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 20
    Last Post: 23 Apr 2025, 08:49 AM
  2. BackUp ZC [Support Thread]
    By skipwater in forum All Other Contributions/Addons
    Replies: 285
    Last Post: 23 Dec 2020, 10:40 AM
  3. Wordpress On ZC [Support Thread]
    By hira in forum All Other Contributions/Addons
    Replies: 1858
    Last Post: 17 Jan 2014, 01:24 AM
  4. ZJ Black 2 support thread
    By Liamv in forum Addon Templates
    Replies: 1
    Last Post: 15 Feb 2010, 02:53 PM

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