2017年10月15日 星期日
woocommerce綠界整合
顯示超商取貨
在/home/zenzoneg/public_html/goodwayservice.com/wp-content/themes/twentyseventeen/functions.php
增加以下
/**
* 免運自動選擇 Hide shipping rates when free shipping is available.
* Updated to support WooCommerce 2.6 Shipping Zones.
*
* @param array $rates Array of rates found for the package.
* @return array
*/
add_filter( 'woocommerce_package_rates', 'hide_shipping_when_free_is_available', 100 );
function hide_shipping_when_free_is_available( $rates ) {
$free = array();
foreach ( $rates as $rate_id => $rate ) {
if ( 'free_shipping' === $rate->method_id ) {
$free[ $rate_id ] = $rate;
break;
}
}
/* 以下為需要新增修正的部份 */
// 免運費時 仍顯示超商取貨
if (!empty($free)) {
foreach ( $rates as $rate_id => $rate ) {
if ( 'ecpay_shipping' === $rate->method_id ) {
$free[ $rate_id ] = $rate;
break;
}
}
}
/* 以上為需要新增修正的部份 */
return ! empty( $free ) ? $free : $rates;
}
/** 此段結束
*/
add_filter( 'excerpt_more', 'twentyseventeen_excerpt_more' );
2017年10月14日 星期六
如何在woocommerce的結帳頁面製作縣市區域下拉選項
自動抓縣市區號,在主題下的functions.php加下面這段
路徑 : 網站//wp-cotent/themes/twentyseventeen-child/functions.php
add_filter("woocommerce_after_checkout_form", "twzipcodefield_shipping");
function twzipcodefield_shipping() {
$output = '
';
echo $output;
}
下方這段要在布景主題-->自訂-->css 中加上,就可以不顯示某些欄位,但沒有移除掉
.woocommerce-billing-fields #billing_country_field {display: none;}
.woocommerce-billing-fields #billing_company_field {display: none;}
.woocommerce-billing-fields #billing_address_2_field {display: none;}
.woocommerce-shipping-fields #shipping_country_field {display: none;}
.woocommerce-shipping-fields #shipping_company_field {display: none;}
.woocommerce-shipping-fields #shipping_address_2_field {display: none;}
2017年9月10日 星期日
如何在網頁上做出可以直接撥打的電話號碼
如何在網頁上做出可以直接撥打的電話號碼
因為現在大家都用手機上網了,所以若我們的網站可以做出直接可以撥打的電話號碼
客戶可以直接點一下就播號非常方便,就會大幅的增加網站功效喔
其實可以用我們平常用的<a>標籤就有這個功能了,在href裡面多加一個tel的值
如下面的HTML寫法:
<a href="tel:0926901221">0926901221</a>
你就可以輕鬆在手機網頁上播打電話囉
在手機上試點看看 0926901221
因為現在大家都用手機上網了,所以若我們的網站可以做出直接可以撥打的電話號碼
客戶可以直接點一下就播號非常方便,就會大幅的增加網站功效喔
其實可以用我們平常用的<a>標籤就有這個功能了,在href裡面多加一個tel的值
如下面的HTML寫法:
<a href="tel:0926901221">0926901221</a>
你就可以輕鬆在手機網頁上播打電話囉
在手機上試點看看 0926901221
2017年9月9日 星期六
2017年9月8日 星期五
團結引流術
網路上增加觸擊率的方法之一可以讓大家的blog互相引流,以下是數位行銷班同學們的blog,每個人的blog都會互相引流喔
https://alexsir.blogspot.tw 數位學習網
https://healthseniorgroup.blogspot.tw healthsenior
https://oohking.blogspot.tw/ 天上飛
https://eatoutofhealth.blogspot.tw/ 保健鋪
https://home0216.blogspot.tw/ 鄭氏企業
https://daycleantw.blogspot.tw/ 窈窕管家
https://judyhandwork.blogspot.tw/ 茱蒂的手作小鋪
https://imarketime.blogspot.tw/ 自由之路數位教室
https://99lovelife99.blogspot.tw/ 久久愛生活久久
https://shieyayun26.blogspot.tw/ 遊山玩水
https://kikipasta.blogspot.tw/ 微笑pasta
http://www.quinli.com.tw/ 昆利
https://phoenix1022.blogspot.tw/ 艦隊COLLECTION皆可萌
http://changyihan.blogspot.tw/ 哩哩$$挖寶舖
https://alexsir.blogspot.tw 數位學習網
https://healthseniorgroup.blogspot.tw healthsenior
https://oohking.blogspot.tw/ 天上飛
https://eatoutofhealth.blogspot.tw/ 保健鋪
https://home0216.blogspot.tw/ 鄭氏企業
https://daycleantw.blogspot.tw/ 窈窕管家
https://judyhandwork.blogspot.tw/ 茱蒂的手作小鋪
https://imarketime.blogspot.tw/ 自由之路數位教室
https://99lovelife99.blogspot.tw/ 久久愛生活久久
https://shieyayun26.blogspot.tw/ 遊山玩水
https://kikipasta.blogspot.tw/ 微笑pasta
http://www.quinli.com.tw/ 昆利
https://phoenix1022.blogspot.tw/ 艦隊COLLECTION皆可萌
http://changyihan.blogspot.tw/ 哩哩$$挖寶舖
訂閱:
文章 (Atom)