aetta
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Woocommerce single product categories and tagsHi @mdsidabras, how’s it going today?
I’m not sure if I understood you correctly, but are you trying to display your categories/tags on the cart page?
If so, you can use for example one of the built-in shortcodes, like:
- [product_categories] – Display all product categories in any page/post
You can check this for reference: https://woocommerce.com/document/woocommerce-shortcodes/
If this is not exactly what you’re looking for, no worries, share with us more details of what you’re trying to achieve and we’ll do our best to point you in the right direction!
Thank you!
Forum: Plugins
In reply to: [WooCommerce] What is the correct format to fetch product ID?Hi @brock40!
You may need to access the WC Product class to retrieve a product ID since this class handles individual product data.
All available methods can be found here:
https://woocommerce.github.io/code-reference/classes/WC-Product.html
You can also try to use the magic method __toString() on that class, however, since this is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone can chime in to help you out.
I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.
You can also visit the WooCommerce Facebook group or the
#developerschannel of the WooCommerce Community Slack.We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.
My very best,
Forum: Plugins
In reply to: [WooCommerce] order completed and product editingHi @navidsmh
Just to confirm, on both installations (local and on production) you’re getting the date of a published product updated as soon as an order is completed?
Are you using any hooks or custom codes to handle the product/order date, or even change their metadata programmatically?
Also, I’d recommend using a staging plugin, instead of doing it locally.
If your host doesn’t offer that option, we recommend WP Staging for quickly spinning up a new test site. Double-check your functions.php on that staging site too!
And then, if you’re still having issues with that, share with us your System Status report with a basic setup (everything disabled except for WooCommerce and Storefront as a theme) of that staging site!
I hope to hear from you soon!
All the best,
Hi @omcaninc
I checked both of your sites and noticed that on your staging site you’re using a plugin called Variations Swatches for WooCommerce.
Would you mind disabling it and checking again if the mentioned behavior persists?
You may need to clear your site’s cache and even check with your hosting company if, by chance, there’s some server-side cache setup to be cleared.
If it persists, keep them all deactivated, except for WooCommerce, switch to the Storefront theme (all on your staging site), and share again your System Status report.
We’d love to take a closer look at it again.
Thank you.
Forum: Plugins
In reply to: [WooCommerce] Remove /blog/ from woocommerce brand archiveHi @wizardun!
Is example.com/blog/ your default folder for WordPress itself? If so, an alternative is to install it in another folder.
You can also consider a plugin like the one below, to customize your permalinks
https://woocommerce.com/products/custom-permalinks-for-woocommerce/
I hope that helps! Thanks
Forum: Plugins
In reply to: [WooCommerce] Add to cart on product page not workingHi @johnboy1958!
I noticed that I can add a product to the cart from the Category (as you mentioned) and also manually, like this:
https://bespokecables.com.au/wordpress/product-category/audio/?add-to-cart=1627Can you give the following a try, please?
1. Flush your permalinks
In your WordPress dashboard go to Settings > Permalinks, click on the Plain or any Radio buttons under Common Settings and press Save Changes. After that change back to the setting you had before and save the changes again.
2. Checking with your host for caching issues
You can check your side and ask your host to double-check their side too, for server-side cache setups that may be affecting the cart to be updated.
3. Check your functions.php
Do you have custom code that may be affecting your single-product page or even the cart page?
Let us know how it goes!
All the best,
Forum: Plugins
In reply to: [WooCommerce] wp_woocommerce_session_activity vs wp_woocommerce_sessionsHi @dailce!
I checked on my test site, but I don’t have a wp_woocommerce_session_activity, only a wp_woocommerce_session.
Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.
Once you’ve done that, paste it here in your response.
Also, I’d recommend installing the WP Crontrol plugin available at:
https://wordpress.org/plugins/wp-crontrol/
Once it’s installed, you can go to Tools > Cron Events to see if there are any errors or messages related to the Wp-cron system.
You could also check your WooCommerce > Status > Logs to see if there are any fatal-errors.
If you find anything, share them with us too, together with your System Status report!
I hope to hear from you soon!
Thank you!
Forum: Plugins
In reply to: [WooCommerce] Block product text too largeHi @justajedi!
This kind of problem is usually caused by a conflict with your theme or with another plugin.
The best way to determine this is to:
- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated.
To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each until you find the one causing conflict.
You can find a more detailed explanation on how to do a conflict test here.
Let us know how it goes!
Thank you!
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Double saleHi @handmadehome! How’s it going today?
I’m wondering this because the Hold Stock feature will hold products, for unpaid orders, for X minutes. That means, when the limit is reached, the pending order is canceled.
This will prevent users from going idle after adding it to the cart and holding it for many hours, but if I got you correctly, this will not prevent users from adding it at the same time.
Let us know how it goes and if that plugin helped you! 🙂
My very best,
Forum: Plugins
In reply to: [WooCommerce] State / County based on Cyrillic alphabetical order?Hi @apendix
This seems to be more related to a translation than an issue itself. However, to help me get to the bottom of this, can you, please?
Share a full and uncropped screenshot of what you’re seeing and also a System Status report with us?
For the screenshot, I’d recommend using: https://snipboard.io/
You can find your System Status via WooCommerce > Status. Select “Get system report” and then “Copy for support”.
Once you’ve done that, paste it here in your response.
Thanks,
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Double saleHi @handmadehome!
WooCommerce has a functionality called “Hold Stock” that you can choose the amount of time (in minutes) that the stock is held for unpaid orders.
You can find this by navigating to WooCommerce > Settings > Products > Inventory
However, I am afraid that this will not help in cases (it seems a very hedge case, but still a possibility) for users who make the purchase at the exact same time.
For this specific situation, can you take a look at plugins like this?
https://wordpress.org/plugins/woocommerce-cart-stock-reducer/
The first request that hits the server will get the item if there is only one available. The other person will receive
a “Item is no longer available” message.This seems to fit exactly your needs! 🙂
Can you give it a try, and let us know how it goes?
All the best,
Hi @loralora!
This is more related to your server, the time it responds to asynchronous requests than WooCommerce itself!
There’re a few alternatives that you can consider to customize and boost your page loading time, here’s a great article that comes in handy when talking about the Cart Fragments:
https://www.businessbloomer.com/woocommerce-why-how-to-disable-ajax-cart-fragments/
I hope that helps! Thank you!
Forum: Plugins
In reply to: [WooCommerce] How to deactivate IP saving for orders?Hi @mike8040
This is a fairly complex development topic.
However, looks like you are not enclosing your strings properly, instead of using commas, you’ll need to use single quotes.
It should be changed to something like this:
/** Stop saving customer IP */
add_filter( ‘update_post_metadata‘, ‘wc_customer_ip_delete‘, 10, 3 );function wc_customer_ip_delete( $null, $id, $key ) {
if ( ‘_customer_ip_address‘ === $key )
return FALSE;return $null;
}That way, the strings are enclosed properly. I didn’t test it, but even double-checking your code, if you’re still having issues with that I’d recommend
the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.You can also visit the WooCommerce Facebook group or the
#developerschannel of the WooCommerce Community Slack.We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.
I hope that helps! Thank you!
Forum: Plugins
In reply to: [WooCommerce] Invalid or Duplicate SKUWould you mind trying to import them again? However, during the import, disable the mapping for the “ID” field.
If the issue persists even with that option disabled, could you please share a copy of your site’s System Status?
You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.
Once you’ve done that, paste it here in your response.
Thank you!
Forum: Plugins
In reply to: [WooCommerce] Woo commerce order missing!Hi @sakina990!
Could you please share a copy of your site’s System Status?
You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.
Once you’ve done that, paste it here in your response.
Thank you!