Optimal Setting for Woocomerce Store

#72953
  • Resolved Raw Price
    Rank Math free

    Dear Rank Math Team,
    I am running a Ecommerce Store at WordPress with the help of Woocommerce, Searched for SEO Plugins and found Rank Math is Buzzing these days due to thier Advance features. So I decided to give a try and jump in to setting. I found the settings are quite in details, so i applied settings by the help of totorials provided on different blogs & sites including your’s. But I failed to gain the score beyond 14. I am continuously looking for a specific guide for woocommerce store like me, didn’t find any result as most of the suitable for blogging site as wordpress is more popular for that. Request you to kindly provide any doc available specially for woocomerce store.

    I also do not understand the Slugs provide to make default settings like below, which one works for what and what content will consider in Meta Desc. If possible please relaase a DOC explaing thier usage.
    %sitedesc%
    %seo_description%
    %term_description%
    %customterm_desc(taxonomy-name)%
    %user_description%
    %customterm_desc(product_type)%
    %customterm_desc(product_visibility)%
    %customterm_desc(product_cat)%
    %customterm_desc(product_tag)%
    %customterm_desc(product_shipping_class)%
    %customterm_desc(pa_colors)%
    %customterm_desc(pa_sizes)%

    Link of my website is in Sensitive Data Section. rawprice.in

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thanks for getting in touch with me.

    There are no special instructions for doing WooCommerce SEO. You can follow this one to optimize your product pages:
    https://rankmath.com/kb/score-100-in-tests/ (but do not follow them religiously, these are just guidelines)

    Then, check your WooCommerce SEO specific settings at WordPress Dashboard ⇒ Rank Math ⇒ General Settings ⇒ WooCommerce SEO. Make the changes there as required.

    Finally, go to WordPress Dashboard ⇒ Rank Math ⇒ Titles & Meta ⇒ Products and choose the appropriate template for your product titles and Meta descriptions.

    Most of the SEO is automated and even the Schema is added automatically.

    Rank Math takes the Schema data from your product pages automatically and turns it into Schema-ready content. Likewise, the aggregateRating and review fields are taken from your actual product reviews that your buyers/customers leave on your products.
    https://i.rankmath.com/Ni50EF

    If you don’t have any reviews yet, that is going to show up as a warning in the Schema testing tool. That’s because Google will actually look for those fields.

    Please acquire some reviews and ratings to get rid of the aggregateRating and review warnings.

    You can fix the SKU and availability issue quickly as well: https://i.rankmath.com/wtM5aM

    To fix the brand warning, head over to WordPress Dashboard ⇒ Rank Math ⇒ General Settings ⇒ WooCommerce and choose from any of the available fields to use as your product’s brands:
    https://i.rankmath.com/Atiq6s

    If you want to use a custom value for your Brands, you can do that by using the following code in your theme’s functions.php file:
    https://pastebin.com/Uc2wmTSL

    Replace the “Rank Math” text with your actual brand name then run your website through the Structured Data Testing tool once again after clearing the cache.

    As for the variables:
    %sitedesc% – gets the site description, which can be the description set for your home page or the tagline
    %seo_description% – gets the set meta description
    %term_description% – gets the description of the subject term
    %user_description% – gets user defined description
    %customterm related variables will get data from the specified custom taxonomy/term

    You can leave the settings to the defaults in Titles & Meta, where %seo_description% is usually the setting.

    Hope that helps and please do not hesitate to let me know if you need our assistance with anything else.

    Thanks for reply,

    There are 2 descriptions for Woocommerce Product, One is Short Description whose variable is %wc_shortdesc% but which variable to use for the another description.

    Thanks
    dheeraj

    Alberto
    Rank Math business

    Hello,

    Which is the other description you mean? Could you share a screenshot showing us the one you mean?

    Looking forward to help you.

    Alberto
    Rank Math business

    Hello,

    Thank you for contacting Rank Math today.

    That is not an option Rank Math offers by default but since you can create a custom var in Rank Math, you could create a custom var that gets the long description in the current product by using the following filter (you will need to modify it to fit your needs):

    /**
     * Filter to add custom variables
     */
    add_filter( 'rank_math/vars/replacements', function( $vars ) {
     return $vars;
    });

    Looking forward to helping you. Thank you.

    Thanks for response.

    I am less techinical persona. I would appreciate if you could provide steps to apply this code.

    Thanks..

    Alberto
    Rank Math business

    Hello,

    /**
     * Action: 'rank_math/vars/register_extra_replacements' - Allows adding extra variables.
     */add_action( 'rank_math/vars/register_extra_replacements', function(){
     rank_math_register_var_replacement(
     'woo_full_desc',
     [
     'name'        => esc_html__( 'WooCommerce Description', 'rank-math' ),
     'description' => esc_html__( 'WooCommerce Description', 'rank-math' ),
     'variable'    => 'woo_full_desc',
     'example'     => 'woo_full_desc_callback()',
     ],
     'woo_full_desc_callback()'
     );
    });
    
    function woo_full_desc_callback() {
      if(is_product()){
        global $product;
        $id = $product->get_id();
        $product_description = get_post($id)->post_content;
        // Do here any changes to the $product_description var you want
        return $product_description;
      }
      return ''; // Since it is not a product, we can't get a product description
    }

    I did that quick code for you, it creates a new var called %woo_full_desc% that should give you the full product description. If you need any modification, you will be able to do it easily from that code.

    Looking forward to help you.

    Hi Albetrto,

    I am new to Code and all, but i tired appling this code by using child theme in function.php file. And suggested variable assigned to product but nothing happened.

    When I tried using this in Header section, This code has started showing on my website frontend to useres Above Header.

    Please suggest

    If you need admin access of my website then ii can provide, so that fixes can be done more easily.

    thanks

    Alberto
    Rank Math business

    Hello,

    Yes, if you want, we can try to add it for you. To do it, please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?
    Request you to please review the settings fits best for woocommerce store

    Thank you.

    • This reply was modified 4 years, 1 month ago by Raw Price.
    Alberto
    Rank Math business

    Hello,

    I added that code for you in your child theme. Could you test the new var (%woo_full_desc%) to check if it is working now for you?

    Looking forward to help you.

    Hi,
    Thank for making changes but still said variable is not working. It has already applied as default for products. Nothing changed in score for particular box, showing 0.

    Hi Alberto,

    I checked you re-attempet to fixup things, but still no socre improve and data fectch showing. Could your please priroties.

    Thanks

    Hello,

    I logged into your site and I changed the code to the following:

    
    add_action( 'rank_math/vars/register_extra_replacements', function() {
    	rank_math_register_var_replacement(
    		'woo_full_desc',
    		[
    			'name'        => esc_html__( 'Woo Full Desc.', 'rank-math' ),
    			'description' => esc_html__( 'Woo Full Description...', 'rank-math' ),
    			'variable'    => 'woo_full_desc',
    			'example'     => woo_full_desc_callback(),
    		],
    		'woo_full_desc_callback',
    	);
    } );
    function woo_full_desc_callback() {
    	global $post;
    	if ( empty( $post ) ) {
    		return 'Product Description';
    	}
    
    	return wp_strip_all_tags( $post->post_content );
    }
    

    Now on backend, it shows the preview but on the frontend the description tag is still not appearing. To me it looks like 1 of the 37 plugins active on your site is removing the description tag from the frontend.

    To determine that, can you please follow this troubleshooting guide?
    https://rankmath.com/kb/check-plugin-conflicts/

    Only the site admin would know and your users won’t be affected by this troubleshooting. Please let us know if you find anything.

    Looking forward to helping you. Thank you.

    Hi,

    I am unable to short this out by using your troubleshoot guide. if you could help in next 24 hr then ok, else i have to switch for another plugin.

    Sorry.

    Thanks for putting your efforts

    Hi,

    I am unable to short this out by using your troubleshoot guide. if you could help in next 24 hr then ok, else i have to switch for another plugin.

    Sorry.

    Thanks for putting your efforts

    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 15 replies - 1 through 15 (of 20 total)

The ticket ‘Optimal Setting for Woocomerce Store’ is closed to new replies.