• If there is a variable product in the cart (that includes a code entered with “Product Code for WooCommerce” plugin), clicking on the POS payment button, the following error appears

    Unexpected token … is not valid JSON

    This error only occurs with variable products that contain a “Product Code for WooCommerce” code, but not on simple products.

    I wrote this problem to the developer of that module
    (check this topic >> https://www.ads-software.com/support/topic/compatibility-problem-19/ )
    and he suggested to add “some code” in the POS module …

    I will ask the developer to look at this, but there is no compatibility problem. “Point of Sale for WooCommerce” is designed to work only with the native WooCommerce fields. The developers of that plugin would have to include hooks to pass the custom “Product Code for Woocommerce” fields through their plugin for POS use. There is nothing we could do to make custom fields work with that plugin. The best course of action would be for you to ask them to add some code to hook the Product Code fields.

    Is it possible to add this code?

    • This topic was modified 2 years, 2 months ago by flyangel.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter flyangel

    (@flyangel)

    Any news?

    Plugin Author kilbot

    (@kilbot)

    I haven’t had a chance to look at this particular case yet. I’m currently making some major upgrades to the way the POS works which will allow it to be more flexible when dealing with additional data from WooCommerce plugins.

    I would be keen to take a look after the new version is released. I don’t have a timeframe on that but you can follow the development of the new version here: https://github.com/wcpos. There is also a Discord server if you want to talk through the error message, we may be able to at least prevent the error message: https://wcpos.com/discord.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Compatibility problem with “Product Code for Woocommerce” fields’ is closed to new replies.