• Resolved ellis926

    (@ellis926)


    Hello,

    I am receiving the following warning on the cart page of my site when I’ve selected Option A from the default Meta Group and added the product to my cart:

    Warning: trim() expects parameter 1 to be string, array given in /home/vydexcou/dev.suppleform.com/wp-includes/formatting.php on line 457
    Array

    The additional option price is also not being added to the total cost of the cart?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @ellis926,

    we are looking into this issue, for testing please re-save default meta once again.

    Thread Starter ellis926

    (@ellis926)

    Hello,

    I installed a plugin called ‘Ajax add to cart for WooCommerce’ and it seems to have fixed the issue but I’m now getting a duplicate of the item in my cart?

    One of the duplicates is showing the correct price whilst the other is showing the php warning explained earlier and incorrect price.

    Could this be something to do with ajax add to cart?

    • This reply was modified 7 years, 2 months ago by ellis926.

    Well, this issue should be fixed in ajax cart. We are sending data to cart the way woocommerce accept.

    Thread Starter ellis926

    (@ellis926)

    Okay, but it isn’t fixed?

    I’m still seeing a duplicate of the product in the cart.

    Are there any ajax cart options in the plugin that can be configured or is there something I can change in woocommerce settings?

    Kind Regards,
    Ellis

    Please disable ajax add to cart and the see if issue exists?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Warning: trim() expects parameter 1 to be string, array given in…’ is closed to new replies.