Forum Replies Created
-
AuthorPosts
-
July 10, 2023 at 5:52 pm in reply to: Remove items from default WooCommerce Dropdown filter #1412971
Thanks Gunter,
Works as expected:
The working filters are below for functions.php
For other users comment out the lines that you dont want to remove.
NOTE If you comment out default – It causes a PHP error. So please keep default enabled.
// remove unused woo filters add_filter( 'avf_wc_product_order_dropdown_frontend', 'thinkjarvis_remove_sorting_option_woocommerce_shop' ); function thinkjarvis_remove_sorting_option_woocommerce_shop( $product_order ) { unset( $product_order['default'] ); unset( $product_order['menu_order'] ); unset( $product_order['title'] ); unset( $product_order['price'] ); unset( $product_order['date'] ); unset( $product_order['popularity'] ); unset( $product_order['rating'] ); unset( $product_order['relevance'] ); unset( $product_order['rand'] ); unset( $product_order['id'] ); return $product_order; }
-
This reply was modified 1 year, 8 months ago by
thinkjarvis.
-
This reply was modified 1 year, 8 months ago by
thinkjarvis.
Thanks Nikko,
Also reported the same issue.
I downgraded the site experiencing issues to 7.7.2 to restore functionality.https://kriesi.at/support/topic/compatibility-issue-woocommerce-7-8-cart-fragments/
Old releases of Woocommerce can be downloaded here:
https://developer.woocommerce.com/releases/Hi Gunter,
Thank you for this – There is no rush by the way I have just coded a workaround. It would help on several projects to be able to customise the titles of these links as I often use them for geographic locations and specific services.I’ll put a link in the private content to the test area for my current solution.
I’ve essentially created an Enfold Text box with a- list. I’ve then used css :before to show an icon before the text.
I’ve also added flex so I can put a column within a column.-
This reply was modified 1 year, 10 months ago by
thinkjarvis. Reason: extra info
Hi Yigit,
Really sorry about this – I think it is down to the way the categories are being ordered in the database.
Caused by WPAllImport Plugin.
I think I am going to have to manually re-order the categories in a WooCommerce CSV and re-upload them in the correct order.
Removing all categories and adding them again is still causing them to list in the wrong order in the Category field.I have no idea why. Even alphabetically the one it is picking shouldnt be the first!
I’ll do some more investigation work. But I now dont think it is caused by Enfold.
If I find anything that would lead me to suspect it is Enfold I’ll share more info on this post.See private data
This appears to have solved the problem thanks Gunter.
I have moved on from Key CDN and it looks like I will be using Stack Path as my CDN partner for all sites on my servers that require it.
This fix will also apply to any Edge Caching setup. Thank you for providing a fix.
You may close this issue.
February 2, 2023 at 10:41 am in reply to: Use custom post type to enable layout editor on category pages #1396363Thanks Ismael,
Redirects will be easier but I will probably create a custom post type so that I can organise the new pages more easily.I was looking for a way to preserve the category structure. Technically I think it is possible the way I have suggested but it relies on a lot of components so could become unstable if one of the plugins used is then no longer supported.
I’ll start with redirects for simplicity and a custom post type.
add_action('after_setup_theme', 'update_enfold_image_sizes'); function update_enfold_image_sizes() { add_image_size ('shop_thumbnail', 200, 0, false ); add_image_size ('shop_catalog', 450, 0, false); add_image_size ('shop_gallery_thumbnail', 300, 0, false); }
Found it.
I have a content partner providing imagery for thousands of products and they are all poorly cropped so i am trying to make it so that they will display correctly without having to be re-sized to a specific aspect ratio. I’ll share my solution on my other thread.
January 8, 2023 at 5:20 pm in reply to: Full list of unmerged CSS and JS files – WP-Rocket Exclusions List Creation #1377989@mike This will also help anyone using Flying Scripts as I believe this works in reverse? Where you have to specify the files you want to include rather than exclude.
January 8, 2023 at 5:10 pm in reply to: Full list of unmerged CSS and JS files – WP-Rocket Exclusions List Creation #1377988@mike totally forgot that I could do that thank you for getting back to me so soon!
I’ll go through the list and see if I can resolve the issue with shortcodes.js
I have a feeling that since the turn off animations on mobile devices was added as an option in Enfold > Performance – That this might be the cause of the issues I have encountered with the WP-Rocket official Enfold exclusions list. The instructions for Enfold have not changed for some time now and when I checked the line of code in shortcodes.js causing the issue it related to turning off mobile animcations.
Once I’ve done some testing I’ll update the ticket.
Hi Gunter,
Thanks I thought this was the case. It’s a good solution I have no complaints – The risk of breaking sites is too high I agree.
I’ll move people over as I go through their sites.
Thanks Gunter,
Happy New Year!
This problem will occur with all asset CDNs so really pleased with the fix above. Thank you for looking into this.
I’ll be looking at this again properly in a few weeks – Likely after 5.4 is launched.
My trial of Key CDN ends this week. I have decided to look for an alternative – The TTFB is actually a lot slower on the CDN resources than just using the server direct. I was also getting issues where KeyCDN refused to serve critical assets (Cache Miss) so I do not think it is the right solution at this stage. Moving on to Bunny CDN and Stack Path next. Trying to avoid CloudFlare because it is expensive at enterprise level.
I think I’ll end up using StackPath EdgeCaching or the new Bunny CDN Permacache. This means a copy of the entire site is held on their network not just static assets. Soves a cache miss problem and improves TTFB times globally because HTML gets cached. This is simillar to how CloudFlare works when used at DNS level. The irony is that my server here in the UK is outperforming a clients server over in America where they use WPEngine and CloudFlare. I get comparable global TTFB scores without a CDN – With the TTFB scores being much much better in the UK due to server location. So I do not think it is as good as people make out.
If after my trials I am still seeing cache misses and worse TTFB scores. I’ll just use something like AnyCast DNS to improve DNS resolution times instead and leave CDNs alone until I have a client who requires globally equal TTFB scores.
-
This reply was modified 2 years, 3 months ago by
thinkjarvis.
December 9, 2022 at 12:50 pm in reply to: x remove button in cart filled up and not showing properly #1375672I have also raised a ticket about this issue.
Solution/workaround is here.
https://kriesi.at/support/topic/bug-icons-misson-on-cart-page/It has been added to version 5.3 as a fix.
I hope this helps.
Thanks Yigit,
I’ll wait for the release now as I have put my css workaround across the server.This is one of those weird problems that no one has reported until now. I dont know how long this has been an issue because in order to troubleshoot it you have to take specific actions in the basket that most people wouldnt test – including me! Thank you for addressing the issue. It definitely pre-dates WP6 and Enfold 5.1.
Hopefully this thread will be useful to anyone else on older versions as well.
-
This reply was modified 2 years, 4 months ago by
thinkjarvis.
See below
-
This reply was modified 2 years, 4 months ago by
thinkjarvis.
Top man Thanks Yigit.
Cheers Yigit,
The workaround I provided above to hide the buttons works for now. I have applied this to all of my WooCommerce sites so the picker works.
Just checking this has made it only the bug fix request list.
Just checking has this made it onto the bug fix list?
Happy to help mate.Post up here if you have a solution for us to test.
Workaround to enable Spinbox defaults:
Place this into Quick CSS to add the default Spinbox controls to the basket page only and hide the JS plus/minus buttons.
This is WooCommerce default setting for the quantity field. If you remove .product-quantity from the css below and change it to .quantity it applies to the product pages as well.
/* For Chrome and Safari */ .product-quantity input[type="number"]::-webkit-outer-spin-button, .product-quantity input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: button !important; } /* For Firefox */ .product-quantity input[type="number"] { -moz-appearance: button !important; width: 75px !important; } .product-quantity input[type="button"] { display:none !important; } table div.quantity { width: 75px !important; }
-
This reply was modified 2 years, 4 months ago by
thinkjarvis.
-
This reply was modified 2 years, 4 months ago by
thinkjarvis.
I can confirm that this script does not work.
As a workaround is it possible to restore the default spinbox for quantity? I can simply hide the two buttons temporarily but if there is a way to enable the default Spinbox this should prevent the problem.
Thanks ddandreo/
The full problem below unless you have anything else to add.
1.Add item to basket
2.View basket
3.Change the shipping method4.The plus and minus buttons stop working and you can only change the quantity by typing in a value.
Please can this be added for urgent investigation? As it will affect sales on WooCommerce Sites.
This is not a new issue
It also affect Enfold 5.1.2 and WooCommerce 6.8.2See private data
-
This reply was modified 2 years, 4 months ago by
thinkjarvis.
I too have this same issue and can replicate it on the site in the private link.
You cannot change the basket quantities after changing the shipping method on the basket screen.
Please can you advise? I am running WP 6.1.1 and Enfold 5.2.1
Thanks Gunter that sounds fantastic.
I wasn’t expecting you to do this so soon. I really appreciate it.November 12, 2022 at 10:27 pm in reply to: How to remove filename which shows when mouse arrow is on a picture #1372354@hmsvictory
In the media library changing the title and alt text is possible per image.I use this plugin which includes a bulk updater based on file name.:
https://wordpress.org/plugins/auto-image-attributes-from-filename-with-bulk-updater/If you upload the images named what you want the text to say then this plugin will automatically use this to create a title and alt tag. Best practice is to upload images with file names that reflect the content anyway. Just as a final bit of info for search engines to cross reference against.
The difference between title and alt tag
“alt” is for providing an image alt tag to describe the image to the search engine crawlers and the screen readers for better web accessibility.
“title” is for providing an explanation of the image alt tag and image URL within the “src” attribute.Alt tags are used by search engines and for accessability. Titles are used to provide more detail than alt tags and also displayed to the user on hover.
If they are both the same it isnt an issue. I would keep the title tags for SEO purposes but also get into the habit of uploading images named to reflect what they contain.
@Mike
Not yet. I will test it and get back to you if that is ok?Please dont ever delete this post.
What an excellent insight into self hosting fonts.
I have always gone down the route of individual fonts at 400 (regular) woff2 rather than variable to reduce the number of font files that need to be downloaded. The browser interpretation of font weights is normally adequate for most sites.
I also pre-load them manually to prevent the font swap jumping in.
Font Squirrel can further optimise Woff and Woff2 bringing the file size of each custom font down significantly. A Woff2 font created using cloud convert is often about 30 to 60% larger than using Font Squirrels Optimised versions. A site with 3 fonts for example would save about 100kb of data which is huge.
If you want an alternative to roboto, arial, helvetica, open sans etc. Try Google font Karla – Compressed it is only about 17kb as a Woff2. The lightest Google font available?
-
This reply was modified 1 year, 8 months ago by
-
AuthorPosts