I have a simple function that used to work that I got online somewhere a few years back. It allows me to manually change the currency conversion rate for EUR (€, Euro). Problem now is this: Whereof the notice refers to this line: This is what I need help fixing. This is the complete code: Answer Since WooComm…
Tag: wordpress
PHP echo the lowest value from a list of dynamically generated array
I’m using a WordPress shopping theme and it displays the products details (price, colors etc) as json scripts, however I need to display at least the price as text. The developer was not very helpful and my php knowledge is limited to none, so I’m hoping this will be an easy/fast fix for someone h…
PHP weird curly brace syntax?
Does anyone know if PHP has an alternate curly brace syntax? I’ve come across a PHP file with a weird syntax I’ve never seen before. It’s being used in a WordPress theme. Here’s an example of the …
Is it possible to use WordPress theme preview as main website source that will work all functions?
I’m new in WordPress I misunderstand one thing about the theme use in WordPress For example, I wanna create the as same website as this I purchased this template. But when I installed the theme in WordPress it shows me the default Index.php file with little info, used my purchased theme And when I purch…
net::ERR_INSUFFICIENT_RESOURCES error on ajax clock
I have an ajax php clock set up and for some reason it’s giving me thousands of net::ERR_INSUFFICIENT_RESOURCES errors in my console. What’s the reason behind this? Code that calls out the clock function Melbourne.php Answer You misplaced the setInterval delay. You provided it to the $(document).r…
WooCommerce: Add Custom order statuses with custom email notifications
Using Add a new order status that Send an email notification in WooCommerce 4+ answer code, I have been able to get an email notification for ONE custom status however cannot get my head around how I would go about being able to send the email notification for BOTH custom statuses. See below the example codes…
WooCommerce: Set country by default in checkout page for unlogged users
How to make the country default for regular (unregistered users). But if the buyer has a personal account and entered the country there, he would not be thrown into default in checkout? I have tried …
Show created and modified product date on WooCommerce pages
I’m looking for solution to display products current date on the shop page. I have tried with this, but it shows nothing at all Any help is appreciated. Answer The following code shows the date the product was created and modified on the single product page and archive/Shop page Note: the time/date disp…
Display a custom delivery notice on WooCommerce orders and email notifications
With the following code I display a custom message on WooCommerce checkout page. When a customer places an order on a Saturday and Sunday, the order will be delivered on the next Monday. If a customer …
Display vendor store-name (Dokan) on WooCommerce admin order preview
We add vendor information in the admin order details for each order via: WooCommerce show vendor store-name (Dokan) in admin order details overview Now I also want to add this information also in the order preview. I found this answer Display custom data on Woocommerce admin order preview We change the hook t…