• Hello,

    I’m investigating this plugin and found something interesting. I set for some products the cart item data with custom data. But when a product is added to the cart by this plugin the cart item data is not set.

    Look at line 489 in wp-content/plugins/one-click-order-reorder/includes/ced-click-n-go-class.php

    The code says:
    $add_to_cart = WC()->cart->add_to_cart ( $product_id, $qty, $variation_id, $all_variations );

    Is there a reason why the cart item data is not added? And if so wouldn’t it be better to add a filter by which the developer could set the custom data?

    Regards,
    Jacob

  • The topic ‘Cart item data not set adding to cart’ is closed to new replies.