WooCommerce comes with several shortcodes that can be used to insert
content inside posts and pages. The following shortcodes are inserted
into pages upon installation and should not need to be used anywhere
else.
Args: none
Args: none
Args: none
Args:
Args:
WooCommerce > 2.1.x Shortcodes:
- [woocommerce_cart] – shows the cart page
- [woocommerce_checkout] – shows the checkout page
- [woocommerce_order_tracking] – shows the order tracking form
- [woocommerce_my_account] – shows the user account page.
WooCommerce < 2.1.x Shortcodes:
- [woocommerce_edit_account] – Edit account pages
- [woocommerce_change_password] – shows the change password page
- [woocommerce_view_order] – shows the user account view order page
- [woocommerce_logout] – shows the logout page
- [woocommerce_pay] – shows the checkout pay page
- [woocommerce_thankyou] – shows the order received page
- [woocommerce_lost_password] – shows the lost password page
- [woocommerce_edit_address] – shows the user account edit address page.
Cart
Used on the cart page, the cart shortcode displays the cart contents and interface for coupon codes and other cart bits and pieces.Args: none
[woocommerce_cart]
Checkout
Used on the checkout page, the checkout shortcode displays the checkout process.Args: none
[woocommerce_checkout]
Order Tracking Form
Lets a user see the status of an order by entering their order details.Args: none
[woocommerce_order_tracking]
My Account
Shows the ‘my account’ section where the customer can view past orders and update their information. You can specify the number or order to show, it’s set by default to 15 (use -1 to display all orders.)Args:
array( 'current_user' => '', 'order_count' => '15' )
[woocommerce_my_account order_count="12"]
Current user argument is automatically set using get_user_by( ‘id’, get_current_user_id() ).
The following shortcodes can be used anywhere you want:Recent Products
Lists recent products – useful on the homepage. The ‘per_page’ shortcode determines how many products to show on the page and the columns attribute controls how many columns wide the products should be before wrapping.Args:
array( 'per_page' => '12', 'columns' => '4', 'orderby' => 'date', 'order' => 'desc' )
[recent_products per_page="12" columns="4"]
Thank you for sharing excellent information. Your website is very cool. Fully useful your blog post... Shopping online site in india
ReplyDelete