Category : hook-woocommerce

I have edited the wp_query on the product category page in woocommerce. I want to display pagination manually. But when clicking on next, it redirects to the 2nd page, but instead of products, it goes to the page not found. URL is formed as https:/mysite-name/product-category/category-name/page/2/. I have tried with this format also https:/mysite-name/product-category/category-name/?product-page=2. But it ..

Read more

I am using woocommerce_email_attachments dedicated hook to attach items downloadable files to WooCommerce Customer completed order email notification. My problem is that I got forbidden 403, because the code is getting from the file URL instead of getting it from the disk. How can I go from file_get_contents("https://closte.com/images/image1.jpg") to file_get_contents(ABSPATH . ‘/images/image1.jpg’) ? This is ..

Read more