Shameem Reza
Forum Replies Created
-
It sounds like the product variations are not being updated properly due to a caching issue. When you send a PUT/POST request to update the “regular_price” of a product variation, the changes are reflected in the JSON response but are not immediately reflected on the website. However, when you send a request to update another field like stock quantity, the changes made earlier on regular_price are shown on the website.
This behavior suggests that there may be some caching mechanism in place that is preventing the updated price from being displayed on the website until another change is made. WooCommerce uses various caching mechanisms such as transients, object caching, and opcode caching to improve performance.
One potential solution is to try clearing the WooCommerce cache manually. This will clear all the cached data, including transients and object caches. Once the cache is cleared, try updating the “regular_price” of a product variation again via REST API and see if the change is reflected on the website.
If the issue persists, it may be worth checking if there are any caching plugins installed on your site that could be causing this behavior. Some caching plugins have settings that could affect the way WooCommerce caches data, so it may be necessary to adjust these settings or even disable the plugin temporarily to see if it resolves the issue.
Here are some resoruces that might be helpful:
Forum: Plugins
In reply to: [WooCommerce] Order complete email not sendingWooCommerce, and most plugins sending email, send mail by using the
wp_mail()function that is a core function of WordPress.In most cases, if email is not being sent/received, then the issue is not with WooCommerce itself, but with the email function on your web host.
Please review the WooCommerce email sending FAQ for help, troubleshooting steps and solutions here: https://docs.woocommerce.com/document/email-faq/.
Additionally, it could be worth asking the customer to check their email spam/junk folders to ensure that the email is not being filtered as spam.
Hello @kubanondrej
This error message is usually caused by an outdated WordPress version or theme, or a conflict with a plugin. Here are some troubleshooting steps that you can follow to fix the issue:
- Update WordPress and Themes: Ensure you are using the latest version of WordPress and your themes. You can check for updates by navigating to Dashboard > Updates. If updates are available, update them and see if the issue goes away.
- Disable Plugins: Sometimes, the issue can be caused by a plugin that conflicts with your theme. You can try disabling all your plugins and see if the issue goes away. If it does, you can start reactivating your plugins individually to find the one causing the issue.
- Check for Compatibility: Make sure your theme is compatible with the version of WordPress that you are using. You can check the theme’s documentation or contact the theme’s developer to confirm compatibility.
- Switch to a Default Theme: You can try switching to a default WordPress theme (like Twenty Twenty-Three) to see if the issue goes away. If it does, then the issue is likely with your current theme.
Forum: Fixing WordPress
In reply to: Fatal error: Allowed memory size of 1073741824Hello @nicoungerer123
This error message is usually caused by your WordPress site exceeding the amount of memory that PHP is allowed to use. There are a few ways to fix this, so let’s go through them step by step.
1. Increase PHP Memory Limit
The first thing you should try is increasing the PHP memory limit. This can be done by adding the following code to your site’s wp-config.php file:
define( 'WP_MEMORY_LIMIT', '512M' );If this doesn’t work, you can try increasing the memory limit even further.
2. Disable Plugins and Themes
Sometimes, the issue can be caused by a plugin or theme that is using too much memory. You can try disabling all your plugins and switching to a default WordPress theme (like Twenty Twenty-Three) to see if the issue goes away. If it does, then you can start reactivating your plugins and themes one-by-one to find the one causing the issue.
3. Check Your Hosting Environment
If the above steps don’t work, then it’s possible that your hosting provider is limiting the amount of memory that PHP can use. You can check with your hosting provider to see if they can increase the memory limit for you.
Additionally, here are some helpful links that may assist you in resolving the issue:
- WordPress Memory Exhausted Error: https://wordpress.org/support/article/common-wordpress-errors/#memory-exhausted-error
- Increasing Memory Allocated to PHP: https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php
- Troubleshooting WordPress: https://wordpress.org/support/article/using-the-troubleshooting-guide/
I hope these steps and resources help you in resolving the issue.
Forum: Fixing WordPress
In reply to: WordPress not showing plugin/core updatesHello @drtux2684
There could be a few reasons why you are not seeing the updates. Let me guide you through some troubleshooting steps that might help you fix the issue:
- Check your WordPress site’s settings to ensure you have not disabled automatic updates. It could be done using code, Plugin, or Hosting software like Softaculous.
2. Try deactivating all plugins temporarily and then check for updates. If the issue resolves, then reactivate each plugin one by one until you find the one causing the issue.
3. Check the theme’s functions.php to see whether it has any code to disable WordPress Update nags. The code should look like this:
function remove_core_updates(){ global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,); } add_filter('pre_site_transient_update_core','remove_core_updates'); add_filter('pre_site_transient_update_plugins','remove_core_updates'); add_filter('pre_site_transient_update_themes','remove_core_updates');If none of the above steps work, then there may be a conflict with your WordPress installation or hosting provider. In that case, you can try contacting your hosting provider to check if they can assist you.
Forum: Plugins
In reply to: [WooCommerce] add extra add to cart buttonBy default, WooCommerce only displays one “Add to Cart” button on the shop page for variable products. However, there are a few different ways you can add an additional button or a pop-up window to improve the user experience for your customers.
One option is to use a plugin like WooCommerce Quick View or WooCommerce Variation Swatches and Photos. Both of these plugins offer the ability to add a pop-up window with an “Add to Cart” button on the shop page. With these plugins, customers can quickly view product details and select variations before adding the product to their cart.
Another option is to use a custom code to add an additional “Add to Cart” button on the shop page for variable products. This will require some knowledge of PHP and WooCommerce hooks, so if you’re not comfortable with coding, I recommend contacting a developer who can assist you with this.
Here is an example of how you can add an additional “Add to Cart” button for variable products using custom code:
add_action( 'woocommerce_after_shop_loop_item', 'srdev_add_to_cart_button', 15 ); function srdev_add_to_cart_button() { global $product; if( $product->is_type( 'variable' ) ) { echo '<div class="custom-add-to-cart">'; woocommerce_template_loop_add_to_cart(); echo '<a href="' . esc_url( $product->get_permalink() ) . '" class="button alt">View Details</a>'; echo '</div>'; } }This code snippet will add an additional button with the “View Details” label next to the “Add to Cart” button for variable products. You can modify the button label and styles as needed.
I hope this helps.
Forum: Plugins
In reply to: [WooCommerce] Order complete email not sendingThere could be several reasons why the Order Complete email notification is not being sent.
I suggest checking if the “Order Complete” email notification is enabled in the Email settings under WooCommerce > Settings > Emails. Please ensure that the toggle button is turned on for this email notification.
If the email notification is enabled, I would recommend checking the email logs to see if any errors are being recorded. You can do this by installing the WP Mail Logging plugin. Check if there are any records of the Order Complete email notification being sent and if there are any errors reported.
Additionally, it could be worth checking your email spam/junk folders to ensure that the email is not being filtered as spam. If it is, you may need to whitelist the email sender or domain to ensure that future emails are delivered to your inbox.
You can also install an SMTP plugin, such as WP Mail SMTP. It’s the easiest way to ensure your order emails are delivered to your customer’s inbox using a third-party email service like Sendinblue.
If none of the above suggestions resolves the issue, it could be worth trying to deactivate any third-party plugins or themes interfering with the email notifications. You can also check Email FAQs here: https://woocommerce.com/document/email-faq/.
I hope this information helps to resolve your issue.
Jetpack Monitor checks your site every five minutes to see if it’s accessible. The site appears to be loading now.
If your site is slow to load, it could trigger a notice that your site is down. Jetpack also sends a follow-up email letting you know how long your site was down or inaccessible.
Currently, there’s no way to adjust the time that Monitor checks your site – it’s either on or off. If the frequency of the Monitor notices is bothersome, you can always disable the feature. To do that:
- Go to Jetpack → Settings → Monitor.
- Deactivate the “Get alerts if your site goes offline. We’ll let you know when it’s back up, too.” option.
Here is a visual guide on disabling the Monitor option: https://imgur.com/a/1bV28qv.
You can learn more about Jetpack’s Monitor option here: https://jetpack.com/support/monitor/.
I hope that clarifies things!
@aswingiri No, conditional logic works differently. If you check my form field, then you will see that I can select both Yes and No: https://ibb.co/pbsqttL
I am looking for a way so that a user can select either Yes or No, both together.
I hope my requirement is clear now.
Thanks
Dear @gelieys I am not referring to paid add-ons support. I am looking for a way to do it.
Thanks @missveronicatv
I resolved it another way. However, I appreciate your kind reply and solution.
Thanks, I have managed this option in another way.
Thanks for your kind reply. I am already using those code. Is there any way to limit the maximum age limit as well?