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.
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.
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
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.
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?
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.
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.
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.