• Resolved lorianqw

    (@lorianqw)


    Hi

    I use your plugin to display orders in google sheets. however, there is a problem. if the client orders the same one, then the plugin duplicates the numbers entered for the first time in the phone field and now if I enter other phones for the same email for the order, it always duplicates the first numbers. this is bad. customers may have different order numbers. the customer could have made a mistake with the number. etc.
    Also, the plugin does not understand the phone format for some reason.
    those. if you enter the number in the format of the country. there is an error in google sheets.

    screen with problems

    https://prnt.sc/4PSUvWLAqvoD

    other question. in what form to add a constant so that a custom field is transferred to the Google table? I have two additional fields in the cart – date of birth and club.

    I tried {{ customer.club }} and {{ customer.birthday }} but this is not work

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support rzepsen

    (@rzepsen)

    Hello @lorianqw

    Thank you for your message. Could you send me your automation settings screenshot?

    I would be grateful if you would also send your WordPress, WooCommerce, PHP and our plugin version on your store.

    You can use only available placeholders. Here is a complete list of it, and you won’t find there such a placeholder you used in your automation. Could you send me a screen of this additional fields in the cart? I would like to discuss this problem with developers.

    Many thanks.

    Thread Starter lorianqw

    (@lorianqw)

    first of all when I click on edit the created Actions it looks like this
    https://prnt.sc/65Kj4jLNqL8N
    I need to click Add field again many times as many as I have fields. This is a problem. why doesn’t he remember?
    these are the fields that I have added
    https://prnt.sc/ZEw30O1ZZOrr

    Thread Starter lorianqw

    (@lorianqw)

    WordPress 6.2.2

    ShopMagic for WooCommerce 4.0.2

    ShopMagic for Google Sheets 2.0.1

    WooCommerce 7.8.2

    PHP 8.0.28

    Plugin Support rzepsen

    (@rzepsen)

    Hello @lorianqw

    Many thanks,

    Ok, I have divided the response to your submission into several problems, which will make it easier to understand. I hope ??

    First problem:

    This is how placeholder customer works in ShopMagic, i.e. after the first order it saves the customer data and does not update it afterward. Placing orders for the same user with new data will not update the customer data.

    If you want to have the data that was actually entered in the form, you have to use placeholders from the order group, i.e. order.billing_email should be used instead of customer.email, but…. we don’t have an order.billing_phone placeholder. ?There is only customer.phone, which will actually be the same for each order.

    I have notified our developers about this feature. I have added you to the list of people interested in it and will let you know when it happens.

    Second problem:

    Actually, there is an error in Google Sheet add-on. When the automation is opened, the previously entered fields are hidden. The client does not have to do choose ‘add field‘ button each time, as they are in these settings stored in the database. It does not affect the performance of the call, although it can be annoying.


    We apologize for the inconvenience, the problem has been reported as an error, and our technicians are trying to resolve it as soon as possible. As soon as I receive further information on this subject, I will notify you immediately.

    Third problem:

    The customer number data from the order is not processed in any way, so you can enter it as you would for WooCommerce: with country format, with spaces etc. Perhaps Google Sheet treats a field that starts with e.g. +48123123123 as something to calculate.

    Fourth problem:

    You can reach for additional fields if they are stored as meta fields in the order. Just make sure under which key it is stored in the database. e.g. {{ order.meta | key: '_club' }}

    More info about this mechanism you will find in this guide

    If you have any further questions, let me know.

    Best regards,

    Plugin Support rzepsen

    (@rzepsen)

    Hello @lorianqw

    As we haven’t got any replies, I’m marking this topic as resolved for now.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘custom fields and phone duplicate’ is closed to new replies.