I create a redirect and let it use 404 category and return 410(deleted page) status code. However, the hit count of the redirect is always 0, even after I test the URL manually. Why?
It appears it’s trying to divide a percentage by the cart total which happens to be 0.
LINE 52:
$porcentage = $total_discount_for_coupons / WC()->cart->get_subtotal(); //
Changing it to this fixes the error for me.
$porcentage = 0;
if(WC()->cart->get_subtotal() > 0) {
$porcentage = $total_discount_for_coupons / WC()->cart->get_subtotal(); //
}
]]>Because without negative values, the SVGs are sometimes not displayed correctly.
]]>Is there a way to have the month always be 2-digits (01-12) and the date also be 2-digits (01-31)?
Any help would be greatly appreciated.
Thanks so much in advance!
]]>Thanks in advance.
]]>On our website we have products with 0% tax rate and they have to be added up in the total row and show tax base, even if the tax is zero, for accounting purposes.
The products are correctly set with 0% VAT rate and I’m using Modern template.
Template in customizer set like this: https://ibb.co/CPm05Cq
And the final invoice looks like this: https://ibb.co/tHQJsLM
Is there any way how to force it to show the tax base the same way how other rates are displayed? Is there any snippets for it? And if so where and how should I place it since I have no experience with coding.
Thank you all in advance!
]]>I’m facing an issue with tables that I can’t figure out. Whenever a table entry starts with a leading 0 (so far, this seems to be the common property), the entry is not visible on iPhones (11 and 13 tested). As far as I’m aware, Desktops, Firefox and Chrome work. Unfortunately, I can’t personally test the site on a physical iPhone, the browser emulation does show the table entries, it is not a display size issue.
This happens on the latest WordPress version with the block theme twentyfour without any other plugins active.
So far, I’ve tried replacing all number values with new ones copied form a text editor (in case there was some formatting) and to set a fixed cell width in the table settings, but that didn’t succeed. The only way to circumvent the issue is to add something other than a 0 in front of the number (like just a “#”), but that’s not a solution.
Is this a known issue or is there a fix?
Steps to reproduce should be:
– Install wordpress from the official zip
– Activate the twentyfour theme
– Create a site with a table (with multiple cols/rows)
– Enter numbers with a leading 0
– View site on an iPhone