End of Year Sale: 30% off your first year on annual plans. Use code AP5-30-OFF See plans

Show your products (WooCommerce Products block)

Build Your App · AppPresser Docs

Show your products (WooCommerce Products 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: Show the products from your online shop with the WooCommerce Products block. Shoppers tap a product to see it and add it to their cart.

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

  1. In the left menu, under Customization, click Custom Pages.
  2. 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.
  3. Below the last block on the page, click Add Block.
  4. In Search blocks…, type WooCommerce Products, then click the block. It is added to the bottom of the page.
  5. Leave the settings as they are to show products that are in stock, or change them. See Settings below.
  6. Click Save Changes at the top of the editor.
  7. To see a new page in the App Preview, add it to a menu. See Add a page to your app menu.

Lower WooCommerce Products settings such as Infinite Scroll and Make Shop Page in the editor, with the Shop page in the App Preview

If you chose WooCommerce when you made your app, AppPresser already made Shop, Categories, Cart and Account pages for you. The Shop page uses this block.

What you see in the app

Each product shows its picture, name, price and a short description. The list can show gray boxes for 10 to 20 seconds while it loads.

The WooCommerce Products settings in the editor, with a product open in the App Preview

The Shop page in the App Preview listing products with pictures, names, prices and descriptions

Shoppers tap a product to open it. The product page shows the picture, a share button, a heart for the wishlist, the name, the price and the description.

A product page in the App Preview with the share button and the wishlist heart over the product picture

They use the minus and plus buttons to change the Quantity.

The Quantity minus and plus buttons above the ADD TO CART button on a product page

Under the description, Related Products shows other products.

Related Products cards under a product, each with a picture, name and price

When they tap ADD TO CART, the cart icon at the top shows how many items are in the cart.

A product page after tapping ADD TO CART, with the cart icon at the top showing 1

Settings

Swipe sideways to see the rest of this table.

SettingWhat it does
ParametersChooses which products show. It starts as stock_status=instock, which shows only products in stock.
DisplayHow each product looks. It starts on Card.
Infinite ScrollLoads more products when shoppers reach the bottom. Use it only if nothing else is below the list.
Display search button in headerAdds a search button at the top of the page.
Show ReviewsShows reviews on the product page.
Add refresh button above list (not recommended)Adds a refresh button.
Hide FilterHides the filter button.
Filter CategoriesLimits which categories show in the filter. For advanced users.
Make Shop PageMakes this page your app's main shop page. Your app needs one.

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 your product categories (WooCommerce Categories block)

क्या यह मददगार था?

नहीं मिल रहा?

हमारी सहायता टीम सेटअप, बिल्ड और app store से जुड़े प्रश्नों में मदद कर सकती है।