superkot
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: jQuery script not loadingYou must be doing something wrong. Your code works perfectly fine for me, you just need to enqueue it properly. Copypasting script video: https://cloud.mail.ru/public/2Wjm/5gRDms6xp. Anyway, if you fail to enqueue it as separate file, you can simply add this script to your footer, its not big so it wont affect your site performance.
Forum: Fixing WordPress
In reply to: jQuery script not loadingYour script is ok if you execute is by pasting in console, so the problem is with enqueueing. Why would you use array(‘javascript’)? Your dependency is jQuery. Anyway, try simplier first:
wp_enqueue_script( 'myscript', get_template_directory_uri() . '/js/script.js', array('jquery') );
Your question is totally confusing. But yes, if you need checkout refresh, you need to trigger update_checkout.
An option then could be to use both positive and negative fees simultaneously (with negative one including the “Eolie Iva” value, e. g. -3.02 in this case). Although that might look confusing to the customers.
$discount = $cart->subtotal * 0.15; $cart->add_fee( __( 'Pagamento Eolie') , $discount, true, 'Eolie Iva 22%' ); $discount = $cart->subtotal * 0.15 * -1.22; $cart->add_fee( __( '??? whatever ???') , $discount, true, '' );
The extra fee line could be hidden with CSS or Javascript, but it would be more trouble to hide it in order emails and My account though.
It is supposed to show extra set of address fields, so that the shipping person/address can be different from billing person/address. You should be able to see these fields in the web inspector or page source, as they are present on the checkout page from the beginning, unless customized otherwise.
The behavior you describe indicates there might be some errors in your theme or extra plugins you use.
If you mean you need a negative fee, change
$discount = $cart->subtotal * 0.15;
to
$discount = $cart->subtotal * -0.15;
So the result would be
…
Pagamento Eolie: -€2.48
…
Totale: €22.04I dont know about Eolie Iva 22% (stimati per Italia) though, what is adding it? Would need to change to negative as well.
Forum: Fixing WordPress
In reply to: Resized images much bigger than original onesIf the issue is critical, you can redesign your theme to use only manually uploaded images, or manually download –> compress -> upload the thumbnails, or use a CDN service like Cloudflare which will be doing image compression for your visitors.
Any kind of image compression that can be done by PHP is inferior to anything provided by a dedicated software, since web servers are not meant for running image compression, so by using it you either sacrifice quality or live with larger file sizes.
Forum: Fixing WordPress
In reply to: Resized images much bigger than original onesDoes your site (theme) even use all these images? If the disk space is your primary concern, you may try Image Sizes plugin to disable creation of extra unnecessary sizes.
Avada is a paid theme, you need to ask their support for help.
Forum: Fixing WordPress
In reply to: jQuery script not loadingWordpress defaults to a jQuery version where usage of $ is not defined. So you need either add that to your script yourself or replace all calls to jQuery functions by changing $(…) to jQuery(…).
Forum: Fixing WordPress
In reply to: Resized images much bigger than original onesThe topic has all the explanations you need. There are ways around it, such as:
– Using only full size images (ignoring downsized versions in your theme or even disabling their generation with custom code).
– Installing an image opitimization plugin. WP Smush is a number one choice for many WP users.Woocommerce is going to remind you with a notice when your customized versions of template files become outdated (and point at the exact files).
Forum: Plugins
In reply to: [WooCommerce] PHP error for get_average_ratingWhich page or action exactly is causing this error?
Forum: Plugins
In reply to: [WooCommerce] Slow dashboard due to Slow Comment count query.What is the total number of comments you have?
Forum: Plugins
In reply to: [WooCommerce] Slow chekoutI’ve made a test order on your site (4136) and there was nothing like 9 seconds delay, everything went ok, although the site in general is certainly not very fast.