Caleb Burks
Forum Replies Created
-
It’s hard to enforce standards in an open source system like this. If you have any more ideas or such though, then feedback and ideas like this are definitely welcome at the dev chats 🙂
The next one will be announced here: https://woocommerce.wordpress.com/
Forum: Plugins
In reply to: [WooCommerce] WooCommerce CheckoutThe
woocommerce_package_ratesfilter runs per package. So you can remove shipping rates based on which package it is looking at: https://github.com/woocommerce/woocommerce/blob/f5492cc50a1c4b9ba96edecb6ab55da93ee81c72/includes/class-wc-shipping.php#L338Adding settings for this doesn’t really sound ideal, would just be cluttering up the screens. I think your workaround is good.
Can open up an idea here though if you’d like to gauge interest: http://ideas.woocommerce.com/forums/133476-woocommerce
At Appearance > Menus, click “Screen Options” in the top right and enable Product categories.
Then you can add categories to your menus just like other pages 🙂
____
Alternatively, and maybe not quite what you are looking for but worth mentioning, there is a product categories widget that will list all categories as well.
Forum: Plugins
In reply to: [WooCommerce] Setting Download Limit and Download expiry days for csv importWith intval,
intval(-1)andintval(0)will return -1 and 0. With absint, it does this:abs( intval( $number ) )which forces -1 to be 1 instead. Both absint and inval will turn an empty string''into0though. This change does sound geared towards what you are wanting, allowing a negative input.-1is what you want I believe: https://github.com/woocommerce/woocommerce/blob/197e16269d83bb82bbcc1b6d6d00edba6e1c4401/includes/abstracts/abstract-wc-product.php#L1225Forum: Plugins
In reply to: [WooCommerce] Product ThubmnailsMy bad, misread the snippet the first time. Are you on WooCommerce 3.3.3?
Would be good to rule out plugin/theme conflicts: https://docs.woocommerce.com/document/woocommerce-self-service-guide/#section-4
And you can regenerate thumbnails quickly using https://wordpress.org/plugins/regenerate-thumbnails/
Forum: Plugins
In reply to: [WooCommerce] Cropped Product PhotosAt Appearance > Customize > WooCommerce, you can change the cropping settings. Here you’ll set a width, then the cropping aspect ratio. More information on this here: https://docs.woocommerce.com/document/image-sizes-theme-developers/
If some image settings are missing, that means your theme is declaring them for you.
Ah right, so search results start with the “relevance” orderby by default. Since the user is searching for a specific term, this makes sense. You can see this happening here: https://github.com/woocommerce/woocommerce/blob/5bea7de93c152f15207750c3dd7e1a5ab6b6a0f8/includes/class-wc-query.php#L436-L438
You can change this behavior with some custom code using the
woocommerce_get_catalog_ordering_argsfilter.Forum: Plugins
In reply to: [WooCommerce] Shop page content disappears unless…Your workaround could cause some problems when WC tries to send the user to the shop page, such as an empty cart page. That’s why I suggest the other way 🙂
But yea, definitely update as that should fix the issue altogether.
Forum: Plugins
In reply to: [WooCommerce] how get variable and sned it with email of “new order”Okay, so step one is to add the custom fields at checkout. Can’t see all of your code, but make sure you sanitize the input before saving to the database – really dangerous if you don’t. See https://codex.wordpress.org/Validating_Sanitizing_and_Escaping_User_Data
Here’s a guide on adding custom fields to checkout: https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/
Then, once the custom meta is saved, you can access it with:
$order->get_meta( 'your_custom_meta' );.If you can’t quite figure out what code you need though, you might need to hire a developer or perhaps use an existing plugin: https://woocommerce.com/products/woocommerce-order-delivery/
Forum: Plugins
In reply to: [WooCommerce] Importing ProductsProducts are essentially a post, just with some more metadata. Can definitely have a successful WC shop with 45k, as you can well surpass that on WP. Products are also rather “static” for the most part on the frontend. So you can cache the pages and the data. Of course there are exceptions to every rule though.
Performance is a pretty big overall thing to tackle, so it is a bit more than would be possible to go into here without all the details.
Depending on the budget, might be good to bring on a WooExpert for project advising: https://woocommerce.com/experts/. Potential to save money and time in the long run by doing it right off the bat 🙂
Forum: Plugins
In reply to: [WooCommerce] Complete DateNeed to save after.
$order->save();Forum: Plugins
In reply to: [WooCommerce] Product attribute type has changed after WC updateThe issue is resolved because this change will not be reverted.
Custom attributes can be used if you need fluid editing, “add new” can be used if you are using global attributes. Any other use cases generally fall into the “mis-use” category.
We’ve now talked this through with many shop owners, and most have now seen and found the better way to go about what they were doing. If you don’t think custom attributes will work for you, or don’t understand why you shouldn’t be using global attributes for some scenarios, then you can build a custom attribute type that brings back the text editor for global attributes. Though time would better be spent building custom fields since global taxonomies is really not what you should be using for some of the things you have described.
- This reply was modified 8 years, 2 months ago by Caleb Burks.
Forum: Plugins
In reply to: [WooCommerce] product variation font sizeUse
.woocommerce-variation-price span.amount {}as the selector 🙂Forum: Plugins
In reply to: [WooCommerce] Product ThubmnailsThat sounds correct, no need for srcset on a tiny thumbnail image.
The first one not being a thumbnail does sound wrong though. Might be related to https://github.com/woocommerce/woocommerce/pull/19335