Stuart Duff - a11n
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Items get Removed automatically from CartHi @ajwadali,
I’ve performed some cross-testing for us today on several of my sites which have the latest versions of WordPress, WooCommerce v5.8.0 and our free Storefront theme as the only enabled software. When testing using both Simple and Variable products I’ve not been able to replicate the behaviour which you describe with items being removed from the cart page when another new item is added.
Test Site: https://woostaging.mystagingwebsite.com/
From what you have described, it could be code from another plugin or theme which has caused a possible conflict and affected the functionality of WooCommerce.
To see if that is the case we’d suggest carrying out a conflict test on your site by disabling all other plugins aside from WooCommerce along with switching to a theme like Storefront. This will help with trying to and locate what software you have installed which could possibly be causing this behaviour? You could use a free plugin called Health Check and Troubleshooting to carry out such testing.
When in Troubleshooting mode all plugins will be deactivated and only the admin of the site carrying out the troubleshooting would see those changes. Any customers visiting the site would see no changes at all.
Once you have disabled all other plugins and switched themes if the behaviour is resolved you can then enable your theme and sites plugins testing after each one is enabled until the behaviour returns to locate the culprit.
https://docs.woocommerce.com/document/how-to-test-for-conflicts/
Forum: Plugins
In reply to: [WooCommerce] Categories and sub-categories.Hey @jcmartin,
If you have the same T-Shirt for both Men and Women and it’s Fishing related I’d suggest adding it to all three T-Shirt sub-categories. This way it will be easy for the customers to find on your site when browsing their specific categories.
- Men’s > T-Shirts
- Women’s > T-Shirts
- Fishing Stuff > T-Shirts
I hope this helps.
Forum: Plugins
In reply to: [WooCommerce] Email subject in customer-invoice.phpHi @splendcatcher,
The easiest way to change the subject of the Customer Invoice emails would be to navigate to WooCommerce > Settings > Emails > Customer invoice / Order details and change the text from the Subject field.
For more advanced changes you can follow the instructions within this document.
https://docs.woocommerce.com/document/change-email-subject-lines/
I tested using this code below on my installs and sent an invoice to the customer for an order which has been paid.
add_filter('woocommerce_email_subject_customer_invoice_paid', 'change_admin_email_subject', 1, 2); function change_admin_email_subject( $subject, $order ) { global $woocommerce; $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); $subject = sprintf( '[%s] Changed text for Invoice paid order (# %s) from Name %s %s', $blogname, $order->id, $order->billing_first_name, $order->billing_last_name ); return $subject; }The subject of the email that was received contained the text from the code snippet above.
Image Link: https://cloudup.com/cxXteIKUu4z
Important Note: The
woocommerce_email_subject_customer_invoice_paidfilter only works for orders which have already been paid for by a customer and when you manually send an invoice from the order actions dropdown.Image Link: https://cloudup.com/cHVmsyClXcP
I hope this helps.
Forum: Plugins
In reply to: [WooCommerce] API – Delete the images productsHi @fuba182,
With regards to the WooCommerce REST API access codes that can be set from inside your WooCommerce site by following this documentation.
https://docs.woocommerce.com/document/woocommerce-rest-api/
For the developer level documentation, you can find located on this site below and this covers authentication and all of the endpoints and parameters which can be accessed via the REST API.
https://woocommerce.github.io/woocommerce-rest-api-docs/#introduction
For editing product data like images, you’ll want to look at the API Endpoint of
productsfor that.https://woocommerce.github.io/woocommerce-rest-api-docs/#products
With regards to testing API calls, we have some information on testing API calls using an App called Postman and I’ve referenced that for you below too.
https://github.com/woocommerce/woocommerce/wiki/Getting-started-with-the-REST-API
Forum: Plugins
In reply to: [WooCommerce] woocommerce_cleanup_personal_data conflicts with MemberpressHi @nickelnext,
This particular forum is for questions that are directly related to the features and functionality of the free WooCommerce plugin. It does not, however, offer support for questions related to any extensions, themes or custom code that can work with WooCommerce.
For questions related to development and custom coding, your best bet is to ask on either the WooCommerce Advanced Facebook group or the WooCommerce Developer Slack Channel.
Forum: Plugins
In reply to: [WooCommerce] Actionscheduler_logs bloatingHey @rayanarts,
Carrying out some testing for you today I used this code snippet on my test installation to purge the action scheduler data based on the time frame of one week.
add_filter( 'action_scheduler_retention_period', 'wc_action_scheduler_purge' ); /** * Change Action Scheduler default purge to 1 week */ function wc_action_scheduler_purge() { return WEEK_IN_SECONDS; }Screenshot of before code was added
You’ll see before the code snippet was added that there were 4568 tasks.
Image Link: https://cloudup.com/cbRuTByBgrw
Screenshot from after the code was added
After the code was added and after waiting you’ll notice that the tasks are being reduced over time.
Image Link: https://cloudup.com/cMo0ZGLEdYQ
Note: It does take some time for this process to run and you will see slight incremental decreases in the tasks when refreshing the page until it completes.
I did notice this error message in your log.
2021-10-17T18:10:31+00:00 CRITICAL Allowed memory size of 134217728 bytes exhaustedThat relates to your server running out of memory and it could in theory affect the deletion of scheduled actions using the code snippet I tested above for us.
Forum: Plugins
In reply to: [WooCommerce] can’t delete old customersHi @rudtek2,
The content of this forum topic on pages two and three ( you’ll need to read through both pages ) should help you delete customers from the WooCommerce > Customers section.
Forum: Plugins
In reply to: [WooCommerce] Delete commas between categories (cart page)Hey @sovarone,
Thanks for the link to your site and it seems that something outside of the WooCommerce plugin is adding the categories underneath the product title on the cart page of your site.
Image Link: https://cloudup.com/cVESr2552Jy
Looking at the code output it seems to be either a plugin ( Possibly Elementor ), theme or some custom code that’s adding this functionality.
Image Link: https://cloudup.com/cP-_jDyBv33
To modify the output of those additional category elements you would first need to ascertain exactly what plugin or code is adding those. You can then reach out to the creator of that software so they can help alter the display of the spacing or commas.
For reference, this particular forum is for questions that are directly related to the features and functionality of the free WooCommerce plugin. It does not, however, offer support for questions related to any plugin or themes which can work with WooCommerce and add additional functionality/features.
I wish I could help more, but hopefully, this gets you going in the right direction to alter the display of these categories which have been added to the cart page.
Forum: Plugins
In reply to: [WooCommerce] Delete commas between categories (cart page)Hi @sovarone,
I’ve performed some cross-testing for us today on several of my sites which have the latest versions of WordPress, WooCommerce and our free Storefront theme as the only enabled software. When doing so I’m not seeing any product categories displayed on the cart page of the site.
Image Link: https://cloudup.com/cMZUZ21iB8a
Could you be able to provide a link to the cart page of your website so we can take a look to try and offer some guidance for you?
Hey Jay,
I’m happy I could help. I’m going to mark this as resolved – if you have any further questions, you can reopen it again if you need be.
Hey @jayhan,
The blocks are quite different to legacy WooCommerce products and you’ll find that older code snippets don’t work with the new blocks.
You may be able to use the
woocommerce_blocks_product_grid_item_htmlfilter within the blocks to implement any customisations. You can see some examples of how this filter has been used by other users within this Github thread.https://github.com/woocommerce/woocommerce-gutenberg-products-block/issues/891
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Export produces 545 byte CSV each timeHey @eoren1,
That’s fantastic to hear this worked for you now. I’m therefore going to mark this as resolved – if you have any further questions, you can reopen it again if you need be.`
Hi @zipmoney,
The error message seems to be originating from the free payment plugin you develop called ZipMoney Payments WooCommerce and it looks like the custom blocks integration you’re adding is not working and the code or build process for that tmay need to be revised.
C:\wamp64\www\wordpress56\wp-content\plugins\zipmoney-payments-woocommerce\client\blocks\index.js
These forums are meant for general support with the core functionality of WooCommerce Blocks itself. For questions related to development and custom coding, the best place to ask these would either be on the WooCommerce Advanced Facebook group or the WooCommerce Developer Slack Channel.
As per this developer blog post, you can also create an issue on the WooCommerce Blocks repository to get some assistance with payment gateway integrations.
Forum: Plugins
In reply to: [WooCommerce] Can’t change status from Waiting to ProcessingHey @saga_shiftyblow,
You could use a free plugin called Health Check and Troubleshooting to carry out such testing.
When in Troubleshooting mode all plugins will be deactivated and only the admin of the site carrying out the troubleshooting would see those changes. Any customers visiting the site would see no changes at all.
Once you have disabled all other plugins and switched themes if the behaviour is resolved you can then enable your theme and sites plugins testing after each one is enabled until the behaviour returns to locate the culprit.
https://docs.woocommerce.com/document/how-to-test-for-conflicts/
Forum: Plugins
In reply to: [WooCommerce] Can’t change status from Waiting to ProcessingHey @saga_shiftyblow,
Thanks, for confirming you used Stripe and during my testing, it was actually the Stripe payment gateway that I also used for the orders within my animated screenshot.
Have you tried performing a full conflict test on the site as yet?