• Resolved Krissieg

    (@krissieg)


    Hi there, I am using your plugin for my client who requires an additional tab on their products. They’ve also got loads of products that need importing. I worked out the data fields needed to refer to your plugin so that when importing products the data can be applied automatically to each product. This worked, but despite the products publishing immediately after import, for the booster tab to be visible / appear on the product, we have to go in manually and resave the product for the What’s Included tab to show. Why is this? Can you help?

    Here is an example: https://swdgras.com/product/120-ibv-2/

    This product was imported via spreadsheet, but the What’s Included tab didn’t how until I had gone into edit the product and save it.

    Any help / advice would be welcome, thanks!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Krissieg

    (@krissieg)

    Hi guys, I really need your help please. I’ve been trying to work out how to push the What’s Included tab to show on the live product without having to go into a product manually and press update. Nothing seems to work when I try doing it using bulk editors or the default Woocommerce product editor. If you can tell me how to get the tab to display without having to edit every single product manually, I’d be most grateful! Thanks

    Plugin Contributor David G

    (@gravid7)

    Hi @krissieg,

    Thanks for your message.

    Please create a staging site of the current website and try adding the snippet below to the functions.php file of the staging site. This script will update all products in one page load.

    Once you’ve confirmed that all products are showing the custom tabs correctly, you can safely remove this script from the file.

    add_action('init', function() {
    if (!current_user_can('administrator')) return;

    $args = [
    'post_type' => 'product',
    'posts_per_page' => -1,
    'post_status' => 'publish',
    ];
    $products = get_posts($args);

    foreach ($products as $product) {
    wp_update_post(['ID' => $product->ID]);
    }

    echo 'Products updated.';
    exit;
    });
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Product Tabs – Bulk Import’ is closed to new replies.