Product page not displaying
-
Product page not displaying with themes with custom add to cart button,
————woocommerce/add-to-cart.php——————
echo apply_filters(
‘woocommerce_loop_add_to_cart_link’,
sprintf(
‘%6$s‘,
esc_url( $product->add_to_cart_url() ),
esc_attr( isset( $quantity ) ? $quantity : 1 ),
esc_attr( $ecommerce_plus_prod_id ),
esc_attr( $product->get_sku() ),
esc_attr( isset( $class ) ? $class : ‘button’ ),
esc_html( $product->add_to_cart_text() )
),
$product
);—————Errors———————–
: Uncaught ArgumentCountError: Too few arguments to function Gutentor_Extend_Api::alter_cart_link(), 2 passed in /delightfulamusement/wordpress/wp-includes/class-wp-hook.php on line 303 and exactly 3 expected in /delightfulamusement/wordpress/wp-content/plugins/gutentor/includes/tools/class-gutentor-extend-api.php:272 Stack trace: #0 /delightfulamusement/wordpress/wp-includes/class-wp-hook.php(303): Gutentor_Extend_Api->alter_cart_link() #1 /delightfulamusement/wordpress/wp-includes/plugin.php(189): WP_Hook->apply_filters() #2 /delightfulamusement/wordpress/wp-content/themes/storefront-pro/woocommerce/add-to-cart.php(19): apply_filters() #3 /delightfulamusement/wordpress/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/delightfulamus...')
How to fix the errors ?
In addition to that gutentor alters all the theme fontawesome icons.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Product page not displaying’ is closed to new replies.