• Resolved itspriyanka

    (@itspriyanka)


    Hi,

    I created custom tabs for a few of my products and exported the product as as CSV file. I then added more products to the CSV file and imported the data. However, the custom tabs are not getting imported. Under the import options, I see “Do not import” by default for “yikes_woo_products_tabs”. Please see the screenshots on the following links:

    Default option for product import
    Import Options dropdown

    I have tried this with saved custom tabs also. Please let me know how to import new products with custom tabs/ custom saved tabs.I have some 5000 products so its not possible to create tabs for every product individually.

    Thanks!
    Priyanka

    The page I need help with: [log in to see the link]

Viewing 13 replies - 16 through 28 (of 28 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    If there is no yikes_woo_products_tabs field in the file then nothing should be overwritten, or if you do have the field in the file then make sure to choose “do not import.” I will test these though.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    I tested both items above and it worked. I had a product with a custom tab. I changed the title of my product via import (the file did not have the yikes_woo_products_tabs field), and the title was updated and the tab remained. I then tried the same thing but the file had the yikes_woo_products_tabs but I chose to not import it. This worked as well.

    Cheers,
    Kevin.

    Thread Starter itspriyanka

    (@itspriyanka)

    That would solve my problem πŸ™‚ I don’t think we need to change the custom tabs frequently. If we need to do it once in a while, we can do it individually for the products involved.

    Thanks a ton for helping me through this!
    Regards,
    Priyanka

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    No problem! I’m glad we found a working solution πŸ™‚

    URGENT: Migrated our website from localhost to live and it lost the product tabs on all our products over 1500 of them.

    I an see the information is on the database but how do we get them to show.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @daltonint,

    Did you run a search and replace on the database to change, for example, URLs?

    Custom Product Tabs are saved as a serialized string and changing any of the data directly in the database will corrupt it.

    Let me know if this is what happened – there is a solution.

    Thanks,
    Kevin.

    Hi! I created a tab in one product and want to copy it to the other 300 products. I exported everything using the standard Woocommerce plugin, got the “yikes_woo_products_tabs” field. Copied far need to information and imported back. Tabs in the new products did not appear. Prompt how it is possible to solve a problem?

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @trikatlet,

    Did you change the value of the field before importing it?

    There are a few alternative options:

    Use our WP All Import Companion Plugin, which requires WP All Import and WP All Import’s WooCommerce add-on. This works well for situations like yours where you want all of your products to have the same tab.

    Another option is to run a query in your database directly, inserting the yikes_woo_products_tabs field into the postmeta table for products that you want to have tabs. I would only recommend this if you’re somewhat familiar with MySQL (I would write the query for you though).

    Finally, the last option is to run a WP_Query that fetches all of your relevant products and adds the tabs to them. I would only recommend this if you’re familiar with PHP, WordPress, and using WordPress classes/functions like WP_Query and update_post_meta

    Yes. Before import, I changed the value of the field to “import as meta-data.” I’m not a big expert by the MySQL, but i can try. I do not use “WP All Import”, as far as I know, it is paid.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Importing through WooCommerce’s import should definitely work as long as you don’t manually edit the tabs in the export file. Did you edit the tab’s in the export file before importing them?

    No, I first created a tab for one product. Then I exported all the goods, copied the cell of this product and pasted it into others.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    I bet something got messed up in the copy and paste. Would you mind contacting us at plugins [at] yikesinc [dot] com? I’d like to see your export file (or at least a subset of the records) because what you’re doing should work.

    Just figured I’d leave my tip here after screwing with this for a few days..

    I was doing the same thing as poster – wanting to import products with custom (or saved) tabs from a csv and I couldn’t get it to work. First, like OP, I manually made a product, exported it… and then I duplicated the row and edited the new rows to make new products… and then when I would import back into woocommerce the custom tabs wouldn’t show up even with the “import as meta” option. However, If I took the original export of the product I made manually and tried importing it and would import just fine by itself…

    So, I looked at the yikes_woo_products_tabs column in my csv for the first duplicated product I made which was this:

    a:1:{i:0;a:3:{s:5:"title";s:12:"User Reviews";s:2:"id";s:12:"user-reviews";s:7:"content";s:251:"<h2>ATCProxys User Reviews:</h2>
    <h3>[RICH_REVIEWS_SNIPPET category="ATCProxys.com"]</h3>
    [RICH_REVIEWS_SHOW category="ATCProxys.com" num="8"]<br />
    (If you have used ATCProxys please leave a review below!)
    [RICH_REVIEWS_FORM category="ATCProxys.com"]";}} 

    and then I noticed that the "content";s:251:" part is a character count of actual content in the tab, and once it was changed to "content";s:255:" the product would import properly! I’ve just imported 800+ products with Custom Tabs after fixing the character counts for the “content” part of the serial/meta data. Thankfully the Custom Tabs only changed every few dozen products and not for each. If every single product has a different custom tab then it would have been very tedious for sure.

    • This reply was modified 5 years, 7 months ago by jsnowbusiness.
Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘Importing products with custom tabs’ is closed to new replies.