Shortcodes for WooCommerce

Shortcodes are codes that can make your job creation a lot easier. You can also use them when creating a WooCommerce e-shop . We use them to create pages in a text editor. To learn more about working in a text editor, see How to use a WordPress text editor .

Shortkódy pre WooCommerce

To insert the short code, you need to copy the entire code. When copying the code, do not omit the parentheses, they are part of it. Paste the copied shortcode on the page.

You can enter codes, for example, for a product image, image gallery, add to cart, cash register page view, and so on. These codes can also be inserted into the page header or footer and widgets.

The most used shortcodes for WooCommerce are:

[woocommerce_cart] – displays the cart page
[woocommerce_checkout] – displays the cash register page
[woocommerce_my_account] – Displays the user’s account page
[woocommerce_order_tracking] – Displays the order tracking form
[add_to_cart id=”99″] – adds a specific product to the cart

Short codes for products

[best_selling_products per_page=”12″] – the best-selling products
[top_rated_products per_page=”12″] – the most rated products
[on_sale_products per_page=”12″] – goods at a discount
[recent_products per_page=”12″] – the latest products
[product_category] – displays goods in a specific category
[product_categories] – Displays your product categories
[product_attribute attribute=”color” filter=”black”] – displays the goods according to the specified attribute

For more information, see the official documentation: docs.woocommerce.com

WordPress Návod v PDF

LEAVE A REPLY

Please enter your comment!
Please enter your name here