• Resolved tictok

    (@tictok)


    Hi there,

    Is this plugin supposed to work with Woo’s block editor?

    I might be missing something, but can’t see a subtitle field anywhere in the data panel in the product editor. As the plugin adds a subtitle block I thought I’d be able to add a sub-title via block editor?

    If I disable the block editor I can see a subtitle field just below the title field when using the classic editor.

    Look forward to hearing from you
    Many thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author SpiderWares

    (@spiderwares)

    Hi @tictok,

    Thank you for reaching out with your query!

    Yes, the plugin is designed to work with WooCommerce’s block editor.

    To assist you further, please watch this video tutorial that provides a step-by-step guide on how to use the block and add subtitles via the block editor:
    Watch Video

    If you’re still unable to see the subtitle field or encounter any issues, feel free to let us know. We’ll be happy to assist you in resolving this.

    Looking forward to your feedback!

    Best regards,
    SpiderWares Support Team

    Thread Starter tictok

    (@tictok)

    Hi, thanks for your reply.

    Sorry, you miss-understand what I meant, I probably wasn’t clear enough.
    I can add the block (as show in your video), no problem.

    The issue I have is that on the product edit screen for each product (posttype product) there is no field available to enter the subtitle value.

    If I turn off the block editor (for product edit screen), then the subtitle field is there just below the title when using the classic editor. However, all of our products use the block editor in their long description so the classic editor isn’t an option for us.

    I have found a work-around though. I also used AdminColumns Pro plugin, and have managed to add the subtitle post_meta field as an editable column in WooCommerce’s admin product listing.

    My product edit screen below, showing no sub-title field.

    Best regards

    Plugin Author SpiderWares

    (@spiderwares)

    Hello @tictok,

    Apologies for the misunderstanding. I believe I now understand your point. We are currently working on this feature, and it will be included in the next update, scheduled for release this Saturday.

    In the meantime, you can add subtitles using the custom field feature of the product block editor, as demonstrated in the video below:
    https://i.imgur.com/FQfhHr9.gif

    Looking forward to your feedback!

    Best regards,
    SpiderWares Support Team

    Thread Starter tictok

    (@tictok)

    That sounds great – looking forward to the update!

    Thanks again ??

    Plugin Author SpiderWares

    (@spiderwares)

    Hello @tictok,

    We’re pleased to let you know that the requested field has been added. Kindly update to the latest version and let us know your thoughts.
    https://i.imgur.com/rSb1BUY.png
    We’d also greatly appreciate it if you could take a moment to rate us on www.remarpro.com. Your feedback means the world to us and helps us improve further!

    We truly value your feedback and look forward to hearing from you!

    Best regards,
    SpiderWares Support Team



    Thread Starter tictok

    (@tictok)

    Hey many thanks for the update @spiderwares
    It’s great that you’ve added it to the beta / future woo block editor!
    Really sorry to say though, that’s not the block editor I meant.

    For years, myself and others have been enabling the block editor on woocommerce product edit pages. Some themes have a built in way to enable or toggle it, or it can be done in child theme with a snippet similar to this:

    add_filter('use_block_editor_for_post_type', function ($is_enabled, $post_type) {
    if ($post_type === 'product') {
    return true; // Enable the block editor for WooCommerce products
    }
    return $is_enabled;
    }, 10, 2);

    This enables the block editor in the long description, but also removes your subtitle field (as it appears adding custom fields below the title isn’t an option with this product block editor enabled):


    For now, I’ve found work around and have added the subtitle field to the advanced tab within the product data panel:

    Using the follow two functions in my child theme:

    function add_pswc_subtitle_field_to_product_data_panel() {
    global $post;
    $subtitle = get_post_meta($post->ID, 'pswc_subtitle', true);
    ?>
    <div class="options_group">
    <p class="form-field">
    <label for="pswc_subtitle"><?php esc_html_e('Subtitle', 'my-child-theme'); ?></label>
    <input type="text" class="short" name="pswc_subtitle" id="pswc_subtitle" value="<?php echo esc_attr($subtitle); ?>" />
    <span class="description"><?php esc_html_e('Enter a subtitle for this product.', 'my-child-theme'); ?></span>
    </p>
    </div>
    <?php
    }
    add_action('woocommerce_product_options_advanced', 'add_pswc_subtitle_field_to_product_data_panel');

    function save_pswc_subtitle_field($post_id) {
    if (isset($_POST['pswc_subtitle'])) {
    update_post_meta($post_id, 'pswc_subtitle', sanitize_text_field($_POST['pswc_subtitle']));
    }
    }
    add_action('woocommerce_process_product_meta', 'save_pswc_subtitle_field(');

    Works well for me, but thought I’d share!

    Many thanks

    Plugin Author SpiderWares

    (@spiderwares)

    Hello @tictok,

    I am extremely sorry for the misunderstanding in my previous message. I truly appreciate your patience, and I want to clarify any confusion caused. I understand how this could have been frustrating, and I’ll make sure to address it properly moving forward.

    We will do it, We got your point and what exactly you mean by your code we will add it in the plugin asap and get back to you

    Best regards,
    SpiderWares Support Team


    Thread Starter tictok

    (@tictok)

    Hey, thanks @spiderwares

    No need to apologise at all!
    No frustration on my part, and I’m really grateful for the updates you’re making…. above and beyond!

    Really no hurry from my point of view, I have a good workaround for now ??

    Best regards

    Plugin Author SpiderWares

    (@spiderwares)

    Dear @tictok,

    We’re excited to inform you that support for the product subtitle field has now been added to the Gutenberg product editor.

    We’d also greatly appreciate it if you could take a moment to rate us on www.remarpro.com. Your feedback means the world to us and helps us improve further!

    Best regards,
    SpiderWares Support Team

    Thread Starter tictok

    (@tictok)

    Hey, thanks @spiderwares, thats great new. I’ll give it ago. Feedback/rating given ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.