Skip to content
Advertisement

Tag: woocommerce

Find the Function that saves the image of product variation-WooCommerce

I’m trying to update the function that handles the upload of the image to variation product ![image variation] https://i.imgur.com/reNn6x7.png I thought that the code that handles it is : inside the class-wc-rest-product-variations-controller.php but any modification at this function is not changing the way that the file is uploaded. the idea is to upload the image and apply the same variation

Add rows to Single product Additional information table in WooCommerce 3.6

I am trying to add a row to Single product Additional information table. Actually is there any hooks or filter to do this? I have searched the hook but can’t figure out the solution. Any help is appreciated. Answer Since WooCommerce version 3.6, you can use woocommerce_display_product_attributes filter hook in this simple way, to add custom label/value pairs in “Additional

woocommerce build categories tree

I have this categories into my wordpress (woocommerce), and I need to build a menĂ¹ like this using data retrieved from woocommerce api. What’s an efficient way to build a menĂ¹ like this? I have tried to inspect wordpress code without figured out. This API lets me retrieve all product categories. https://woocommerce.github.io/woocommerce-rest-api-docs/#list-all-product-categories this is the object obtained from request: Answer

Advertisement