I am using woocommerce and I have created a login and register page. I am not using any plugin for this. My issue is, I have to check and redirect to log in before checkout I refer to this code(WooCommerce check and redirect to login before checkout) I am using the below code but when I click Proceed to check…
Tag: wordpress
WooCommerce – removing country field from my-account page prevents from saving address
I sell and ship products only to one country so I don’t want to display billing_country and shipping_country field to the customers. I removed the fields from both checkout and my-account addresses …
Display a product custom field only in WooCommerce Admin single orders
This question follows How to show a product custom field (custom SKU) in WooCommerce orders answer to my previous question. How do I make a product custom field articleid (custom SKU) to be visible only in Admin Order edit pages for each order item? Also, it does not work for manual orders. How to display a p…
How to show a product custom field (custom SKU) in WooCommerce orders
Is there a way to display my custom SKU under each product on the WooCommerce order page? The custom sku displays fine when I edit the product, but it does not display in the order page for the product. I need this information to show on the order so that Zapier can match it with the Visma Account Software Ar…
Uncaught SyntaxError: missing ) after argument list generating the dynamic HTML on click event
I am using WordPress and I have to show the dynamic fields on my custom post type after clicking on the button. So I used the below code Now, my issue is when I click on Add more fields then I am getting an error in the console Uncaught SyntaxError: missing ) after argument list I found the issue in
Redirect to shop if cart is emptied on cart page in WooCommerce 3+
In WooCommerce I want to redirect from cart to shop page when cart is empty and I am using this code: function cart_empty_redirect_to_shop(){ global $woocommerce; if ( is_page(‘cart’) and !…
Hide specific variation attributes displayed in WooCommerce cart items
I want to hide specific variations from the cart page in Woocommerce, I was able to hide all the variation names but I want to keep 3 that need to be shown. The following code shows all the variations …
WordPress same custom post template for different languages
I have a WordPress webpage where a former web developer created a custom post type using Pods pulgin, on this custom post type there is a post that we can call “Ejemplo”, that post uses content-single-ejemplo.php to be build but the english version “Example” is being created with conte…
Replace add to cart button based on WooCommerce product weight [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question I’m building an online store with wordpress and woocommerce. I need …
Add custom settings to WooCommerce Products tab
I’m using WordPress and WooCommerce for my e-commerce. I need to duplicate the “Shop Page” option (under WooCommerce > Settings > Products > General), creating a new option “Outlet Page” after the first, which the user can populate late with the desired page. How can I d…