Woocommerce – override wc_create_new_customer
It's look like impossible to override this function. I'm trying to send the created user id, mail and password to another database so I added this hook : function ex_create_new_customer( $email,...
View ArticleWooCommerce Fixed Coupon Price
I am using WooCommerce, and how create two fixed price for one product ? 1) standart price product2) coupon using fixed price If user enter coupon code, will show coupon fixed price, else standart...
View ArticleCustomizing Woocoomerce Cart page
Hi I want to add checkbox on my Cart page of woocommerce when user check the box it will automatically subscribe them for my product. I have bought woocommerce subcriber plugin but I don't know how to...
View ArticleDisplaying a custom notice only on some Email notifications
I use on WooCommerce a custom field days_manufacture for each product with different (integer) values. Also I use this code that displays a message on emails notifications with the highest value of...
View ArticleForwarding WooCommerce 'Shop' page to another page on a site
As part of our sitemap (using WooCommerce), we don't want to have a page at /shop/. Instead, our menu just links directly through to the shop categories. Because of this, I want to use PHP to forward...
View ArticleWoocommerce Integration Settings API
I'm not really sure whether this needs to go in WooCommerce, WordPress or PHP questions, I also don't really know what to call it as I have no idea what is going wrong, but hopefully one of you...
View ArticleDisplay a Tab on the woocommerce my account page conditionally
Hello I was able to create a custom endpoint on the woocommerce my account page: function my_custom_my_account_menu_items( $items ) { $items = array( 'dashboard' => __( 'Dashboard', 'woocommerce' ),...
View ArticleChange role and user meta value after purchase of specific product on...
On our WooCommerce store we have a specific product that when purchased and the order confirmed changes the user role to a 'club' member (premium membership). We also need to now assign a unique member...
View ArticleUnsubscribe link in woocommerce email-footer.php
I tried add unsubscribe link to email-footer.php, but can't get recipient email. My code did not work, but maybe can help understand what I need: <?php$recipient = get_recipient()?><a...
View ArticleLooking to edit a woocommerce action – can't figure out where the action is...
I'm trying to add the product search bar function (get_product_search_form();) to the archive sorting action for Woocommerce, so it nicely fits in without being in between the woocommerce-message...
View ArticleTranslate Multi Lingue Header Top and Header Main
How can I translate the header-main and the header-top of a page? Link: novosite.iqnus.com.br Maybe there is some hook to add in the functions.php file. Thanks. Solution: 0) Read the translation docs:...
View ArticleChecking that one of multiple mandatory products categories are in cart
I have to check if one of my two mandatory products categories is in cart. I have customized the code from this answer: Allow checkout only when a product of a mandatory category is in cart But with my...
View ArticleVAT number test
can anyone tell me how to apply a test on the entered vat number in the checkout page.I need to test if it is French client pay TTC if not French but still from the UE he will pay HT Can any one help...
View ArticleResized woocommerce image size but product box remains too large
Hello everyone and thanks in advance for your help. Background: I am a non-programmer. Past problem: My wordpress site theme was not optimized for woocommerce. Consequently, the image sizes of products...
View ArticleDifferent Paypal accounts depending on product
I'm currently testing Woocommerce on my WordPress site, and I'd like to know if it is possible to have two Paypal accounts linked to your shop. The idea would be to dedicate one account for a type of...
View ArticleError with Woocommerce short description in category page
This is the code I'm using and it appears to work correctly when log in add_action('woocommerce_after_shop_loop_item_title', 'lk_woocommerce_product_excerpt', 35, 2);if...
View Articlehow to hide all categories with a hook WooCommerce shop page
i just need to hide/remove categories in my shop page under my picture with a simple hook that what i want here my picture thank in advance Solution: I found this tutorial that sounds like it would...
View ArticleWooCommerce Rest API
The below code looks for categories in the products directory. How can I change this code to first look in products/categories and if null, look in shop/categories. I need this to work in...
View ArticleChanging WooCommerce buy button link?
So I already have set up my WooCommerce child theme and organized the website with dummy data. I can't find a way to change the link from the "Add to Cart" to an external link.I want it so that each...
View ArticleChange total woocomerce order weight
I need change total weight of order in woocommerce website. For example: I have a 3 product in a cart: 1 – 30g; 2 – 35; 3 – 35g; total = 30+35+35 = 100g, but I want to add package weight to total...
View Article