Woocommerce Product via CSV upload – Description Meta not updated

#244302
  • Resolved Koolpal
    Rank Math free

    Hello,

    First of all, thanks a lot for this comprehensive SEO plugin!

    I am trying to migrate from Yoast and this is ONE of the issues which is stopping me for now. Your guidance or fix would be highly appreciated and would speed up my migration from Yoast.

    I am testing extensively on my local installation with:
    WooCommerce version: 5.5.2
    WordPress version: 5.8
    Classic Editor by WordPress Contributors – 1.6.2
    Rank Math SEO by Rank Math – 1.0.70

    Versus with Yoast SEO Version 16.9

    For my woocommerce store, I often need to quickly create a lot of SIMPLE products for a Flash Sale.
    I use the following https://github.com/woocommerce/woocommerce/wiki/Product-CSV-Import-Schema#csv-columns-and-formatting to create my CSV file. This file auto creates the products and saves them in Draft status.

    Single Product Title: Some text %title% %sep% some text
    Single Product Description: Some text %sep% %title% %sep% some text

    Upon inspection I am left with a single issue which is a show stopper vs Yoast.

    1. I upload a single image for each product which is listed in the csv – via Add Media
    2. I upload the CSV file with title, short description, price etc
    3. After successful upload, the products are created and saved in Draft status

    Using Rank Math
    In the admin Product list, everything looks fine. See screenshot

    When I open the product I find
    RM1 – The product title meta is as expected
    Rm2 – The description meta is NOT seen as expected. It just uses the excerpt.
    See screenshot

    The impact is seen even in the page source. Description Meta is not correct. It just uses the excerpt.
    See screenshot

    When I repeat this process using Yoast, there is no problem and ALL META is seen as expected:

    Using Yoast
    In the admin Product list, everything looks fine. See screenshot

    When I open the product I find
    RM1 – The product title meta is as expected
    Rm2 – The description meta is as expected.
    See screenshot

    The impact is seen even in the page source. Description Meta is as expected.
    See screenshot

    Since everything else is the SAME, I cannot think Plugin Conflict would be a cause for this.

    Can you please test internally and guide me on this?

    Please let me know in case you require any additional clarifications as I am looking forward to migrating to Rank Math BUT this is a show stopper for me.

    Thanks a lot!

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Since you mentioned you’re testing it in your local installation, could you please share the CSV file to check and test on our end? You can share a downloadable file URL using https://wetransfer.com/ or Google Drive and share it in the sensitive data section
    Sensitive Data Section

    It is completely secure, and only our support staff has access to that section.

    Looking forward to helping you.

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Thank you for sharing the file.

    I’ve checked the CSV, and it seems that there’s no meta title and description included.

    This is the order we follow to generate meta descriptions for WooCommerce product or product category for that matter:

    1. Content from SEO Description field
    If that is missing, then:

    2. WooCommerce Excerpt or Product Short Description
    If that is missing, then:

    3. Template From General Settings in WordPress Dashboard > Rank Math > Titles & Meta > Products
    If that is missing, then:

    4. Auto-generated Content from the product page.

    Since you wanted to use the value you have set in Single Product Description: Some text %sep% %title% %sep% some text, you may need to use this filter to force it to your meta description.

    /**
     * Use the Description from Global Setting, if the description is missing in the Post metabox
     */
    add_action( 'rank_math/frontend/description', function( $description ) {
     global $post;
     $desc = RankMath\Post::get_meta( 'description', $post->ID );
    
     if ( is_product()) {
     $desc = RankMath\Helper::get_settings( "titles.pt_{$post->post_type}_description" );
     if ( $desc ) {
     return RankMath\Helper::replace_vars( $desc, $post );
     }
     }
    
     return $description;
    });

    And here’s a link on how to apply a filter on your site:
    https://rankmath.com/kb/filters-hooks-api-developer/#how-to-add-code-snippets-to-rank-math-php

    Please note that the filter may not be visible while editing the products as it only works when your products load in a browser. You can check the published/saved product meta description via the page’s source code.

    I hope that helps.

    Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    Hello,

    I’ve checked the CSV, and it seems that there’s no meta title and description included.

    Yes you are right, I do not provide meta data in csv file.

    3. Template From General Settings in WordPress Dashboard > Rank Math > Titles & Meta > Products

    I have ALREADY set this at General Settings in WordPress Dashboard > Rank Math > Titles & Meta > Products as:
    Single Product Title: Some text %title% %sep% some text
    Single Product Description: Some text %sep% %title% %sep% some text
    and this works with Yoast and I was expecting this to work with Rank Math as well

    Can you please recheck again. As per your logic, it should get populated basis point 3 in your answer. It works for Title. Only description has the issue.

    It does not make sense to add additional code.

    Thanks.

    Hello,

    The CSV file you shared contains a column with a short description. That’s why it is setting the meta description to that value, which falls to number 2 in the hierarchy.

    2. WooCommerce Excerpt or Product Short Description

    I hope that clears your doubts.

    Thank you.

    Sorry I do not want to argue and I need your help for a solution. I am willing to wait for your next plugin update if it will get fixed by then.

    The logic being used is FLAWED. When I create a template which applies to the TITLE, the same template & logic SHOULD apply to the Description as well.

    Even the settings section at General Settings in WordPress Dashboard > Rank Math > Titles & Meta > Products says “Default description for single Product pages. This can be changed on a per-post basis on the post editor screen.”

    When it says DEFAULT, anyone would expect this to work and have the flexibility to change it if desired. This is how it works in Yoast and other plugins that I have tried.

    Additionally I did not understand how/why does it show the correct template in Admin Product List? This would give a false security that the template has been applied correctly.

    Please discuss internally and let me know.

    Once again I would want to switch to Rank Math but this would need to be fixed.

    Thanks. Please do not sadden me on this!

    Hello,

    Please use the code that my colleague has provided to make Rank Math take the meta description from the Global Settings.

    And I was able to replicate the issue where it shows the SEO description as set in the Global Settings in the list view but it takes the product short description. I have forwarded this to the devs and will inform you once we have any updates regarding this.

    We really appreciate your patience in the meantime. Let us know if you need any further assistance.

    Thanks.

    Hello Jaideep,

    I CANNOT use the code due to the observation that I cannot see the ACTUAL meta in the front end and it would lead to errors by my team creating products on my store.

    Please note that the filter may not be visible while editing the products as it only works when your products load in a browser. You can check the published/saved product meta description via the page’s source code.

    I will wait for you to fix your plugin. Till then I am FORCED to continue to use Yoast 😢

    Hello,

    We have identified the product list view of the SEO description as a bug and are working on resolving it. We will soon release an update with a fix and will inform you here. You can also keep an eye on our changelog to get notified about the latest features and updates: https://rankmath.com/changelog/

    Thanks and don’t hesitate to get in touch in case you need any other assistance.

    Hi Jaidepp,

    Just so that I understand CLEARLY, in your next update, are you fixing?

    A. The bug in Admin Product List view where Description Meta shows some values different than actual Product Description Meta?

    OR

    B. The issue of Description Meta not using values as entered in General Settings in WordPress Dashboard > Rank Math > Titles & Meta > Products says “Default description for single Product pages. This can be changed on a per-post basis on the post editor screen.”

    OR

    C. Both of the above?

    Hello,

    We are working on resolving the issue with the product list view.

    For the order of setting the meta description, I have also forwarded this as a feature request to the devs and they will consider it. If your suggestion is something we decide to include in a future update, we will let you know.

    Hope this helps. Let us know if you need any further assistance.

    Thanks.

    Hi,

    This is a disappointing reply!

    For the order of setting the meta description, I have also forwarded this as a feature request to the devs and they will consider it. If your suggestion is something we decide to include in a future update, we will let you know.

    I hope you realize that NOBODY will create a Woocommerce product with a BLANK Short Description for your description Meta template to get used as per your current logic! It JUST DOES NOT make any business sense!

    Also it is a wasted effort to copy paste this Description meta template in EACH product while creating one!

    You should SIMPLY replicate the function as used in Yoast – Display the Description meta template, let the user DECIDE if they want to change it!

    One of the reasons I was attracted to Rank Math was the USER CHOICE. Looks like you are deviating from this philosophy. SAD!

    Never mind! Good Luck!

    Hello,

    We really appreciate your feedback and we have provided you with the code you can use to change the logic of the selection of WooCommerce Product Meta descriptions.

    You are still being offered a choice here to choose the way plugin works and I don’t know if any other plugin offers the level of control we offer.

    But, it seems like you have already made up your mind. We would love to have you again if you change your mind.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 13 replies - 1 through 13 (of 13 total)

The ticket ‘Woocommerce Product via CSV upload – Description Meta not updated’ is closed to new replies.