Skip to content
Advertisement

Tag: woocommerce

PHP echo mehod ignores HTML part

I have written the following PHP code: the_field() is a function of “advanced custom fields” Plugin. https://www.advancedcustomfields.com/resources/the_field/ The problem is that only the variable is output, but not the HTML part. How can I solve the problem? Answer I don’t know why, but the following code worked:

Display related products using a shortcode on WooCommerce My account Dashboard

I’m trying to display related products in My account Dashboard page. I followed this WooCommerce Shortcodes documentation. I tried to use the following code: This does not display the related products. But when I try to display products in specific category like following, it works: Kindly any help to resolve this? Answer Note that related products shortcode need to be

Enhanced WooCommerce Custom Fields for Variations

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 display. Added to functions.php to display variation Answer Note that

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 values: ‘New’ ‘Refurbished’ ‘Used’. So if I do this (get and output all variation

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.php but the customer details are outputted only through a foreach loop and the variable $fields is not

Advertisement