1.Form Giỏ hàng
[php]
[woocommerce_cart]
[/php]
2. Form thanh toán
[php]
[woocommerce_checkout]
[/php]
Form tài khoản
[php]
[woocommerce_my_account]
[/php]
form track order
[php]
[woocommerce_order_tracking]
[/php]
Sản phẩm nổi bật
[php]
[featured_products]
[/php]
Sản phẩm khuyến mãi
[php]
[sale_products]
[/php]
Các Sản Phẩm Bán Chạy Nhất
[php]
[best_selling_products]
[/php]
Sản phẩm mới
[php]
[recent_products]
[/php]
sản phẩm liên quan
[php]
[related_products]
[/php]
Sản phẩm bình chọn tốt nhất
[php]
[top_rated_products]
[/php]
Sẽ hiển thị các sản phẩm trong một danh mục sản phẩm được chỉ định.
[php]
[product_category category=”appliances”]
[/php]
Hiển thị các danh mục sản phẩm
[php]
[product_categories number = “12” parent = “0”]
[/php]
Hiển thị sản phẩm theo ID hoặc mã sản phẩm
[php]
[product id=”99″]
[product sku=”FOO”]
[/php]
Hiển thị full giao diện trang sản phẩm theo ID hoặc SKU
[php]
[product_page id=”99″]
[product_page sku=”FOO”]
[/php]
Hiển thị sản phẩm theo thuộc tính
[php]
[product_attribute attribute=’color’ filter=’black’]
[/php]
Shortcode tùy chọn dành cho sản phẩm
[php]
[products]
[/php]
trong shortcode này có các trường tùy biến sau :
// – limit ( integer )
// – columns ( integer )
// – paginate ( true or false )
// – orderby
+ date – Ngày sản phẩm được xuất bản.
+ id – ID bài đăng của sản phẩm.
+ menu_order – Thứ tự Menu, nếu được đặt (số thấp hơn hiển thị đầu tiên).
+ popularity – Số lượng mua hàng.
+ rand – ngẫu nhiên
+ rating – Đánh giá sản phẩm trung bình.
+ title- Tiêu đề sản phẩm.
// – skus
// – category
// – order
// – class
// – on_sale (best_selling ,top_rated)
// – attribute
// – terms
// – terms_operator ( AND,IN ,NOT IN)
// – visibility ( visible ,catalog , search , hidden ,featured)
//category
// cat_operator ( AND,IN , NOT IN)
// ids
// skus
//best_selling (true or false)
// on_sale (true or false)
1 số ví dụ :
Hiển thị sản phẩm giảm giá ngẫu nhiên
[php]
[products limit=”4″ orderby=”popularity” class=”quick-sale” on_sale=”true” ]
[/php]
Hiển thị sản phẩm nổi bật
[php]
[products limit=”4″ visibility=”featured” ]
[/php]
hiển thị sản phẩm bán chạy nhất
[php]
[products limit=”3″ best_selling=”true” ]
[/php]
Sản phẩm mới nhất
[php]
[products limit=”4″ orderby=”id” order=”DESC” visibility=”visible”]
[/php]
hiển thị sản phẩm trong danh mục
[php]
[products limit=”8″ category=”hoodies, tshirts” cat_operator=”AND”]
[/php]
Hiển thị sản phẩm theo thuộc tính
[php]
[products attribute=”season” terms=”warm” orderby=”date”]
[/php]