by Rain Chu | 8 月 9, 2022 | 未分類
最近看到新聞說台大碩士自住露營車 ,沒想到看了新聞之後開始被推送露營車的廣告,而且還都是同一家露營車的二代發佈會,這才起心動念,想要研究一下台灣的露營車市場,剛好最近要去花蓮一趟,訂不到火車票,可以來趟說走就走的旅程。
新聞中的露營車是乘載式露營車廂,德富科技 出的DF系列,最早的一台是DF1,最近新推出的是DF.Q,目前還沒有看到有人出租這台,但分享的人還蠻多的,DF.Q,看起來比一代要好很多,但都是迷你型,適合單人出遊,或是帶各小朋友出遊
德富露營車 DF 系列
VIDEO
看大叔講評
雲海露營車
另一家也有很多人在詢問的乘載式露營車廂,是雲海露營車 ,搭配現代的Poter Pro 可以作六個人,並且內裝空間較大,可以睡4個人左右。
規格表
[dflip id=”1384″ ][/dflip]
VIDEO
旅行者露營車租賃
另外一個是天生的旅行者,一出生就是進口的露營車,一開始就客製化的露營車,整合性就更好,開起來就比較輕鬆,並且容易租的到,3人座車,平日(1-4)打8折,台幣8,064元/日,假日10,080元/日
官網與FB,新北市林口、台中都可以租的到
https://www.traveler-rent.com/
旅行者露營車租賃 traveler rent | Facebook
VIDEO
法規小常識
汽車運輸業管理規則§100-全國法規資料庫 (moj.gov.tw)
WordWall – PRO、學校教育版、嵌入式網頁之大家來團購篇 – 雨 (rain.tips)
by Rain Chu | 8 月 5, 2022 | woocommerce , wordpress
在寫 woocommerce 的程式時候,最常使用到的就是 $order 這個參數了,每次都要用 Google 查找很不方便,這次把它整理並且記錄起來,當作簡易字典查找,就快速且簡單的多了,也謝謝 Rodolfo Melogli 大神分享了好用的文章。
// Get Order ID and Key
$order->get_id();
$order->get_order_key();
// Get Order Totals $0.00
$order->get_formatted_order_total();
$order->get_cart_tax();
$order->get_currency();
$order->get_discount_tax();
$order->get_discount_to_display();
$order->get_discount_total();
$order->get_fees();
$order->get_formatted_line_subtotal();
$order->get_shipping_tax();
$order->get_shipping_total();
$order->get_subtotal();
$order->get_subtotal_to_display();
$order->get_tax_location();
$order->get_tax_totals();
$order->get_taxes();
$order->get_total();
$order->get_total_discount();
$order->get_total_tax();
$order->get_total_refunded();
$order->get_total_tax_refunded();
$order->get_total_shipping_refunded();
$order->get_item_count_refunded();
$order->get_total_qty_refunded();
$order->get_qty_refunded_for_item();
$order->get_total_refunded_for_item();
$order->get_tax_refunded_for_item();
$order->get_total_tax_refunded_by_rate_id();
$order->get_remaining_refund_amount();
// Get and Loop Over Order Items
foreach ( $order->get_items() as $item_id => $item ) {
$product_id = $item->get_product_id();
$variation_id = $item->get_variation_id();
$product = $item->get_product(); // see link above to get $product info
$product_name = $item->get_name();
$quantity = $item->get_quantity();
$subtotal = $item->get_subtotal();
$total = $item->get_total();
$tax = $item->get_subtotal_tax();
$tax_class = $item->get_tax_class();
$tax_status = $item->get_tax_status();
$allmeta = $item->get_meta_data();
$somemeta = $item->get_meta( '_whatever', true );
$item_type = $item->get_type(); // e.g. "line_item"
}
// Other Secondary Items Stuff
$order->get_items_key();
$order->get_items_tax_classes();
$order->get_item_count();
$order->get_item_total();
$order->get_downloadable_items();
$order->get_coupon_codes();
// Get Order Lines
$order->get_line_subtotal();
$order->get_line_tax();
$order->get_line_total();
// Get Order Shipping
$order->get_shipping_method();
$order->get_shipping_methods();
$order->get_shipping_to_display();
// Get Order Dates
$order->get_date_created();
$order->get_date_modified();
$order->get_date_completed();
$order->get_date_paid();
// Get Order User, Billing & Shipping Addresses
$order->get_customer_id();
$order->get_user_id();
$order->get_user();
$order->get_customer_ip_address();
$order->get_customer_user_agent();
$order->get_created_via();
$order->get_customer_note();
$order->get_address_prop();
$order->get_billing_first_name();
$order->get_billing_last_name();
$order->get_billing_company();
$order->get_billing_address_1();
$order->get_billing_address_2();
$order->get_billing_city();
$order->get_billing_state();
$order->get_billing_postcode();
$order->get_billing_country();
$order->get_billing_email();
$order->get_billing_phone();
$order->get_shipping_first_name();
$order->get_shipping_last_name();
$order->get_shipping_company();
$order->get_shipping_address_1();
$order->get_shipping_address_2();
$order->get_shipping_city();
$order->get_shipping_state();
$order->get_shipping_postcode();
$order->get_shipping_country();
$order->get_address();
$order->get_shipping_address_map_url();
$order->get_formatted_billing_full_name();
$order->get_formatted_shipping_full_name();
$order->get_formatted_billing_address();
$order->get_formatted_shipping_address();
// Get Order Payment Details
$order->get_payment_method();
$order->get_payment_method_title();
$order->get_transaction_id();
// Get Order URLs
$order->get_checkout_payment_url();
$order->get_checkout_order_received_url();
$order->get_cancel_order_url();
$order->get_cancel_order_url_raw();
$order->get_cancel_endpoint();
$order->get_view_order_url();
$order->get_edit_order_url();
// Get Order Status
$order->get_status();
// Get Thank You Page URL
$order->get_checkout_order_received_url();
參考資料
https://woocommerce.github.io/code-reference/
by Rain Chu | 8 月 4, 2022 | wordpress , 未分類
Divi 真的是一個很好用的佈景主題,其實他的英文介面我已經看了很習慣了,但還是有太多的名詞,對於剛接觸的編輯來說,摸不著頭緒,所以就有了要找中文化的需求,網路上用Divi的人很多,可以很快的鎖定幾個解決方案,目前用起來最佳解釋採用Make9大大的版本。
安裝說明
下載zip檔案後,分別把 corelang, lang, languages, 複製到 Divi 佈景主體下,並且合併 functions.php 即可,操作如下:
1.解開壓縮檔後,會看到這些資料
2.複製目錄到 Divi 佈景主體的目錄下
sudo cp -R ~/Make9_Divi_zhtw_20220412v22/corelang/* /var/www/wordpress/wp-content/themes/Divi/corelang/
sudo cp -R ~/Make9_Divi_zhtw_20220412v22/lang/* /var/www/wordpress/wp-content/themes/Divi/lang/
sudo cp -R ~/Make9_Divi_zhtw_20220412v22/languages/* /var/www/wordpress/wp-content/themes/Divi/languages/
sudo chown -R www-data:www-data /var/www/wordpress/.
3.整合你的 functions.php,將下面的程式碼複製到你原本的 functions.php
add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
function enqueue_parent_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
}
load_theme_textdomain( 'Divi', get_stylesheet_directory() . '/lang' );
load_theme_textdomain( 'et-core', get_stylesheet_directory() . '/corelang' );
load_theme_textdomain( 'et_builder', get_stylesheet_directory() . '/languages' );
下載點
https://drive.google.com/file/d/1fozK6-0dRTgOzbMOse6DoyesJUzsdMPa/view?usp=sharing
參考文章
by Rain Chu | 8 月 4, 2022 | wordpress
用 wordpress 的人,如果是有潔癖的,會很看不慣登入後的左上角的 wordpress logo 和選單,想要移除的話除了安裝外掛之外,還可以在主題中 functions.php 加入以下程式碼,讓你的後台畫面更整潔一點
WordPress Admin Bar Logo and Menu
function wpaul_admin_bar_remove() {
global $wp_admin_bar;
/* Remove their stuff */
$wp_admin_bar->remove_menu('wp-logo');
}
add_action('wp_before_admin_bar_render', 'wpaul_admin_bar_remove', 0);
by Rain Chu | 7 月 28, 2022 | 創新創業 , 商模
eSim大家都還沒有搞懂,高通又推出了iSim解決方案,這次展示的是三星 Galaxy Z Flip3 5G,搭載驍龍 888 5G 晶片,看下圖可以知道eSim和iSim最大的不同在於iSim把Sim整合到SoC中,並且提供設計廠商可以自選記憶體以及未來的市場要應用再更小的周邊設備,例如智能眼鏡、手環等穿戴周邊。
eSim應用於旅遊業
eSim應用於旅遊業,出國就不用去租借網卡,Wifi分享機,並且可以網路上購買並且直接下載QRCODE,就可以再各國漫遊,快用完網路的話,可以立即充值或是購買QRCODE,不用實體遞送,就不用怕頻寬滿的不夠,需要的時候再買就可以了
推薦可以購買的地方
參考資料
https://www.qualcomm.com/news/releases/2022/01/vodafone-qualcomm-technologies-and-thales-deliver-world-first-smartphone
近期留言