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

2017年9月9日 星期六

行銷漏斗

銷售給別人之前,要先了解人購物的行為,其實很簡單,因為我們天天在買東西