Solved

How to create a customer account edit page similar to existing ones?

Asjas
Excursionist
19 3 3

Hi,

 

I want to create a customer account edit page similar to the `customer/addresses.liquid` and `customer/account.liquid` pages. I created a `customer/edit.liquid` file but when I navigate to `/account/edit` or `/edit` on the website it's not finding a page there.

What files would I need to edit for that URL to link to that file?

Accepted Solutions (2)
Asjas
Excursionist
19 3 3

This is an accepted solution.

I saw Advanced Customer Apps using that URL so I assumed it was possible. 🤷‍♂️

 

I decided to add my own Customer Account Edit functionality with React to the `/account` page and it works if I query my Node.js backend for the customer details. And I'll be able to allow the customer to edit their account details that way and then update the details in Shopify. So I found a way to make it work 🙂 

View solution in original post

PaulNewton
Shopify Partner
6275 573 1323

This is an accepted solution.

As far as I know App Proxies only work in public apps, I can't use that.

Future readers:

https://www.shopify.com/partners/blog/shopify-public-apps

 

https://community.shopify.com/c/Shopify-APIs-SDKs/Working-solution-that-replaces-private-apps-url-pr...

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


View solution in original post

Replies 7 (7)

Asjas
Excursionist
19 3 3

Does anyone know how to create a page that can be loaded on a URL and not throw a 404? 🙂

PaulNewton
Shopify Partner
6275 573 1323

I created a `customer/edit.liquid` file but when I navigate to `/account/edit` or `/edit` on the website it's not finding a page there

Not how shopify themes work, did you follow some documentation saying it would? please link if so.

Specific templates map to specific url endpoints, so adding an arbitrarily named file to a theme does not create a brand new custom endpoint.

The simplest you could do is make an alternate template and then create a redirect to it.

Review https://shopify.dev/tutorials/develop-theme-templates

 

For user inputs shopify themes have a very minmal surface area that is very purposeful is not likely to change.

So you can only use the prescribed fields exposed by the default liquid forms to make custom forms.

To allow in depth customer editing you will need an app.

 

note to self: file to urlviz

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


Asjas
Excursionist
19 3 3

This is an accepted solution.

I saw Advanced Customer Apps using that URL so I assumed it was possible. 🤷‍♂️

 

I decided to add my own Customer Account Edit functionality with React to the `/account` page and it works if I query my Node.js backend for the customer details. And I'll be able to allow the customer to edit their account details that way and then update the details in Shopify. So I found a way to make it work 🙂 

PaulNewton
Shopify Partner
6275 573 1323

Also see Proxy apps docs

 https://shopify.dev/tutorials/display-data-on-an-online-store-with-an-application-proxy-app-extensio...

And related topics in the forums

 https://community.shopify.com/c/forums/searchpage/tab/message?filter=location&q=customer%20account%...

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


Asjas
Excursionist
19 3 3

As far as I know App Proxies only work in public apps, I can't use that.
I'm able to modify my own theme and I can add my own JS scripts as well so I have a working solution.

PaulNewton
Shopify Partner
6275 573 1323

This is an accepted solution.

As far as I know App Proxies only work in public apps, I can't use that.

Future readers:

https://www.shopify.com/partners/blog/shopify-public-apps

 

https://community.shopify.com/c/Shopify-APIs-SDKs/Working-solution-that-replaces-private-apps-url-pr...

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


chelux
Excursionist
38 0 8

Im looking to do this same thing. What did you add to the backend?