Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] E-mail is not triggering at Seller inventory update #26

Open
hugocostadev opened this issue Nov 19, 2021 · 8 comments
Open

[BUG] E-mail is not triggering at Seller inventory update #26

hugocostadev opened this issue Nov 19, 2021 · 8 comments

Comments

@hugocostadev
Copy link
Contributor

Hi there.

VTEX told that this functionality was already working with seller awareness and we release it for 22+ websites, but apparently is not.

When I fill the form with a product without stock and check the API value the seller object is getting the wrong one and put it as a default. The correct one should be called motorolaeudr

{
    "id": "2b9ebdd2-418a-11ec-82ac-16e3d3268643",
    "dataEntityId": "notify",
    "accountId": "94be96b9-8abc-4057-bae3-1a59e90213fd",
    "accountName": "motorolauk",
    "followers": [],
    "schemas": [
        "notify"
    ],
    "name": "s",
    "email": "[email protected]",
    "skuId": "304",
    "createdAt": "2021-11-09T18:23:53.828Z",
    "notificationSend": "false",
    "locale": "en-GB",
    "seller": {
        "sellerId": "1",
        "sellerName": "Motorola.co.uk",
        "addToCartLink": "https://portal.vtexcommercestable.com.br/checkout/cart/add?sku=304&qty=1&seller=1&sc=1&price=0&cv=7BDD73AE65C4DC2A07E2881E913C9698_&sc=1",
        "sellerDefault": true
    },
    "createdBy": "952dd5b6-6894-4ea0-8106-a2bff120636d",
    "createdBy_USER": {
        "Id": "952dd5b6-6894-4ea0-8106-a2bff120636d",
        "Login": "vrn--vtexsphinx--aws-us-east-1--motorolauk--notify--app_vtex.availability-notify@1.2.1",
        "Name": null
    },
    "createdIn": "2021-11-09T18:23:53.9415633Z",
    "lastInteractionBy": "952dd5b6-6894-4ea0-8106-a2bff120636d",
    "lastInteractionBy_USER": {
        "Id": "952dd5b6-6894-4ea0-8106-a2bff120636d",
        "Login": "vrn--vtexsphinx--aws-us-east-1--motorolauk--notify--app_vtex.availability-notify@1.2.1",
        "Name": null
    },
    "lastInteractionIn": "2021-11-09T18:23:53.9415633Z",
    "tags": [],
    "dataInstanceId": "2b9ebdd2-418a-11ec-82ac-16e3d3268643"
}

I tried to create a document with the correct Seller object and an SKU that has a stock to check if the email was triggered but did not work. I waited 2 hours and also ran the API to trigger the requests (Process all unsent request and Process all requests)

Document created:

 {
        "id": "491a9528-4968-11ec-82ac-0a9a526de39b",
        "dataEntityId": "notify",
        "accountId": "94be96b9-8abc-4057-bae3-1a59e90213fd",
        "accountName": "motorolauk",
        "followers": [],
        "schemas": [
            "notify"
        ],
        "sendAt": "",
        "createdAt": "2021-11-09T18:23:53.828Z",
        "email": "[email protected]",
        "name": "Hugo Costa test",
        "notificationSend": "false",
        "skuId": "373",
        "seller": {
            "sellerId": "motorolaeudr",
            "sellerName": "Motorola DR",
            "addToCartLink": "https://portal.vtexcommercestable.com.br/checkout/cart/add?sku=373&qty=1&seller=1&sc=1&price=0&cv=0CAF8478C06F8D5EC9C000523CC0339F_&sc=1",
            "sellerDefault": true
        },
        "createdBy": "bf2618e8-53f0-480a-bca6-f649df6921d2",
        "createdBy_USER": {
            "Id": "bf2618e8-53f0-480a-bca6-f649df6921d2",
            "Login": "vtexappkey-motorolauk-OQZJVZ",
            "Name": null
        },
        "createdIn": "2021-11-19T18:41:29.9738801Z",
        "lastInteractionBy": "bf2618e8-53f0-480a-bca6-f649df6921d2",
        "lastInteractionBy_USER": {
            "Id": "bf2618e8-53f0-480a-bca6-f649df6921d2",
            "Login": "vtexappkey-motorolauk-OQZJVZ",
            "Name": null
        },
        "lastInteractionIn": "2021-11-19T18:41:29.9738801Z",
        "tags": [],
        "dataInstanceId": "491a9528-4968-11ec-82ac-0a9a526de39b"
    }

I checked the .NET code and don't seem to be getting the Seller Stock quantity...

Marketplace account used: motorolauk
Seller account: motorolaeudr
Marketplace SKU Id: 373

We need a solution for that asap.

P.S: The maintainers could update the README to give the users more clear information on how to use and implement this app. It has already a PR for that. (#14)

Many thanks!

@Felipelourenco-dev
Copy link

Bom dia @hugocostadev obteve alguma resposta positiva sobre isso?

@hugocostadev
Copy link
Contributor Author

Oi @Felipelourenco-dev eu abri um ticket interno para a VTEX também e eles estão investigando.

@Felipelourenco-dev
Copy link

Valeu @hugocostadev vou abrir um também!

@ebigler
Copy link

ebigler commented Dec 13, 2021

@hugocostadev Brian's last 3 releases should clear things up for you.

v1.3.1
Check seller inventory when getting availability

v1.3.0
Updated default template and dependecy version
Added option to forward notifications to another account

Sellers can now add the name of the marketplace(s) that need inventory notifications
image

I believe @btalma mentioned another issues specific to motorola where the broadcaster was being blacklisted or blocked for some reason. If that's true, then you will also need to get sorted out because the notifier app relies on updates coming from the broadcaster.

@albertm805 may be able to answer any additional technical questions because he helped with troubleshooting and testing Brian's fixes.

@hugocostadev
Copy link
Contributor Author

Hi @ebigler , it's still not working, any news?
Thanks

@lokinmodar
Copy link

Any response about this? All is configured but no e-mail is sent when updating the stock for the items and calling the URL specified in the docs

@Hernan6275
Copy link

Is there any update about this issue??

@lokinmodar
Copy link

Any response about the app not working with stores with subaccounts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants