# 快速定制活動頁
## 0, 活動頁結構
```
Header and footer
Posts
CTA Buttons
Headers
Pop-Ups
Gallery
```
## 1,基于tags制作商品列表 , Product collection / Product Sets ,
例如: 在相關商品加上`winterwear` 的tag,則可以直接url訪問 相關 collection.
`https://woocommerce.liang/index.php/product-tag/winterwear/`
## 2, 特征 Collection, [新品推薦,熱銷商品,推薦商品]
制作獨立Php頁面模板,生成相關特征page:
~~~
// Get 10 most recent product IDs in date descending order.
$query = new WC_Product_Query( array(
'limit' => 10,
'orderby' => 'date',
'order' => 'DESC',
'return' => 'ids',
) );
$products = $query->get_products();
~~~
## 3,促銷活動頁面 (Snap Deals) , 秒殺類
如上
## 4,活動頁的指定商品列表 product_widget
1,首先定制 page php模板文件
2,后臺生成 活動頁 Page, 選擇(1)頁面模板,
3,頁面模板里面引用 相關活動 tag 作為商品動態列表,其他html都寫死。 然后,see more 就跳轉到 完整tag 列表頁,可以分頁。
~~~
[products limit=”3” tag=”winterwear”]
~~~
## 5,用古藤堡編輯器做活動頁面/ landing page /落地頁
參考:[Ready to Import Starter Websites with Astra Wordpress Theme (wpastra.com)](https://wpastra.com/starter-templates/?category=free&page-builder=gutenberg)
也可以用elementor編輯器 試試 ,elementor是更強大更容易操作的頁面編輯器。
[Home - Eco Shop | Elementor Kit Library](https://library.elementor.com/eco-shop/)