Steve Weigold
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] WC 3.3.1 New issues with product category displayI’m going to mark this issue as resolved. Thanks everyone.
Forum: Plugins
In reply to: [WooCommerce] WC 3.3.1 New issues with product category display@mikejolley, @pinksharpii’s explanation in his last post is spot on. Maybe this needs to be a feature request?
Forum: Plugins
In reply to: [WooCommerce] WC 3.3.1 New issues with product category display@pinksharpii I am trying to do exactly that. I overlooked your working code until a few minutes ago and so just now added it to mine. Thank you so much! You saved me from having to figure out that myself π
Forum: Plugins
In reply to: [WooCommerce] WC 3.3.1 New issues with product category display@mikejolley, the setting does not. I have changed the test site again and edited the setting for the category itself. Indoor Lighted in my test site now only shows subcategories. The product that is in Indoor Lighted is now no longer visible.
http://sbw.weigoldenterprises.com/test/?product_cat=indoor-lighted
Here’s the link to the product in the Indoor Lighted category which is no longer visible:
http://sbw.weigoldenterprises.com/test/?product=ils-test-product-1
- This reply was modified 8 years, 3 months ago by Steve Weigold.
Forum: Plugins
In reply to: [WooCommerce] WC 3.3.1 New issues with product category displaySo, here’s the link to my test site, with the query adjustment in place:
http://sbw.weigoldenterprises.com/test/?product_cat=indoor-lightedYou can see the desired behavior in “Indoor Lighted” where we show products in that category and subcategories, but not the products in the subcategories.
“Outdoor Lighted” is the category that ONLY has subcategories and of course, it’s broken now.
WooCommerce doesn’t have the capability of doing this type of configuration natively. Further, this approach worked properly up until a recent update, so something changed that broke this approach. I need to come up with a solution. If modifying the query isn’t it, I’d appreciate some help on what is.
Forum: Plugins
In reply to: [WooCommerce] WC 3.3.1 New issues with product category displayInterestingly, I added my snippet in to my fresh install and in fact it broke the fresh install.
Forum: Plugins
In reply to: [WooCommerce] WC 3.3.1 New issues with product category display@mikejolley, because I have cases where in some categories, I have both products AND subcategories, and I need to display both in the category page. If I select both in WC, it displays the products in the subcategories as well, which I do not want.
Forum: Plugins
In reply to: [WooCommerce] WC 3.3.1 New issues with product category display@mikejolley, my site is a test development site, so I wouldn’t mind granting access to someone for testing.
I have created a fresh install also with a dowload of WP and install of WC from the add plugin menu. I have not yet been able to duplicate the problem, but I’ll keep adding things to see if I can.
- This reply was modified 8 years, 3 months ago by Steve Weigold.
Forum: Plugins
In reply to: [WooCommerce] WC 3.3.1 New issues with product category displaySee, the pre_get_posts is what I’m doing too. I mentioned it in my original post.
But removing it doesnβt resolve the problem. It only makes the results different.
Here’s my code again:
function exclude_product_cat_children($wp_query) { if ( isset ( $wp_query->query_vars['product_cat'] ) && $wp_query->is_main_query()) { $wp_query->set('tax_query', array( array ( 'taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => $wp_query->query_vars['product_cat'], 'include_children' => false ) ) ); } } add_filter('pre_get_posts', 'exclude_product_cat_children');- This reply was modified 8 years, 3 months ago by Steve Weigold.
Forum: Plugins
In reply to: [WooCommerce] WC 3.3.1 New issues with product category displayIck. I was hoping for a better means of diagnosis than spending the time to set up a clean install and then attempt to replicate the problem. I’ll see what I can do. When you say “show me your setup” @mikejolley, I’m assuming you mean the status output?
Forum: Plugins
In reply to: [WooCommerce] WooCommerce Help NeededThere may be other ways to do so, but the first thing that comes to mind is to use the csv export and import function, and then make block cut and paste changes to the spreadsheet and re-import it.
Technically you are changing all 300 products every 6 months, but it should be just a few mouse clicks to do it.
- This reply was modified 8 years, 3 months ago by Steve Weigold.
Forum: Plugins
In reply to: [WooCommerce] Reset orders count number to 1 (delete test orders)May I suggest you check out the WooCommerce Store Toolkit:
https://ww.wp.xz.cn/plugins/woocommerce-store-toolkit/
Under the Empty WooCommerce Tables link, there’s an option to delete orders.
I’d also suggest you backup your database before you start mucking about with deleting things in case something goes wrong.
The add to cart function on your site isn’t working for me either. Looking over your status, I see that you are using both an outdated WordPress and an outdated WooCommerce. I suggest starting with updating both of them.
Forum: Plugins
In reply to: [WooCommerce] WC 3.3.1 New issues with product category displayPerformed an additional test:
Created a NEW category with no products. Changed one of my existing subcategories to use this as a parent. It too shows the “No products found” message.
If I add a test product to the new test category, it then displays both the product and the subcategory as I would expect.
There appears to be a problem with product category display for categories with only subcategories in them.
Forum: Plugins
In reply to: [WP eCommerce] Gold Cart and Authorize.net@whitelamp, thanks for your reply.
When developing with Authorize.net (and Paypal for that matter and I’m sure others) you have the ability to create a merchant account in the “Sandbox” (sandbox.authorize.net) which is similar to putting a regular account in “test mode” but provides a whole host of additional abilities to more thoroughly test your design plus allows the use of fake card numbers and such. Let the kiddies go play in the sandbox as it were…
Sandbox accounts do not do any real processing, but behave as if they did.
I just realized I’m making an assumption which may not be accurate. I would expect when Gold Cart is in test mode that it’s sending calls to the Sandbox API, rather than the main API. They are different URLs. Can anyone confirm this is the case? I can’t remember when this worked before if I was using the Sandbox or a regular account in test mode.
As for error_log calls, sure. I can do that. I can also trigger_error and get the results in the WordPress debug log as well. I was really trying to avoid modifying the plugin code. I hoped, especially with something as involved as a secure credit card transaction that there would be at least a log somewhere I could view first. Plenty of things to potentially go wrong.
I inherited this design from another developer that was contracting with multiple offshore subcontractors. It’s already enough of a sh*t sandwich of spaghetti. I’d like to avoid making it worse by digging into the code of a standard plugin.
I’m about to the point though where I’m going to set the whole thing up on a local server and fire up Xdebug.
Thanks again for the response.
Steve- This reply was modified 8 years, 7 months ago by Steve Weigold.