Add a shopping cart (WooCommerce Cart block)
Build Your App · AppPresser Docs
Add a shopping cart (WooCommerce Cart 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 a cart page where shoppers check their items and go to checkout.
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.
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 Cart, 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 a Cart page with this block on it.
What you see in the app
When the cart is empty, the block says "Cart is empty." and shows a GO TO SHOP button.
When a logged-in shopper has added products, the cart shows:
- Each product with its picture, price and quantity.
- The Cart total at the top.
- A CHECKOUT button.
- A CLEAR CART button, which empties the cart.
Checkout works only in the app on a real phone or tablet.
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.
- Add a product to the cart.
- Open the Cart page.
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
Add a wishlist (WooCommerce Wishlist block)
Related articles
இது உதவியாக இருந்ததா?
தட்டச்சு செய்யும்போதே முடிவுகள் புதுப்பிக்கப்படும். தேடலுக்குச் செல்ல ஸ்லாஷ் அழுத்துங்கள்.
கிடைக்கவில்லையா?
எங்கள் ஆதரவுக் குழு அமைவு, உருவாக்கம் மற்றும் app store கேள்விகளில் உதவ முடியும்.



