<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Victor Hung%27s Diary</title>
	<atom:link href="https://taskinghouse.com/posts/tag/%e8%b6%85%e5%95%86%e5%8f%96%e8%b2%a8/feed/" rel="self" type="application/rss+xml" />
	<link>https://taskinghouse.com</link>
	<description></description>
	<lastBuildDate>Thu, 04 Jul 2019 07:30:44 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://taskinghouse.com/wp-content/uploads/2018/05/cropped-favicon.png</url>
	<title>超商取貨 &#8211; TaskingHouse</title>
	<link>https://taskinghouse.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>「教學」設定 WooCommerce 超商取貨最大重量/數量限制</title>
		<link>https://taskinghouse.com/posts/woocommerce-shipping-methods-cvs-based-on-weight-or-quantity/</link>
		
		<dc:creator><![CDATA[Victor Hung]]></dc:creator>
		<pubDate>Thu, 04 Jul 2019 12:00:07 +0000</pubDate>
				<category><![CDATA[WooCommerce]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[教學]]></category>
		<category><![CDATA[數量限制]]></category>
		<category><![CDATA[超商取貨]]></category>
		<category><![CDATA[重量限制]]></category>
		<guid isPermaLink="false">https://diary.taskinghouse.com/?p=3169</guid>

					<description><![CDATA[<p>無論是 7-11 統一超商或全家便利商店的店到店寄貨規範，都有限制尺寸長寬高相加必須小於 105 公分，且單邊長度小於 45 公分，而總重量不得超過 5 公斤。...</p>
<p>這篇文章 <a rel="nofollow" href="https://taskinghouse.com/posts/woocommerce-shipping-methods-cvs-based-on-weight-or-quantity/">「教學」設定 WooCommerce 超商取貨最大重量/數量限制</a> 最早出現於 <a rel="nofollow" href="https://taskinghouse.com">TaskingHouse</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>無論是 7-11 統一超商或全家便利商店的店到店寄貨規範，都有限制尺寸長寬高相加必須小於 105 公分，且單邊長度小於 45 公分，而總重量不得超過 5 公斤。除了透過設定商品運送類別，決定是否可以使用指定的運送方式外，本文教你透過外掛設定超商取貨（或其他運送方式）的重量/數量上限，當顧客購買超過指定重量/數量時，就無法選擇超商取貨（或其他運送方式）</p>
<p>首先安裝 <strong>ELEX Hide WooCommerce Shipping Methods Plugin</strong> 這套外掛<br />
<a href="https://elextensions.com/plugin/conditionally-hide-woocommerce-shipping-methods-plugin/" target="_blank" rel="noopener">https://elextensions.com/plugin/conditionally-hide-woocommerce-shipping-methods-plugin/</a></p>
<p>外掛的設定頁面很簡單，只有建立規則，以及管理規則兩個頁籤。我們在建立規則的頁籤設定篩選器：</p>
<ol>
<li>Shipping Class 選擇運送類別，因為我們是建立針對所有商品都適用的全域設定則不用選。</li>
<li>Order Weight 訂單重量限制，我們依照超商限制，設定為大於等於 5 公斤。</li>
<li>Shipping Methods 運送方式，我們可以選擇「超商取貨」以外的所有運送方式。</li>
</ol>
<p>設定完成後按儲存並繼續</p>
<p><img decoding="async" src="https://taskinghouse.com/wp-content/uploads/2019/07/woocommerce-shipping-methods-cvs-based-on-weight-or-quantity-01.png" alt="" /></p>
<p>第二步隱藏運送方式，我們設定的規則就是超過 5 公斤不能超商取貨，因此在這裡我們將所有超商取貨的運送方式都加入。規則名稱僅供識別，隨意自訂就可以了，留空系統則會自動產生。</p>
<p><img decoding="async" src="https://taskinghouse.com/wp-content/uploads/2019/07/woocommerce-shipping-methods-cvs-based-on-weight-or-quantity-02.png" alt="" /></p>
<p>接著因為是透過重量來判斷，因此商品必須設定重量，可以在商品資料中的運送方式頁籤找到填寫重量的欄位。</p>
<p><img decoding="async" src="https://taskinghouse.com/wp-content/uploads/2019/07/woocommerce-shipping-methods-cvs-based-on-weight-or-quantity-03.png" alt="" /></p>
<p>設定完成後到前台實際測試，設定 500 公克的商品，購買 5 件訂單重量 4.5 公斤，此時可以選擇超商取貨。</p>
<p><img decoding="async" src="https://taskinghouse.com/wp-content/uploads/2019/07/woocommerce-shipping-methods-cvs-based-on-weight-or-quantity-04.png" alt="" /></p>
<p>將購買數量加到 6 件，此時訂單重量 5 公斤觸發條件，超商取貨的選項自動隱藏。</p>
<p><img decoding="async" src="https://taskinghouse.com/wp-content/uploads/2019/07/woocommerce-shipping-methods-cvs-based-on-weight-or-quantity-05.png" alt="" /></p>
<p>以上就是設定透過商品重量決定是否支援運送方式的方法，如果你販售的商品的體積，假設超過三件就會大於超商的體積限制，這時也可以透過上面的方法來設定規則。例如：</p>
<p>超商取貨商品限購 3 件，那麼我們設定訂單總重限制 4 公斤，商品重量設定 1 公斤，這樣顧客若選擇超過 3 件商品，就無法使用超商取貨。</p>
<p>如果不同的商品有不同的規則，請將相同規則的商品加入同一個運送類別，就可以在第一步預先設定 Shipping Class 運送類別，針對不同的商品使用不同的重量限制規則。</p>
<p>這篇文章 <a rel="nofollow" href="https://taskinghouse.com/posts/woocommerce-shipping-methods-cvs-based-on-weight-or-quantity/">「教學」設定 WooCommerce 超商取貨最大重量/數量限制</a> 最早出現於 <a rel="nofollow" href="https://taskinghouse.com">TaskingHouse</a>。</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
