Woocommerce redirect redirection if user is not registered

I am working on WP WooCommerce, but now it causes a problem, for example, if the user is not logged in or did not have any product in the basket, then https://www.asura.com/my-account/ creates Loop Redirect.

I tried with is_ssl (), but still could not fix it, I am also tired of the .htaccess rules, but I am not very good at the .htaccess rules, so it does not work for me ...

but if the user is logged in or has at least one product in the basket, he can access this page ... now I can not understand the cause of the problem.

Please help me...

+4
source share
2 answers

I have the same problem with u. i fixed it

To create a new page with my short message code from Woocomerce. and the last removed page contains a short code for my Woocomerce account.

Then set my account page in Woocomerce setup. Happy new

0
source

First, make sure your account page has this [woocommerce_my_account]

After that, go to WooCommerce> Settings> Pages (for WooCommerce 2.2 or earlier) or WooCommerce> Settings> Accounts (for WooCommerce 2.3) and make sure you select the same page for "My Account Page" in the drop-down the list next to her.

0
source

Source: https://habr.com/ru/post/1502949/


All Articles