Show orders and account details (WooCommerce Account block)
Build Your App · AppPresser Docs
Show orders and account details (WooCommerce Account block)
এই নিবন্ধটি এখনও অনুবাদ করা হয়নি, তাই এটি ইংরেজিতে দেখানো হচ্ছে।
Your app journey: step 4 of 9, Add pages and features. New here? Read Start here: build your app with AppPresser first.
What you'll do: Add an account page where logged-in shoppers see their orders and account details on two tabs, ORDERS and ACCOUNT.
Before you start
- Install and activate the WooCommerce plugin on your WordPress website, with some published products. WooCommerce is the WordPress plugin for running an online shop.
- Install and activate the AppCommerce plugin, AppPresser's add-on for WooCommerce, on your WordPress website.
- Connect your app to your WordPress website. See Connect your WordPress site and turn on Features.
- Make sure shoppers can create an account on your website. They must log in to see their account.
Add the block
This block has no settings.
- In the left menu, under Customization, click Custom Pages.
- Click the name of the page you want to change. To make a new page instead, click Add New Page, type a title, keep Page Builder selected and click Create Page.
- Below the last block on the page, click Add Block.
- In Search blocks…, type WooCommerce Account, then click the block. It is added to the bottom of the page.
- Click Save Changes at the top of the editor.
- To see a new page in the App Preview, add it to a menu. See Add a page to your app menu.
If you chose WooCommerce when you made your app, AppPresser already made an Account page with this block. It also added an Account item to the More menu. That item is set to Only show when logged in, so shoppers see it only after they log in.
What you see in the app
When a shopper who is not logged in opens the page, a Login window opens with the words "Please login."
If they close the window, they see the ORDERS and ACCOUNT tabs with nothing under them.
After the shopper logs in:
- ORDERS shows their orders.
- ACCOUNT shows their picture, name and email, and an EDIT ACCOUNT button.
Check it as a logged-in shopper
The App Preview starts logged out. To see what a logged-in shopper sees:
- Make a test customer on your WordPress website. Do not use your admin account.
- In the App Preview, click More, then click your Account page. A Login window opens.
- Type the test customer's username and password, then click SUBMIT. An Account item now shows in the More menu.
Tips
Tips
- To move a block, drag it by its handle (the dots on the left). Click the arrow to fold it closed.
- To copy a block, click the Duplicate icon.
- To turn a setting on or off, click the switch itself, not the words next to it.
- After you save, open the page in the App Preview and check your changes.
Careful: The trash icon removes a block right away. Check before you click.
You're done when the block shows on your page in the App Preview.
Next step
Show a list of courses (LearnDash Course List block)
Related articles
এটি কি সহায়ক ছিল?
টাইপ করার সাথে সাথে ফলাফল আপডেট হয়। অনুসন্ধানে যেতে স্ল্যাশ চাপুন।
খুঁজে পাচ্ছেন না?
আমাদের সাপোর্ট টিম সেটআপ, বিল্ড ও app store সংক্রান্ত প্রশ্নে সাহায্য করতে পারে।





