• Hello,
    If i try to add to cart more items than on stock (type quantity and click [add to cart]) there is no notification shown that value exceeds max stock value. If i change theme to Twenty Twenty or other, notification is showing properly after clicking [add to cart]. Any idea how to solve the problem?

    PS. I checked Health Check & Troubleshooting plugin and after disabling all the plug-ins (only OceanWP + Woocommerce activated) problem still exist and notification is not shown.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hello,

    I apologize for the trouble. I have passed the issue to the concerned dev team to look into it and Thank you so much for bringing it to our attention.

    If there’s something else you would like to suggest or believe we should inspect, please let us know.

    Thread Starter tstep

    (@tstep)

    Hello,
    Is there anything new in this topic? After last update problem stil exist. If you need anything that might help please let me know.

    Hello,

    Can you please replicate the issue on any product and share the URL?

    Please try to add the below snippet code in the functions.php file of your child theme and check.

    function filter_woocommerce_cart_product_not_enough_stock_message( $message, $product_data, $stock_quantity ) {
        // New message
        $message = __( 'You are currently trying to order more of this product than are currently available at your shipping location. Please call our sales team to discuss availability', 'woocommerce' );
        
        return $message;
    }
    add_filter( 'woocommerce_cart_product_not_enough_stock_message', 'filter_woocommerce_cart_product_not_enough_stock_message', 10, 3 );

    PS- Change the notification message according to the need in the above code.

    Thread Starter tstep

    (@tstep)

    Thank you for the code but it doesnt works, nothing changed.

    This is product sample, any quantity more than 50 is 100% sure to be more than stock
    https://www.abreo.pl/filc-polerski-200x30x20-krazek-z-otworem/

    • This reply was modified 2 years, 6 months ago by tstep.

    Hello,

    Kindly share a snapshot of the section where you have added this code.

    And share the steps to check the issue, like how products should add here to get the issue.

    Thread Starter tstep

    (@tstep)

    Code is added to my child theme functions.php as is should be.
    Below snapshots using Twenty twenty two theme – message is properly shown (all plugins except woocomemrce disabled)
    and OceanWP also only with woocommerce plugin
    https://ibb.co/jvWj3xB
    https://ibb.co/2vGFMtB

    Code:
    https://ibb.co/Vx30JZx

    • This reply was modified 2 years, 6 months ago by tstep.

    Hello,

    Sorry but the shared snapshots URL not working, kindly check and share again.

    You can try another platform to share the snapshots.
    https://imgbb.com/

    • This reply was modified 2 years, 6 months ago by Abhishek.
    Thread Starter tstep

    (@tstep)

    Please try this one

    View post on imgur.com

    Hello,

    I apologize for the delay in response.

    Tried on local and it is working well. Would you be so kind and go to Elementor > System Info and share the report with us so that we can take a look?

    • This reply was modified 2 years, 5 months ago by Abhishek.
    Thread Starter tstep

    (@tstep)

    Sorry for late replay
    System info below

    
    == Server Environment ==
    	Operating System: Linux
    	Software: LiteSpeed
    	MySQL version: MariaDB Server v5.6.49-89.0
    	PHP Version: 7.4.30
    	PHP Memory Limit: 256M
    	PHP Max Input Vars: 1000
    	PHP Max Post Size: 128M
    	GD Installed: Yes
    	ZIP Installed: Yes
    	Write Permissions: All right
    	Elementor Library: Connected
    
    == WordPress Environment ==
    	Version: 6.0.2
    	Site URL: https://www.abreo.pl
    	Home URL: https://www.abreo.pl
    	WP Multisite: No
    	Max Upload Size: 128 MB
    	Memory limit: 512M
    	Max Memory limit: 512M
    	Permalink Structure: /%postname%/
    	Language: pl-PL
    	Timezone: Europe/Warsaw
    	Admin Email: 
    	Debug Mode: Inactive
    
    == Theme ==
    	Name: OceanWP-child
    	Version: 1.0.0
    	Author: 
    	Child Theme: Yes
    	Parent Theme Name: OceanWP
    	Parent Theme Version: 3.3.5
    	Parent Theme Author: OceanWP
    
    == User ==
    	Role: administrator
    	WP Profile lang: pl_PL
    	User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0
    
    == Active Plugins ==
    	Advanced Custom Fields
    		Version: 6.0.0
    		Author: WP Engine
    
    	Autoptimize
    		Version: 3.1.2
    		Author: Frank Goossens (futtta)
    
    	Checkout Field Editor for WooCommerce
    		Version: 1.7.2
    		Author: ThemeHigh
    
    	Classic Widgets
    		Version: 0.3
    		Author: WordPress Contributors
    
    	Contact Form 7
    		Version: 5.6.3
    		Author: Takayuki Miyoshi
    
    	Cookie Notice & Compliance for GDPR / CCPA
    		Version: 2.4.0
    		Author: Hu-manity.co
    
    	Easy Watermark
    		Version: 1.0.11
    		Author: BracketSpace
    
    	Elementor
    		Version: 3.7.7
    		Author: Elementor.com
    
    	Elementor Pro
    		Version: 3.7.7
    		Author: Elementor.com
    
    	Essential Addons for Elementor
    		Version: 5.3.1
    		Author: WPDeveloper
    
    	Flexible Shipping
    		Version: 4.14.1
    		Author: Octolize
    
    	Folders
    		Version: 2.8.5
    		Author: Premio
    
    	Google Analytics for WordPress by MonsterInsights
    		Version: 8.9.0
    		Author: MonsterInsights
    
    	Health Check & Troubleshooting
    		Version: 1.5.0
    		Author: The www.remarpro.com community
    
    	Iks Menu Pro
    		Version: 1.9.8
    		Author: IksStudio
    
    	InPost for WooCommerce
    		Version: 1.3.7
    		Author: Inspire Labs
    
    	Limit Login Attempts Reloaded
    		Version: 2.25.5
    		Author: Limit Login Attempts Reloaded
    
    	LiteSpeed Cache
    		Version: 5.2.1
    		Author: LiteSpeed Technologies
    
    	Loco Translate
    		Version: 2.6.2
    		Author: Tim Whitlock
    
    	Login No Captcha reCAPTCHA (Google)
    		Version: 1.7
    		Author: Robert Peake and Contributors
    
    	MC4WP: Mailchimp for WordPress
    		Version: 4.8.10
    		Author: ibericode
    
    	Ocean Extra
    		Version: 2.0.4
    		Author: OceanWP
    
    	Ocean Stick Anything
    		Version: 2.0.4
    		Author: OceanWP
    
    	OMGF
    		Version: 5.3.9
    		Author: Daan from Daan.dev
    
    	Query Monitor
    		Version: 3.10.1
    		Author: John Blackbourn
    
    	Rank Math SEO
    		Version: 1.0.98.2
    		Author: Rank Math
    
    	RTNET SubSync
    		Version: 1.2
    		Author: rtnet.pl
    
    	Widget Context
    		Version: 1.3.2
    		Author: Kaspars Dambis
    
    	WooCommerce
    		Version: 6.9.3
    		Author: Automattic
    
    	WooCommerce Min/Max Quantities
    		Version: 3.0.2
    		Author: WooCommerce
    
    	WooCommerce Przelewy24 Payment Gateway
    		Version: 1.0.0
    		Author: DialCom24 Sp. z o.o.
    
    	WP Rollback
    		Version: 1.7.2
    		Author: GiveWP.com
    
    == Must-Use Plugins ==
    	Elementor Safe Mode
    		Version: 1.0.0
    		Author: Elementor.com
    
    	Health Check Troubleshooting Mode
    		Version: 1.8.0
    		Author: 
    
    	WordPress automation by Installatron
    		Version: 
    		Author: 
    
    == Wykorzystanie elementów ==
    	
    	archive : 1
    		archive-posts : 1
    		heading : 1
    	header : 1
    		html : 1
    		icon : 1
    		icon-list : 1
    		nav-menu : 1
    		search-form : 1
    		shortcode : 2
    		theme-site-logo : 1
    		woocommerce-menu-cart : 1
    	product : 1
    		shortcode : 1
    		sidebar : 1
    		template : 1
    		text-editor : 2
    		woocommerce-notices : 1
    		woocommerce-product-add-to-cart : 1
    		woocommerce-product-data-tabs : 1
    		woocommerce-product-images : 1
    		woocommerce-product-meta : 1
    		woocommerce-product-price : 1
    		woocommerce-product-related : 1
    		woocommerce-product-title : 1
    		woocommerce-product-upsell : 1
    	section : 14
    		animated-headline : 1
    		form : 1
    		icon-list : 4
    		image : 2
    		search-form : 2
    		shortcode : 2
    		slides : 2
    		text-editor : 2
    		woocommerce-breadcrumb : 1
    	single : 1
    		author-box : 1
    		divider : 1
    		facebook-comments : 1
    		heading : 2
    		post-info : 1
    		posts : 1
    		share-buttons : 1
    		theme-post-content : 1
    		theme-post-excerpt : 1
    		theme-post-featured-image : 1
    		theme-post-title : 1
    	widget : 0
    		template : 1
    	wp-post : 
    		call-to-action : 3
    		eael-contact-form-7 : 1
    		eael-data-table : 12
    		menu-anchor : 3
    		text-editor : 11
    	wp-page : 12
    		eael-login-register : 1
    	product-post : 0
    		eael-data-table : 152
    		heading : 2
    		image : 13
    		text-editor : 161
    	product-archive : 1
    		sidebar : 1
    		template : 1
    		woocommerce-archive-description : 1
    		woocommerce-products : 1
    
    == Eksperymenty z Elementorem ==
    	Zoptymalizowany wynik DOM: Nieaktywne
    	Ulepszone ?adowanie zasobów: Domy?lnie nieaktywne
    	Poprawione ?adowanie CSS: W??czono
    	Czcionka ikon: W??czono
    	Ulepszenia w zakresie dost?pno?ci: Domy?lnie nieaktywne
    	Dodatkowe niestandardowe punkty zmiany: Domy?lnie nieaktywne
    	Import i eksport zestaw szablonów: Domy?lnie aktywne
    	Ukryj natywne widgety WordPressa w wynikach wyszukiwania: Domy?lnie aktywne
    	admin_menu_rearrangement: Domy?lnie nieaktywne
    	Flexbox Container: Domy?lnie nieaktywne
    	Default to New Theme Builder: Domy?lnie aktywne
    	Strony docelowe: Domy?lnie aktywne
    	Próbnik kolorów: Domy?lnie aktywne
    	Ulubione widgety: Domy?lnie aktywne
    	Górny pasek administratora: Domy?lnie aktywne
    	Page Transitions: Domy?lnie aktywne
    	Notes: Domy?lnie aktywne
    	Form Submissions: Domy?lnie aktywne
    	Scroll Snap: Domy?lnie aktywne
    
    == Dziennik ==
    	
    Log: showing 20 of 332022-04-06 12:14:12 [info] Elementor data updater process has been completed. [array (
      'plugin' => 'Elementor Pro',
      'from' => '3.6.2',
      'to' => '3.6.4',
    )]
    2022-04-06 12:14:12 [info] Elementor data updater process has been queued. [array (
      'plugin' => 'Elementor Pro',
      'from' => '3.6.2',
      'to' => '3.6.4',
    )]
    2022-04-06 12:14:38 [info] elementor::elementor_updater Started 
    2022-04-06 12:14:38 [info] Elementor/Upgrades - _on_each_version Start  
    2022-04-15 11:49:42 [info] elementor::elementor_updater Started 
    2022-04-15 11:49:42 [info] Elementor/Upgrades - _on_each_version Start  
    2022-04-15 11:49:42 [info] Elementor/Upgrades - _on_each_version Finished 
    2022-04-15 11:49:42 [info] Elementor data updater process has been completed. [array (
      'plugin' => 'Elementor',
      'from' => '3.5.5',
      'to' => '3.5.6',
    )]
    2022-09-26 11:53:34 [info] Elementor data updater process has been queued. [array (
      'plugin' => 'Elementor',
      'from' => '3.5.6',
      'to' => '3.7.7',
    )]
    2022-09-26 11:53:36 [info] elementor::elementor_updater Started 
    2022-09-26 11:53:36 [info] Elementor/Upgrades - _on_each_version Start  
    2022-09-26 11:53:37 [info] Elementor/Upgrades - _on_each_version Finished 
    2022-09-26 11:53:37 [info] Elementor data updater process has been completed. [array (
      'plugin' => 'Elementor',
      'from' => '3.5.6',
      'to' => '3.7.7',
    )]
    2022-09-26 13:04:54 [info] Elementor data updater process has been queued. [array (
      'plugin' => 'Elementor Pro',
      'from' => '3.6.4',
      'to' => '3.7.7',
    )]
    2022-09-26 13:04:55 [info] elementor-pro::elementor_pro_updater Started 
    2022-09-26 13:04:55 [info] Elementor Pro/Upgrades - _on_each_version Start  
    2022-09-26 13:04:55 [info] Elementor Pro/Upgrades - _on_each_version Finished 
    2022-09-26 13:04:55 [info] Elementor Pro/Upgrades - _v_3_7_2_woocommerce_rename_related_to_related_products Start  
    2022-09-26 13:04:55 [info] Elementor Pro/Upgrades - _v_3_7_2_woocommerce_rename_related_to_related_products Finished 
    2022-09-26 13:04:55 [info] Elementor data updater process has been completed. [array (
      'plugin' => 'Elementor Pro',
      'from' => '3.6.4',
      'to' => '3.7.7',
    )]
    
    PHP: showing 5 of 5PHP: 2022-04-06 12:17:18 [error X 1][/home/tortelon/public_html/wp-content/plugins/elementor/includes/plugin.php::723] Uncaught Error: Class 'Elementor\Images_Manager' not found in /home/tortelon/public_html/wp-content/plugins/elementor/includes/plugin.php:723
    Stack trace:
    #0 /home/tortelon/public_html/wp-content/plugins/elementor/includes/plugin.php(635): Elementor\Plugin->init_components()
    #1 /home/tortelon/public_html/wp-includes/class-wp-hook.php(307): Elementor\Plugin->init('')
    #2 /home/tortelon/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #3 /home/tortelon/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #4 /home/tortelon/public_html/wp-settings.php(587): do_action('init')
    #5 /home/tortelon/public_html/wp-config.php(89): require_once('/home/tortelon/...')
    #6 /home/tortelon/public_html/wp-load.php(50): require_once('/home/tortelon/...')
    #7 /home/tortelon/public_html/wp-blog-header.php(13): require_once('/home/tortelon/...')
    #8 /home/tortelon/public_html/index.php(17): require('/home/tortelon/...')
    #9 {main}
      thrown [array (
      'trace' => '
    #0: Elementor\Core\Logger\Manager -> shutdown()
    ',
    )]
    PHP: 2022-04-06 14:00:30 [notice X 10][/home/tortelon/public_html/wp-content/plugins/elementor/core/common/modules/ajax/module.php::171] Undefined index: data [array (
      'trace' => '
    #0: Elementor\Core\Logger\Manager -> shutdown()
    ',
    )]
    PHP: 2022-06-03 13:45:13 [notice X 3][/home/tortelon/public_html/wp-content/plugins/elementor-pro/modules/dynamic-tags/acf/tags/acf-text.php::33] Undefined offset: 1 [array (
      'trace' => '
    #0: Elementor\Core\Logger\Manager -> shutdown()
    ',
    )]
    PHP: 2022-09-13 11:29:37 [notice X 5][/home/tortelon/public_html/wp-content/plugins/elementor/modules/usage/module.php::79] Undefined index: publish [array (
      'trace' => '
    #0: Elementor\Core\Logger\Manager -> shutdown()
    ',
    )]
    PHP: 2022-09-26 12:28:58 [warning X 5][/home/tortelon/public_html/wp-content/plugins/elementor/core/breakpoints/manager.php::420] Invalid argument supplied for foreach() [array (
      'trace' => '
    #0: Elementor\Core\Logger\Manager -> shutdown()
    ',
    )]
    
    JS: showing 4 of 4JS: 2022-04-26 07:36:46 [error X 5][https://www.abreo.pl/wp-content/plugins/elementor/assets/js/frontend.min.js:2:0]  
    JS: 2022-06-03 10:13:11 [error X 1][https://www.abreo.pl/wp-content/plugins/elementor/assets/js/editor-modules.min.js?ver=3.5.6:2:20179] An invalid argument supplied as multiple control value [array (
      'category' => 'InvalidElementData',
      'tag' => 'Element <code>undefined</code> got as <code>eael_data_table_header_col_icon_new</code> value. Expected array or object.',
    )]
    JS: 2022-06-03 11:34:40 [error X 4][https://www.abreo.pl/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.5.6:2:453888] T is null 
    JS: 2022-09-26 12:23:01 [error X 1][https://www.abreo.pl/wp-content/plugins/elementor-pro/assets/js/app.min.js?ver=3.7.7:2:27991] this.conditionsConfig is null 
    
    == Elementor - Compatibility Tag ==
    	
    	Elementor Pro: Kompatybilny
    	Essential Addons for Elementor: Kompatybilny
    
    == Elementor Pro - Compatibility Tag ==
    	
    	Essential Addons for Elementor: Kompatybilny
    
    • This reply was modified 2 years ago by tstep.
    • This reply was modified 2 years ago by tstep.
    • This reply was modified 2 years ago by tstep.
    Abhishek

    (@abhikr781)

    Hello,

    Please try to switch to any default theme like twnetytwnety and check if it is working or facing the same issue.

    Also try to use the default template of the single product page instead of elementor template and check the issue.

    Thread Starter tstep

    (@tstep)

    With twnetytwnety two or any other theme notification shows up – no issue.
    with ocean wp (both standard and child theme and also with default single product template) still have same issue.
    As i wrote in first post- after disabling all the plug-ins (only OceanWP + Woocommerce activated) problem still exist and notification is not shown.

    Hello @tstep & @abhikr781

    Same issue here:

    https://www.healthgarden.gr/product/solgar-no-flush-niacin-b3-500mg-%cf%83%cf%85%ce%bc%cf%80%ce%bb%ce%ae%cf%81%cf%89%ce%bc%ce%b1-%ce%b4%ce%b9%ce%b1%cf%84%cf%81%ce%bf%cf%86%ce%ae%cf%82-%ce%bd%ce%b9%ce%b1%cf%83%ce%af%ce%bd%ce%b7%cf%82-4/

    I noticed that the quantity of the product in the cart does not increase (whith or whithout the code provided above), however no message appears. I checked it too with other themes and it works.

    Regards

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Notification while trying to add to cart more than stock’ is closed to new replies.