Fatal error: Uncaught Error: Call to a member function is_in_stock() on null in /htdocs/zone.abibdigit.com/wp-content/themes/motta/inc/woocommerce/product-card.php:618
Stack trace:
#0 /htdocs/zone.abibdigit.com/wp-includes/class-wp-hook.php(326): Motta\WooCommerce\Product_Card->custom_cart_button_text('Add to cart')
#1 /htdocs/zone.abibdigit.com/wp-includes/plugin.php(205): WP_Hook->apply_filters('Add to cart', Array)
#2 /htdocs/zone.abibdigit.com/wp-content/plugins/woocommerce/includes/class-wc-product-simple.php(62): apply_filters('woocommerce_pro...', 'Add to cart', Object(WC_Product_Simple))
#3 /htdocs/zone.abibdigit.com/wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductSchema.php(483): WC_Product_Simple->add_to_cart_text()
#4 [internal function]: Automattic\WooCommerce\StoreApi\Schemas\V1\ProductSchema->get_item_response(Object(WC_Product_Simple))
#5 /htdocs/zone.abibdigit.com/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractProductGrid.php(114): array_map(Array, Array)
#6 /htdocs/zone.abibdigit.com/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractBlock.php(88): Automattic\WooCommerce\Blocks\BlockTypes\AbstractProductGrid->render(Array, '', Object(WP_Block))
#7 /htdocs/zone.abibdigit.com/wp-includes/class-wp-block.php(537): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->render_callback(Array, '', Object(WP_Block))
#8 /htdocs/zone.abibdigit.com/wp-includes/class-wp-block.php(517): WP_Block->render()
#9 /htdocs/zone.abibdigit.com/wp-includes/class-wp-block.php(517): WP_Block->render()
#10 /htdocs/zone.abibdigit.com/wp-includes/blocks.php(2190): WP_Block->render()
#11 /htdocs/zone.abibdigit.com/wp-includes/blocks.php(2242): render_block(Array)
#12 /htdocs/zone.abibdigit.com/wp-includes/class-wp-hook.php(324): do_blocks('<!-- wp:woocomm...')
#13 /htdocs/zone.abibdigit.com/wp-includes/plugin.php(205): WP_Hook->apply_filters('<!-- wp:woocomm...', Array)
#14 /htdocs/zone.abibdigit.com/wp-includes/post-template.php(256): apply_filters('the_content', '<!-- wp:woocomm...')
#15 /htdocs/zone.abibdigit.com/wp-content/themes/motta/template-parts/page/content-page.php(13): the_content()
#16 /htdocs/zone.abibdigit.com/wp-includes/template.php(812): require('/htdocs/zone.ab...')
#17 /htdocs/zone.abibdigit.com/wp-includes/template.php(745): load_template('/htdocs/zone.ab...', false, Array)
#18 /htdocs/zone.abibdigit.com/wp-includes/general-template.php(206): locate_template(Array, true, false, Array)
#19 /htdocs/zone.abibdigit.com/wp-content/themes/motta/page.php(22): get_template_part('template-parts/...', 'page')
#20 /htdocs/zone.abibdigit.com/wp-includes/template-loader.php(106): include('/htdocs/zone.ab...')
#21 /htdocs/zone.abibdigit.com/wp-blog-header.php(19): require_once('/htdocs/zone.ab...')
#22 /htdocs/zone.abibdigit.com/index.php(17): require('/htdocs/zone.ab...')
#23 {main}
thrown in /htdocs/zone.abibdigit.com/wp-content/themes/motta/inc/woocommerce/product-card.php on line 618