So the CSS is very simple, but we need to define which class the page should load with, depending on the section of the site we’re in. This is really simple using MODx Revo, you can create a Template Variable for every template, set the type as ‘image’ so that admins can select images from the file browser and you can then define your <body> tag in your templates like@CODEYou don’t want to have to do this to EVERY page on your site, that would be a painful chore (and your editors might forget) so, there’s a few options, the simplest would be to use a default value for the template variable - we uses @INHERIT for the default value of the TV, meaning that we can define the image just once at the top level.
那麼,即使 CSS 如此簡單,我們仍然需要根據我們在網站中的位置來決定頁面應該載入哪一個類。用 MODx Revo 的話這一切都會變得相當容易,你可以為每一個範本創建一個範本變數,也可以把類型設為“圖像”來讓管理員們通過檔流覽器來選擇圖像,還可以把範本當中的 <body> 標籤定義為@CODE你不需要在網站每個頁面都這麼操作,這是很單調繁瑣的工作(你的編輯或者也會忘記的)。所以有些解決方法,其中最簡單的就是使用預設的範本變數——我們用 @INHERIT 來作為 範本變數的預設值,這就意味著我們可以一次性在頂層就對圖像作出定義。
Gizzy & Nacho - another MODx Revolution site launchedWe finally have time to upload a few of our case studies while waiting in Seattle’s airport for a connection to Houston… “are we there yet..”The day before we left Hong Kong for this trip to North America and MODxPO we launched a site for our friends Gizzy & Nacho.This is our first e-commerce site built in MODx Revolution - and we really packed in the features for this one:Full Inventory management 3PC using MODext, xpdo etc with database export to Excel.A point-of-sale system allowing Gizzy to sell inventory in their brick & mortar store while producing receipts & invoices, maintaining a live-updated inventory database that is reflected online.
Gizzy & Nacho ——另一個 MODx Revolution 網站啟動在西雅圖的機場等待與休士頓連線的時候,我們終於有時間上載我們的一些案例了……“我們還沒到嗎……”從香港出發來北美 MODxPO 的前一天,我們啟動了給我們朋友的網站,Gizzy & Nacho.這是我們第一個在 MODx Revolution 裡面所建立的電子商務網站——目前我們在這個網站中包含以下特點:全面存貨清單管理,使用 MODext, xpdo 等技術,並且能將資料庫匯出到 Excel.零售商店系統,能夠讓 Gizzy 在商店銷售磚塊水泥的同時生成收據發票,所做的操作能夠同步到存貨清單資料庫當中。
Templated invoicing & receiptsDual checkout mode - either as a member or as a guest. Members can save delivery addresses, and have access to promotion codes and store credit (if applicable). Embedded dual currency payment options handled by AsiaPay that supports Visa and Mastercard, as well as China’s two major payment gateways.Customers can be assigned store credit, as well as promotion codes to apply custom discounts to order totals. Custom discount rules are applied only to items that are not already marked as on sale.Custom shipping policy/pricing based on customer delivery address.Email 3PC using the modMail service to apply custom HTML templates to any and all customer service communications.
範本化的發票與收據雙重結帳模式——無論是作為成員還是作為顧客。成員能保存送貨地址,而且能得到優惠券代碼以及賒帳購物(如果有這些優惠的話)。由 AsiaPay 支援的內嵌雙幣種付款選項,支援 Visa 與 Mastercard, 以及中國兩種主要支付手段。顧客可以使用賒帳購物以及優惠券代碼來獲得付款優惠。這些優惠只對非特價商品生效。基於顧客送貨地址的顧客送貨政策/價格。使用 modMail 服務的電子郵件 3PC, 能應用自訂 HTML 範本到與顧客交流的任何郵件當中。