Using the Remi Coulson tutorial, a custom field has been added for product variations. This works, however the custom field is positioned by the add-to-cart button. I wish to position it within Additional Information tab. I have tried adding the front end code to the additional-information.php but it does not…
Tag: wordpress
output the_field of related posts with ACF Relationship
and first off all, thanks for help. I have to following code to display related posts from one custom post type to another with ACF Relationships. what i want to know, is it possible and how can i …
Change product name for generated variable products in WooCommerce
TL;DR version How do I change the name that is automatically generated for variable products? Detailed version The product variations all get names based on the variable attributes they generate from. Example Let’s say that there’s the varible product: Vase. Vase has the attribute: Condition, with…
WordPress posts in menu and custom classes
I’m new to WordPress and I’m trying to convert a pure HTML Theme to a WordPress theme. But I have a problem that I can’t find a solution for. In the nav menu, I can’t find a way to selectively add classes to the ul and li elements that WordPress generates as a menu. Basically, I need t…
Hide all products with a specific stock status from WooCommerce catalog
I’m using Flatsome template on WordPress and Woocommerce site. I also create custom stock status (example noproduzione, used when a product is not created anymore from manufacturer). But I don’t want to show this products (noproduzione stock status) on my site (only in admin pages). I’m usin…
Reorder customer details in WooCommerce email notifications
I am trying to change the order of the customer details fields displayed in the Woocommerce mail sent to both customer and admin after purchase (table name: addresses). I checked the file responsible of outputting the billing & shipping fields which is plugins/woocommerce/templates/email-customer-details.…
WordPress Woo Minicart plugin with Polylang problem for cart strings and cart page link for different languages
I am trying to change the values of the strings in the Woo Minicart plugin https://wordpress.org/support/plugin/woo-minicart/ for different languages using pll_current_language() of Polylang, but I have some trouble with Polylang and the Woo Minicart plugin. I will attach a video, because the strings change f…
WordPress dequeue scripts only on single page
My website is using map functionalities that slow the whole site down dramatically. I can dequeue them from the entire site with this add_action function: My goal now is to dequeue these scripts on all but one page “/add-listing” where I need them so that users can still input their location. Any …
Change payment card icons for WooCommerce Stripe in checkout
I would like to sort the Stripe displayed payment card icons in a different way in WooCommerce checkout. WooCommerce Stripe plugin support does not provide custom code support so they just gave me a code snippet to modify according to my needs. This code snippet changes out the Visa payment icon: Could someon…
WooCommerce programmatically created product ignores prices sorting filter
I have following function to create new woocommerce product on the frontend. parse_str($_POST[‘form_data’], $form_data); $insertPost = array( //’ID’ => $post_id, ‘post_title’ => …