[OFFER ALERT!] This Halloween, Get Any Premium Theme for Just $19 [GET IT NOW]
Jump to content

[Rank Math SEO Plugin] Woocommerce cart page proceed to checkout form disabled


zeeshiimeher
 Share

Recommended Posts

Hi rank math disabled my cart page proceed to checkout and summary form here is the screenshots to easily understand what i mean and i am thinking its from the very first installation of rank math seo plugin which i installed about 15 to 20 days ago and from now i didnt get any sale so i was trying to find why i am not getting sales then i suddenly yesterdy trying to place a order but after adding prducrt cart i go to cart page then there was nothing to proceed a order to checkout page

one is when rank math activated

https://ibb.co/bMBop9

and the one with deactivated
https://ibb.co/e4zKwp

Link to comment
Share on other sites

  • Support

Hello,

Thank you for contacting MyThemeShop today.

Please share your login details in the "Sensitive Data" section by editing your first post on this ticket and follow the instructions shown in the screenshot below:
sensitive.jpg

Please make a reply once you update the details, so we get notified.

Looking forward to helping you. Thank you.


🏁Rank #1 on Google With our WordPress SEO Plugin.

Score a 💯on PageSpeed and Dominate Search Rankings.

✏ Editing theme files? Please create a child theme to make your changes update-proof.

Link to comment
Share on other sites

  • Support

Hello,

Sorry for an unwanted delay but we were checking the compatibility and it seems like that the Hide Price Until Login plugin is causing a conflict.

Do you have any alternative plugin for that? Otherwise, we will dig further to check the compatibility.

Looking forward to helping you. Thank you.


🏁Rank #1 on Google With our WordPress SEO Plugin

Score a 💯on PageSpeed and Dominate Search Rankings.

✏ Editing theme files? Please create a child theme to make your changes update-proof.

Link to comment
Share on other sites

  • Support

Hello,

The other alternative is to use Woocommerce hooks and filters to hide prices for non-logged in users. Add below code to your active theme's functions.php file to hide price:

/**
 * @snippet       Hide Price & Add to Cart for Logged Out Users
 */
 
add_action( 'init', 'rank_math_hide_price_add_cart_not_logged_in' );
 
function rank_math_hide_price_add_cart_not_logged_in() { 
if ( !is_user_logged_in() ) {       
 remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
 remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
 remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
 remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );  
 add_action( 'woocommerce_single_product_summary', 'rank_math_print_login_to_see', 31 );
 add_action( 'woocommerce_after_shop_loop_item', 'rank_math_print_login_to_see', 11 );
}
}
 
function rank_math_print_login_to_see() {
echo '<a href="' . get_permalink(wc_get_page_id('myaccount')) . '">' . __('Login to see prices', 'theme_name') . '</a>';
}

Hope that helps. Thank you.


🏁Rank #1 on Google With our WordPress SEO Plugin.

Score a 💯on PageSpeed and Dominate Search Rankings.

✏ Editing theme files? Please create a child theme to make your changes update-proof.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...