• Resolved Ceylon Themes

    (@ceylonthemes)


    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)
  • Plugin Contributor codersantosh

    (@codersantosh)

    Hello @ceylonthemes

    The default hooks of WooCommerce uses 3 parameters on woocommerce_loop_add_to_cart_link , your theme modifying it and only using 2 parameters. This is causing the issue. You should correct it on new-york-business-pro\woocommerce\add-to-cart.php, may be other themes of yours.

    Regarding font-awesome I would like to suggest you to read this documentation
    Font Awesome Support or Font Awesome version can be change from Dashboard => Gutentor => Settings => General.

    If you have a further query let me know in detail.

    Best Regards!

Viewing 1 replies (of 1 total)
  • The topic ‘Product page not displaying’ is closed to new replies.