Redirect to add-to-cart url Instead of showing a single product page, we can add the product to shopping cart, when someone clicks on the single product link or tries to browse the product page with a direct link. This only works for simple product type and simple subscription product type,… Read More »
Tag: wc_get_page_permalink
WooCommerce redirect to custom page after registration
When registrations are open without purchasing any product, by default WooCommerce uses registration form on my-account page. After successful registration, users are redirected to my-account page. Might not be the best way to showcase your shop. Some user might want to redirect recently registered users to a custom page, some… Read More »
Redirect WooCommerce Category and Tag archives to shop page
Not every WooCommerce store needs or wants a category or tag archive. is_product_category detects if current page is a WooCommerce category archive or not. Similarly, is_product_tag detects if it a product tag archive or not. So with below small snippet we can redirect category and tag archives to shop page…. Read More »
WooCommerce login redirect to custom page
When you use WooCommerce login form (usually my-account page), by default users are redirected to my-account page after successful login. Might not be the best way to showcase your shop. Some user might want to redirect logged in users to a custom page, some might consider redirecting to shop page…. Read More »