接續 Windows 8 Consumer Preview 安裝 (一)
10. 選擇背景顏色,輸入 PC name,按下 [Next]。
11. 看看有什麼可以設定的,按下 [Customize]。
12. 選擇 [Yes, turn on sharing and connect to devices]。
13. 可以自行設定或直接按 [Next]。
14. 自行設定 On/Off,然後按下 [Next]。(有一項不能改)
15. 自行設定 On/Off,然後按下 [Next]。(第一項不能改)
16. 如果有 Windows Live Account 可以直接輸入,可以跟該帳戶同步資料,也可以直接按下 [Next]。
17. 個人化設定中。
18. 不到一小時就安裝完了,速度滿快的。
2012年2月29日 星期三
2012年2月24日 星期五
OpenCart Canada Taxes Setting
Taxes reference from Sales taxes in Canada.
Note :
1. OpenCart won't calculate cumulative tax. I use the effective tax rate.
2. This article for OpenCart Tax setting SAMPLE only.
0. Backup website and database.
1. Create [Geo Zones]
Canada GST Zone --> Canada / Alberta, British Columbia, Manitoba, Northwest Territories, Nunavut, Quebec, Saskatchewan, Yukon Territory
BC PST Zone --> Canada / British Columbia
MB PST Zone --> Canada / Manitoba
NB HST Zone --> Canada / New Brunswick
NL HST Zone --> Canada / Newfoundland and Labrador
NS HST Zone --> Canada / Nova Scotia
ON HST Zone --> Canada / Ontario
PEI HST Zone --> Canada / Prince Edward Island
QC QST Zone --> Canada / Quebec
SK PST Zone --> Canada / Saskatchewan
2. Create [Tax Rates]
GST (5%) --> Tax Rate: 5, Type: Percentage, Customer Group: check all, Geo Zone: Canada GST Zone
PST (7%) --> Tax Rate: 7, Type: Percentage, Customer Group: check all, Geo Zone: BC PST Zone
PST (7%) --> Tax Rate: 7, Type: Percentage, Customer Group: check all, Geo Zone: MB PST Zone
HST (13%) --> Tax Rate: 13, Type: Percentage, Customer Group: check all, Geo Zone: NB HST Zone
HST (13%) --> Tax Rate: 13, Type: Percentage, Customer Group: check all, Geo Zone: NL HST Zone
HST (15%) --> Tax Rate: 15, Type: Percentage, Customer Group: check all, Geo Zone: NS HST Zone
HST (13%) --> Tax Rate: 13, Type: Percentage, Customer Group: check all, Geo Zone: ON HST Zone
HST (14%) --> Tax Rate: 14, Type: Percentage, Customer Group: check all, Geo Zone: PEI HST Zone
QST (9.975%) --> Tax Rate: 9.975, Type: Percentage, Customer Group: check all, Geo Zone: QC QST Zone
PST (5%) --> Tax Rate: 5, Type: Percentage, Customer Group: check all, Geo Zone: SK PST Zone
3. Create [Tax Class]
Canadian Tax Class --> Add Tax Rates which according to your website location. Based On select [Shipping Address].
4. Select [Canadian Tax Class] on products' [Tax Class].
5. Make an order and check the [Total].
Note :
1. OpenCart won't calculate cumulative tax. I use the effective tax rate.
2. This article for OpenCart Tax setting SAMPLE only.
0. Backup website and database.
1. Create [Geo Zones]
Canada GST Zone --> Canada / Alberta, British Columbia, Manitoba, Northwest Territories, Nunavut, Quebec, Saskatchewan, Yukon Territory
BC PST Zone --> Canada / British Columbia
MB PST Zone --> Canada / Manitoba
NB HST Zone --> Canada / New Brunswick
NL HST Zone --> Canada / Newfoundland and Labrador
NS HST Zone --> Canada / Nova Scotia
ON HST Zone --> Canada / Ontario
PEI HST Zone --> Canada / Prince Edward Island
QC QST Zone --> Canada / Quebec
SK PST Zone --> Canada / Saskatchewan
2. Create [Tax Rates]
GST (5%) --> Tax Rate: 5, Type: Percentage, Customer Group: check all, Geo Zone: Canada GST Zone
PST (7%) --> Tax Rate: 7, Type: Percentage, Customer Group: check all, Geo Zone: BC PST Zone
PST (7%) --> Tax Rate: 7, Type: Percentage, Customer Group: check all, Geo Zone: MB PST Zone
HST (13%) --> Tax Rate: 13, Type: Percentage, Customer Group: check all, Geo Zone: NB HST Zone
HST (13%) --> Tax Rate: 13, Type: Percentage, Customer Group: check all, Geo Zone: NL HST Zone
HST (15%) --> Tax Rate: 15, Type: Percentage, Customer Group: check all, Geo Zone: NS HST Zone
HST (13%) --> Tax Rate: 13, Type: Percentage, Customer Group: check all, Geo Zone: ON HST Zone
HST (14%) --> Tax Rate: 14, Type: Percentage, Customer Group: check all, Geo Zone: PEI HST Zone
QST (9.975%) --> Tax Rate: 9.975, Type: Percentage, Customer Group: check all, Geo Zone: QC QST Zone
PST (5%) --> Tax Rate: 5, Type: Percentage, Customer Group: check all, Geo Zone: SK PST Zone
3. Create [Tax Class]
Canadian Tax Class --> Add Tax Rates which according to your website location. Based On select [Shipping Address].
4. Select [Canadian Tax Class] on products' [Tax Class].
5. Make an order and check the [Total].
2012年2月23日 星期四
OpenCart 新增 Modules 自訂頁面
OpenCart Modules 裡面的模組可以豐富網站內容,如果要增加一個完全可以自定義內容的模組,該如何做呢?可以直接拿 [Welcome] 的相關檔案來改。
0. 備份網站,備份 Database。
1. 複製以下檔案:
catalog/controller/module/welcome.php
--> catalog/controller/module/customize.php
catalog/language/english/module/welcome.php
--> catalog/language/english/module/customize.php
catalog/view/theme/default/template/module/welcome.tpl
--> catalog/view/theme/default/template/module/customize.tpl
admin/controller/module/welcome.php
--> admin/controller/module/customize.php
admin/language/english/module/welcome.php
--> admin/language/english/module/customize.php
admin/view/template/module/welcome.tpl
--> admin/view/template/module/customize.tpl
2. 更改以下檔案:
catalog/controller/module/customize.php
--> 1. 更改 Class 名換成 ControllerModuleCustomize
2. 用 replace 的方式將檔案中 welcome換成 customize
catalog/language/english/module/customize.php
--> 自行修改適合文字
catalog/view/theme/default/template/module/customize.tpl
--> 自行修改或維持原狀。
admin/controller/module/customize.php
--> 1. 更改 Class 名換成 ControllerModuleCustomize
2. 用 replace 的方式將檔案中 welcome 換成 customize
admin/language/english/module/customize.php
--> 自行修改適合文字
admin/view/template/module/customize.tpl
--> 用 replace 的方式將檔案中 welcome 換成 customize
3. 在後台 [Extensions] --> [Modules] 就可以看到新增的 Customize Module,點選 [Install] --> [Edit] 後,就可以放入自己想要的內容。
0. 備份網站,備份 Database。
1. 複製以下檔案:
catalog/controller/module/welcome.php
--> catalog/controller/module/customize.php
catalog/language/english/module/welcome.php
--> catalog/language/english/module/customize.php
catalog/view/theme/default/template/module/welcome.tpl
--> catalog/view/theme/default/template/module/customize.tpl
admin/controller/module/welcome.php
--> admin/controller/module/customize.php
admin/language/english/module/welcome.php
--> admin/language/english/module/customize.php
admin/view/template/module/welcome.tpl
--> admin/view/template/module/customize.tpl
2. 更改以下檔案:
catalog/controller/module/customize.php
--> 1. 更改 Class 名換成 ControllerModuleCustomize
2. 用 replace 的方式將檔案中 welcome換成 customize
catalog/language/english/module/customize.php
--> 自行修改適合文字
catalog/view/theme/default/template/module/customize.tpl
--> 自行修改或維持原狀。
admin/controller/module/customize.php
--> 1. 更改 Class 名換成 ControllerModuleCustomize
2. 用 replace 的方式將檔案中 welcome 換成 customize
admin/language/english/module/customize.php
--> 自行修改適合文字
admin/view/template/module/customize.tpl
--> 用 replace 的方式將檔案中 welcome 換成 customize
3. 在後台 [Extensions] --> [Modules] 就可以看到新增的 Customize Module,點選 [Install] --> [Edit] 後,就可以放入自己想要的內容。
2012年2月22日 星期三
OpenCart 新增 Shipping Method
OpenCart Shipping Method 預設有 [Per Item] 的項目,但是如果想再增加 Express 的運費要如何做呢?可以直接拿 [Per Item] 的相關檔案來改。
0. 備份網站,備份 Database。
1. 複製以下檔案:
catalog/language/english/shipping/item.php
--> catalog/language/english/shipping/itemex.php
catalog/model/shipping/item.php
--> catalog/model/shipping/itemex.php
admin/controller/shipping/item.php
--> admin/controller/shipping/itemex.php
admin/language/english/shipping/item.php
--> admin/language/english/shipping/itemex.php
admin/view/template/shipping/item.tpl
--> admin/view/template/shipping/itemex.tpl
2. 更改以下檔案:
catalog/language/english/shipping/itemex.php
--> 自行修改適合文字
catalog/model/shipping/itemex.php
--> 1. 更改 Class 名換成 ModelShippingItemEx
2. 用 replace 的方式將檔案中 item 換成 itemex
admin/controller/shipping/itemex.php
--> 1. 更改 Class 名換成 ModelShippingItemEx
2. 用 replace 的方式將檔案中 item 換成 itemex
admin/language/english/shipping/itemex.php
--> 自行修改適合文字
admin/view/template/shipping/itemex.tpl
--> 用 replace 的方式將檔案中 item 換成 itemex
3. 在後台 [Shipping Method] 就可以看到新增的 Express 運費項目,點選 [Install] --> [Edit] 後,輸入費用及相關設定,前台 [Check out] 之後就可以看到了。
0. 備份網站,備份 Database。
1. 複製以下檔案:
catalog/language/english/shipping/item.php
--> catalog/language/english/shipping/itemex.php
catalog/model/shipping/item.php
--> catalog/model/shipping/itemex.php
admin/controller/shipping/item.php
--> admin/controller/shipping/itemex.php
admin/language/english/shipping/item.php
--> admin/language/english/shipping/itemex.php
admin/view/template/shipping/item.tpl
--> admin/view/template/shipping/itemex.tpl
2. 更改以下檔案:
catalog/language/english/shipping/itemex.php
--> 自行修改適合文字
catalog/model/shipping/itemex.php
--> 1. 更改 Class 名換成 ModelShippingItemEx
2. 用 replace 的方式將檔案中 item 換成 itemex
admin/controller/shipping/itemex.php
--> 1. 更改 Class 名換成 ModelShippingItemEx
2. 用 replace 的方式將檔案中 item 換成 itemex
admin/language/english/shipping/itemex.php
--> 自行修改適合文字
admin/view/template/shipping/itemex.tpl
--> 用 replace 的方式將檔案中 item 換成 itemex
3. 在後台 [Shipping Method] 就可以看到新增的 Express 運費項目,點選 [Install] --> [Edit] 後,輸入費用及相關設定,前台 [Check out] 之後就可以看到了。
Lumia 710 好玩的 Games
Xbox LIVE
Minesweeper
Shuffle Party
Xbox LIVE Extras
B
Basketball
BBB: App-ocalypse
C
Crazy Casino
D
Duck Hunt
H
Hearts
L
Logic Games
N
Naval War Free
R
Reversi Pro Free
S
Shoot Bubble
Shuriken Ninja
Solitaire
Minesweeper
Shuffle Party
Xbox LIVE Extras
B
Basketball
BBB: App-ocalypse
C
Crazy Casino
D
Duck Hunt
H
Hearts
L
Logic Games
N
Naval War Free
R
Reversi Pro Free
S
Shoot Bubble
Shuriken Ninja
Solitaire
Lumia 710 好用的 Apps
A
Adobe Reader
C
Connectivity Shortcuts
Cool Tools
D
Dictionary.com
F
Facebook
G
GasBuddy
M
Mobiletag
MoHoo Reader
R
REALTOR.ca
S
Scientific Calculator
SketchPad
SkyDrive
SkyMap Free
Skype
SoundHound
T
TripAdvisor
W
Weather
WhatsApp
WinPhone Info Free
唐詩
有道辭典
書中聖
Adobe Reader
C
Connectivity Shortcuts
Cool Tools
D
Dictionary.com
F
G
GasBuddy
M
Mobiletag
MoHoo Reader
R
REALTOR.ca
S
Scientific Calculator
SketchPad
SkyDrive
SkyMap Free
Skype
SoundHound
T
TripAdvisor
W
Weather
WinPhone Info Free
唐詩
有道辭典
書中聖
2012年2月21日 星期二
使用 Dreamweaver 編輯 tpl 檔案
目前有些 MVC 架構的 View 用的附檔名為 .tpl。基本上這個檔案也是用 PHP + Html 來寫的。Dreamweaver 預設並沒有加上這個附檔名,所以要手動自己設定一下。
1. 開啓 MMDocumentTypes.xml 檔案,若沒改安裝目錄的話,位於 C:\Program Files\Adobe\Adobe Dreamweaver CS5\configuration\DocumentTypes 下。
2. 加上 tpl 在這行 [ <documenttype id="PHP_MySQL" servermodel="PHP MySQL" internaltype="Dynamic" winfileextension="php,php3,php4,php5,phtml,tpl" macfileextension="php,php3,php4,php5,phtml,tpl" file="Default.php" writebyteordermark="false" mimetype="text/html"> ]
3. 關閉 Dreamweaver 後,再開啓即可。
訂閱:
文章 (Atom)










