Forum Replies Created

Viewing 15 replies - 1 through 15 (of 27 total)
  • Plugin Author CloudRedux

    (@cloudredux)

    Hi @alexliii,

    We will need more details on what are you trying to do and what kind of customization are already in place. The code you shared should work just fine if no other customization has been done to default hook location where the plugin runs the notice display functionality.

    It is critical to understand how hook name/location and priority matters and can make or break the callback functionality attached.

    Did you try to run it with default compatible theme, bare minimum plugins and can verify if you are still facing the issue? You could also try deactivating other “Code Snippet” snippets and give it a try to see if previous rules are overriding this snippet?

    If you need specific help with code and/or how to make it work, feel free to drop in an email to us at [email protected] and we can take it from there.

    Plugin Author CloudRedux

    (@cloudredux)

    Sure. To allow us to assist you better, feel free to share relevant details over email at [email protected].

    Plugin Author CloudRedux

    (@cloudredux)

    Hi @rsurfer,

    Thank you for sharing the information. However we will need additional info to be able to replicate the behavior that you are reporting.

    All the tests at our end with latest WordPress, and default configuration, latest theme and set of plugins result in desired plugin functionality. The plugin is working as expected. We could not replicate the broken functionality as reported by you.

    Can you share screenshots / screen capture of the plugin settings, individual product page setting related to the product where you are trying to configure the notice for display.

    Plugin Author CloudRedux

    (@cloudredux)

    Closing the topic due to inactivity.

    Plugin Author CloudRedux

    (@cloudredux)

    Closing this topic due to inactivity.

    Plugin Author CloudRedux

    (@cloudredux)

    Thank you for reaching out and bringing this to our attention.
    We understand that you recently encountered a notice still displaying despite using the option to disable it.

    To better assist you, could you please provide some additional details about your website environment? Specifically, we’d like to know:

    1. WordPress Version:
    2. WooCommerce Version:
    3. Theme and its Version:

    Having this information will help us ensure that our plugin is fully compatible with your WordPress setup. If you are unsure where to find this information, here are some general guidelines:

    WordPress Version:

    • You can find the WordPress version in the admin dashboard. On the main dashboard, it’s usually displayed in the top-left corner.

    WooCommerce Version:

    • Navigate to your WordPress admin dashboard.
    • Go to ‘Plugins’ and then ‘Installed Plugins.’
    • Look for WooCommerce in the list and note the version.

    Theme and its Version:

    • In your WordPress admin dashboard, go to ‘Appearance’ and then ‘Themes.’
    • Identify the currently active theme and note its version if available.

    Once we have this information, we can proceed with a more accurate investigation into the notice displaying issue. Your cooperation is greatly appreciated.

    Looking forward to your response.

    Plugin Author CloudRedux

    (@cloudredux)

    Hi @amafino,

    Thank you for your review. We’re glad that you like the plugin and that it is proving to be useful for your eCommerce store.

    Stay tuned, as we add more features and flexibility to the plugin.

    Plugin Author CloudRedux

    (@cloudredux)

    Hi venthi7,

    As of now, the plugin does not offer a direct option to hide the notice on the product page for logged-in customers. However, it is achievable with custom code added to your website. See below for instructions on adding the code to hide product notice for logged-in users on your store.

    1. Copy the provided custom code:

    function crwcpn_hideNoticeForLoggedInCustomers() {
    	if ( is_user_logged_in()) {
    		return;
    	}
    	
    	crwcpn_global_product_notice_top();
    	crwcpn_product_notice_top();
    	crwcpn_product_notice_display();
    }
    
    // Remove the original action from the plugin
    remove_action('woocommerce_single_product_summary', 'crwcpn_global_product_notice_top', 12);
    remove_action('woocommerce_single_product_summary', 'crwcpn_product_notice_top', 12);
    remove_action('woocommerce_single_product_summary', 'crwcpn_product_notice_display', 12);
    
    // Add your custom action
    add_action('woocommerce_single_product_summary', 'crwcpn_hideNoticeForLoggedInCustomers', 12);

    2. Navigate to your WordPress dashboard and access the “Appearance” section. If you have a child theme, go to the “Editor” and open the “functions.php” file. If you don’t have a child theme, you can use a plugin like “WP Designer” or “Code Snippets” to add the custom code to your website.

    3. Paste the copied code into the “functions.php” file and save the changes.

    This custom code will hide the notice on the product page for logged-in customers, making it relevant only to guests and non-logged in users on your store.

    Let us know if that worked for you or if you face any issues.??

    • This reply was modified 1 year, 4 months ago by CloudRedux.
    Plugin Author CloudRedux

    (@cloudredux)

    Hi gmoney9,

    It sounds like you’re experiencing a conflict between your website’s background and the “Product Sales Count for WooCommerce” plugin. This kind of issue can sometimes arise when there are conflicting CSS styles. Not to worry, there is a solution to address this problem.

    The issue you’re facing is primarily due to CSS conflicts with the “Product Sales Count for WooCommerce” plugin. To resolve this, you can follow these steps:

    Add Custom CSS Code: You can add custom CSS code that will help fix the issue. We’ve tested this solution on a staging environment, and it should work well. Please add the following code to your website:

    .psc-sales-count-notice::after {
        content: "";
        display: block;
        clear: both;
    }
    

    Where to Add the Code: You can add this custom code to your WordPress theme’s style.css file, preferably within a child theme. This ensures that your changes won’t be overwritten when your theme is updated. If you’re not using a child theme, you can use a plugin like “WP Designer” or “Code Snippets” to add the custom CSS.

    Need Help Adding Custom CSS?: If you’re not sure how to add custom CSS to your website, you can check out this helpful article, which provides a step-by-step guide on how to add custom CSS to your WordPress site: How to Easily Add Custom CSS to Your WordPress Site.

    By following these steps, you should be able to resolve the conflict between your background and the “Product Sales Count for WooCommerce” plugin. If you encounter any further issues or have additional questions, feel free to ask for assistance.

    I hope this helps you get your website back on track. Let me know if you have any other questions or concerns!

    Plugin Author CloudRedux

    (@cloudredux)

    Thank you for your wonderful review, @lostcrow. Review like yours, inspires us to give back more to the community, to users like you! We are glad you are liking the plugin. Stay tuned, as we add more features and flexibility to the plugin.

    Plugin Author CloudRedux

    (@cloudredux)

    Hi @alexliii,

    Just checking in to see if you have been able to achieve what you wanted to with the custom code we shared. Did it work for you?

    Let us know if you have any questions or if you need any other help with the plugin. If this worked for you, feel free to mark this topic as resolved.

    Plugin Author CloudRedux

    (@cloudredux)

    Hi @sportswing,

    We are still waiting to hear from you on this. Have you been able to resolve it or the does the issue still persist.

    If the issue still persists, do let us know along with the information we requested in the previous thread and we’ll be glad to assist.

    Plugin Author CloudRedux

    (@cloudredux)

    Hello @alexliii,

    I would like to inform you the notices are rendering correctly after the Add to Cart button and functioning seamlessly on both mobile and PC mode.

    In order to troubleshoot the issue you’re experiencing, I recommend trying to access the website in incognito mode. If the notice still fails to render properly, it is possible that the issue may be related to your website’s cache. I suggest clearing the cache and attempting to access the website once more.

    Please keep us informed on whether or not this solution resolves the issue. If the issue persists, kindly provide us with your website URL so that we may further investigate.

    Thank you

    Plugin Author CloudRedux

    (@cloudredux)

    Hi @alexliii,

    Thank you for contacting us. We would be happy to assist you.

    This issue seems more of a theme issue to me. The way plugin works is that the notice is hooked to a location on the WooCommerce product page which is set to show after the product price by default. WordPress hook priority controls the display order. I am assuming that the theme used on your WordPress WooCommerce setup has modified the single product template in one way or another. This should be causing the notices to be displayed elsewhere on the page.

    For now you can add the custom code to achieve this. See below(tested on staging environment):

    • To display global notice after the Add to Cart button, add this:
    remove_action( 'woocommerce_single_product_summary', 'crwcpn_global_product_notice_top', 12 );
    add_action( 'woocommerce_after_add_to_cart_button', 'crwcpn_global_product_notice_top' );
    • To display product notice after the Add to Cart button, add this:
    remove_action( 'woocommerce_single_product_summary', 'crwcpn_product_notice_top', 12 );
    add_action( 'woocommerce_after_add_to_cart_button', 'crwcpn_product_notice_top' );
    • To display more than one global and product notice after the Add to Cart button, add this:
    remove_action( 'woocommerce_single_product_summary', 'crwcpn_product_notice_display', 12 );
    add_action( 'woocommerce_after_add_to_cart_button', 'crwcpn_product_notice_display' );

    You can practically hook the functions crwcpn_global_product_notice_top , crwcpn_product_notice_top and crwcpn_product_notice_display to any of the available hook locations on the WooCommerce product page. See this page for visual hook guide reference: https://www.businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/.

    You would need to add the code to your theme’s functions.php (preferably a child theme) or use a plugin like WP Designer or Code Snippets to add the custom code to your website.

    If the above solution doesn’t work for you or does not give the desired results, please provide us with more information about your website’s setup so that we can better assist you. This information should include (and is not limited to) your website’s PHP version, WordPress version, current theme name with version, and any active WooCommerce extensions. This will help us troubleshoot the issue in a quick and efficient manner.

    Looking forward to making your WooCommerce store experience better. Thanks.

    Plugin Author CloudRedux

    (@cloudredux)

    Hi @sportswing,

    The “Error: There has been a critical error on this website” issue in WordPress is often caused by a conflict with your theme or plugin. To troubleshoot, follow these steps:

    1. Check error logs: Look for recent logs in WordPress error logs for more information about the issue.

    2. Deactivate plugins: Deactivate all plugins except “Product Notices for WooCommerce” and WooCommerce to see if one of them is causing the issue. Reactivate plugins one by one to determine the cause.

    3. Use default theme: Change to a default WordPress theme (e.g. Twenty Twenty-*) to see if the theme is causing the issue.

    4. Increase memory limit: Sometimes, insufficient memory can cause errors. Increase the memory limit in the wp-config.php file.

    To determine the cause of the conflict, perform a conflict test by reactivating plugins one by one and testing after each activation.

    Please provide details for your website’s PHP version, WordPress version, current theme name with version and active WooCommerce extension and error logs so that we can assist you with this issue. You can find additional information in the links below.
    https://woocommerce.com/document/how-to-test-for-conflicts/
    https://kinsta.com/knowledgebase/there-has-been-a-critical-error-on-your-website/

Viewing 15 replies - 1 through 15 (of 27 total)