WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Video Product Tab
[resolved] Video Tab + Woocommerce Import Suite (9 posts)

  1. zorem
    Member
    Posted 1 year ago #

    when I update the plugin field with Woocommerce Import Suite I get an error on the product page admin dashboard, any suggestions how to make it work?

    http://wordpress.org/extend/plugins/woocommerce-video-product-tab/

  2. Sebastien D
    Member
    Plugin Author

    Posted 1 year ago #

    First which is it, product page or the admin dashboard ?

    Also what error do you get. Please be clear. Screenshots may help.

  3. zorem
    Member
    Posted 1 year ago #

    Hi, I will try to be more clear on that issue.
    I use this extension and when I manually insert videos to products in admin, it works fine. when I try to populate the video tab field with the CSV inport suite extension. it gives me the error:

    Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/woocommerce-video-product-tab/woocommerce-video-tab.php on line 227

    I guess that it's something with the formatting of values when Inserting them to the DB.

    Please advice, I have hundreds of products and it's a time weist to go to each one to add the video embed..

    Thanks.

  4. Sebastien D
    Member
    Plugin Author

    Posted 1 year ago #

    This sounds more of a problem with CSV import suite as that line you are getting an error on is fine.

    If my plugin works and does the job error free then it's not my plugin that is causing the error.

    It is more likely that the CSV import suite plugin needs to support my plugin for it to work. Please contact the author of that plugin and let them know the situation.

    P.S. Unfortunately I don't have this CSV import suite plugin to test with, but as I said if my plugin is error free when used they way it's designed to be used then it's the import plugin that needs to support it.

  5. zorem
    Member
    Posted 1 year ago #

    I can contact them but they told me to contact you..
    It's a metter of how you insert the values to the DB, is there anything special that you do? what is the format of the field you use?
    Also, if I can check the values directly in the DB (php my admin) to see the difference), which field should I check for?

  6. Sebastien D
    Member
    Plugin Author

    Posted 1 year ago #

    It's a single post meta entry with a all the data in array form.

    Look for post meta key 'woo_video_product_tab'

    // save the data to the database
    $tab_data[] = array('title' => $tab_title, 'hide_title' => $hide_title, 'id' => $tab_id, 'video' => $tab_video);
    update_post_meta($post_id, 'woo_video_product_tab', $tab_data);

    Hope this helps.

  7. zorem
    Member
    Posted 1 year ago #

    Got it, so you do not store the video frame data in that field.you store it as Array, this is the cause of the issue, the import extension import/export values not arrays...

    I got around it taking the field data/array from the DB and to import it in bulk to the DB but you should work in away that will integrate with other extensions that are the most important when managing a large store

  8. Sebastien D
    Member
    Plugin Author

    Posted 1 year ago #

    I will see what I can do about improving it to support other plugins.

    Thank you for noticing this problem and I will apply a fix soon.

  9. richesnrags
    Member
    Posted 7 months ago #

    Hello, any fix for this error? I am having the same problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.