#Docs not updated for Digital Products the Storefront Next.js part the Documentation is not updated

47 messages · Page 1 of 1 (latest)

quasi sundial
#

Yes, it seems that the documentation for the frontend of the Digital Products feature is not updated. The code provided in the documentation contains incorrect routes and imports. However, the admin section (the backend) has been updated and works well.

It appears that the frontend has been recently updated, but the documentation for it has not been updated accordingly.

Has anyone else encountered this issue with the new Storefront for Digital Products?

turbid turret
#

What is the issue?

leaden hollow
#

I think is this part, I have the same problem, where I find medusaRequest function?

quasi sundial
#

@turbid turret This part appears in the doc, but the medusaReqeust function does not really exist, I think it is a fictitious function that they have there so that everyone can handle the request.

quasi sundial
#

The Docs aren't updated

turbid turret
#

What is the URL of the doc?

quasi sundial
quasi sundial
#

Maybe it need to be reported the

turbid turret
#

This has not changed for 3 months

#

Import the missing function from @medusajs/medusa

#

Also you are not blindly overwriting the index.ts right?

quasi sundial
#

Did you try your self? @turbid turret

medusaReqeust function does not exist....

By importing only @medusa/medusa it will work?

turbid turret
#

"Import the missing function from @medusajs/medusa" as I said

quasi sundial
quasi sundial
west mountain
#

Read again.

quasi sundial
#

Hahahah 🤣🤣🤣

west mountain
#

That being said medusaRequest was in the old version of Next.js Starter

quasi sundial
quasi sundial
quasi sundial
turbid turret
#

If the above code is your try it is wrong

quasi sundial
# quasi sundial

@turbid turret i believe you meantion this right, it can't find medusaRequest

turbid turret
#

ok so latest version has no medusaRequest

#

medusaClient might be the right path

leaden hollow
#

yes, i think that medusaClient is the way, but how can I add this object to medusaClient? I need to get product_medias like to documentation, but it doesnt show

turbid turret
#

But this is a product query that you need to do here, no?

leaden hollow
#

of Course, I did all steps that documentation show for the backend, so then I need to get this digital products or productMedia like documentation

quasi sundial
turbid turret
#

check medusaClient.client.request

quasi sundial
quasi sundial
#

But now the checkout for the frontend it not updated...

quasi sundial
leaden hollow
turbid turret
#

Dont use foreaxh it will not work with promise.all use map

leaden hollow
turbid turret
#

401 unauthorized, probably wrong credentials for sendgrid

leaden hollow
turbid turret
#

Check sendgrid logs please

leaden hollow
turbid turret
#

Yes

leaden hollow
# turbid turret Yes

thanks this work , just a last question, Where do I look for more information about the name I should put in my dynamic send grid template so that the urls are displayed? i use this {{digital_download_urls}} and {{urls}} but doens't work