Support » Plugin: Quantity Field on Shop Page for WooCommerce » Notice: id was called incorrectly

  • Hello,

    Very good plugin and thank you.

    I am getting an error with the latest WordPress and Woocommerce.

    Notice: id was called incorrectly. Product properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’)

    Could you please change $product->id to .$product->get_id();

    Also it would be better to give the option to remove the text quantity.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Ranjith


    One more thing. I don’t want to show ‘item added’ text after the item has been added as there is already a tick mark, which comes default.

    Plugin Author wooassist


    @ranjithkh thanks for pointingout the notice, this has been updated now. about the quantity text and the item added you can hide them using CSS.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notice: id was called incorrectly’ is closed to new replies.