I am struggling with any task requiring the smallest bit of brain function. The task I’m currently struggling with is adding the AOS library to my site on WordPress. I added the following code to my …
Tag: wordpress
Get the count of newly published product (today) in WooCommerce [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago. Improve this question I have a WooCommerce site where products are considered as trade/deal. The…
Exclude WooCommerce virtual product from counting towards free delivery
On my WordPress/WooCommerce website we offer free delivery for all orders over 500 DKK. This is working perfectly fine. We have made a giftcard as a virtual product, seeing as we sent all of our …
Hook woocommerce price in backend order edition
I need to change item product prices in Woocommerce Backend Order. I tried tu use the following hook, but I have a problem trying to obtain the order id. Any suggestion? Thanks in advance! Complete problem: The complete problem is as follows. I am using a plugin that adds a field to the product called wholesa…
Get all Product Variations based on one default attribute value in WooCommerce
Following Loic’s workflow here Can I get all the variations related to the product basing on one particular variation in default value. Example: Get all variations with attribute_pa_sizes similar to the default value’s attribute_pa_sizes echo $variation_values[‘attributes’][‘attr…
PHP Notice: Use of undefined constant php – assumed ‘php’
Was just editing a site I’m working on to include the subscription form in the footer.php rather than just the homepage. I made the changes on the local server then moved it to my live environment (…
Creating WooCommerce product variation adds an empty attribute value
When adding variations to a WooCommerce product it is adding in a blank attribute. Meaning that when I try to add in my own attribute it gets appended to an existing array. Example code I am running: Then when I var_dump($product_variation); I get the following: So when I view the product in WooCommerce admin…
Display Custom Total Saving in generated invoice in WooCommerce 3
In WooCommerce I am using WooCommerce Print Invoices & Packing lists plugin… How can I display the total savings of any order in the invoices generated by this plugin ? 1 year ago I have been using this code based on [this answer] and that was working before I updated WooCommerce : So now it doesn’t…
How to configure WP Mail SMTP plugin for localhost
I am struggle for 2 days with this problem. I am going to send email from my localhost using WordPress. I am using wp_mail() function so I decided to use WP Mail SMTP plugin. But I have a problem …
Woocommerce: custom jquery event after added to cart
I’m trying (in archive) handle event after some product was added to cart (1 action on picture), I want catch that moment and update “Total number of products” (3 action on picture) of my mini cart in navigation menu. (With action 2 is all ok) Not working for me with second code: My custom c…