2022年2月13日星期日

水煎包

 材料  (8顆,約 2人份)

A:麵糰

▪ 英國超市現成的pizza dough 220g

⬇ 我用這款 The Northen的 pizza dough (在Sainsbury’s可以買到),一盒共有兩球,一球220g可以做八顆

B:內餡

▪ 豬絞肉 250g
▪ 高麗菜 適量 (Tesco 有一種Sweet Heart Cabbage,形狀尖尖的,吃起來非常接近台灣的高麗菜)
▪ 薑泥 (或薑末) 1湯匙
▪ 麻油 2湯匙 (Tesco或Sainsbury’s都買得到李錦記的純正芝麻油)
▪ 鹽巴 適量
▪ 糖 0.5湯匙
▪ 白胡椒粉 少許
▪ 五香粉 少許 (Tesco或Sainsbury’s都買得到)
▪ 醬油 (生抽) 1湯匙

C:配料

▪ 蔥花 少許
▪ 黑芝麻 少許

⬇ 食材們來張合照

alt="水煎包

作法

1⃣ 高麗菜洗淨,切成喜歡的絲狀或小碎丁,加點鹽巴拌勻,靜置半小時等它出水。(在這等待的半小時中可以先做步驟2的醃肉)。半小時後,先把盆子裡的水倒掉,再用手擠出高麗菜內其餘的水分。

2⃣ 在豬絞肉內加入薑泥、 麻油、醬油、鹽巴、糖、白胡椒粉和
五香粉後,用筷子以同一方向攪拌到豬絞肉有黏性,再放進冰箱約半小時醃入味。(在這等待的半小時中可以來做步驟1的擠乾高麗菜水分)

3⃣ 把一球退冰好的pizza dough分成八等分。
我自己是用手摸摸搓搓看麵糰,如果覺得它變得柔軟有彈性,就是退好冰囉~

4⃣ 用擀麵棍,或直接用手把分好的麵糰壓扁。壓成中間稍厚、外圍稍薄的麵皮是最完美的,因為這樣比較好包而且不容易破。

alt="水煎包

5⃣ 挖一匙絞肉餡+一點高麗菜絲在麵皮的正中央,接著一折一折包起,包的同時一邊把餡料稍微壓緊,最後捏好頂端的封口。

alt="水煎包

6⃣ 包好啦~ 嗯~ 大小不一,一看就知道是手工的 XD

7⃣ 在不沾平底鍋中加入適量的油,接著把水煎包一一放進去,記得每顆之間都要留一些空隙,因為它們等等還會膨脹,貼太緊會黏在一起。

alt="水煎包

8⃣ 煎到包子底部微微金黃

alt="水煎包

9⃣ 淋入隨意調的麵粉水,量大約淹過包子底部三分之一即可,然後蓋上鍋蓋,等水都蒸乾,就可以起鍋囉~

alt="水煎包

🔟 撒上些許蔥花和黑芝麻,佐自己喜歡的醬 (豆瓣醬、甜辣醬、醬油膏…) 就可以開動啦~

alt="水煎包

2021年6月5日星期六

Search in product descriptions by default

 

Search in product descriptions by default

search-in-product-descriptions-by-default

Many visitors of E-commerce websites use the search to find something of interest and if they spell the keywords wrong the search results will often return a blank result page. Moreover, the default OpenCart search doesn’t look within the product description unless you check the box to do so. But what if I want this to be active as default option? Learn how to activate search in product descriptions by default in OpenCart 2.3.0.2

The search engine in OpenCart is fairly simple and by default it searches only by the product name. Once you get the search results page you get the option to search further within product description and subcategories if you like to.

Since it is not good practise for the customers to get blank search results page it is cool to activate the option search in product descriptions by default. In my case this is the trick I used on OpenCart version 2.3.0.2.

1. Modify the search.php

Find the search.php file located in: catalog/controller/product/search.php
Locate the code:


$filter_data = array(
            'filter_name'         => $search,
            'filter_tag'          => $tag,
            'filter_description'  => $description,
            'filter_category_id'  => $category_id,
            'filter_sub_category' => $sub_category,
            'sort'                => $sort,
            'order'               => $order,
            'start'               => ($page - 1) * $limit,
            'limit'               => $limit
        );

Change the line filter_description to:

'filter_description'  => 'true',

Save and upload the file back to the server and you are done!

In case you are using some third-party extensions/modules and you don’t see the changes you just made in search.php file then proceed to next step.

2. Modify the search.php

For those who are using extensions or custom themes which have done some modifications to default search.php file then the previous step 1 needs to be done also in the same file but on different location:

/system/storage/modification/catalog/controller/product/search.php

Modify the code as described in step 1, save and upload the file to server and you’re done!

Known issues

In newer versions of OpenCart the true setting may not do the trick. Then you should try the following:

'filter_description'  => $description=1

How to add filters to your OpenCart store

 

How to add filters to your OpenCart store

Here’s what you need to do to get filters working in your OpenCart store:

  1. Create filter groups and filters.

  2. Assign filters to product categories.

  3. Assign filters to products.

  4. Activate filter module.

  5. Add filters to store layout.

  6. Bonus: make large filters look compact.

It does seem like a lot of work and you may ask why you need to assign product filters to categories. Why setting filters to products are not enough?

The answer is simple. Imagine that you have 10, 20 or more different filter groups in your store – color, size, weight, season, etc… And you’ll want to show filters in the category pages. If filters won’t be assigned to categories, they would all show up in all categories even if there are no products that have those filters. It would be a mess. So when you assign only some of the filters to the specific category, customer will have cleaner, simpler and more useful filter section in the category page.

How to create filter groups and filters in OpenCart

First step – go to OpenCart admin panel and select Catalog >> Filters in the main menu. To create a new filter group click Add new at the top right of the page.

how to add filters to opencart storeWhat you need to enter here:

  • Filter group name. That can be color, size, length – any group of data that you want to filter the products. If you have multiple languages in your store, you can name the filter groups differently.

  • Sort order. It is used to order groups in the filter module (for the customer). For example, if you have more than one filter group in the category page (color, size, weight), you can show Color filter first by setting sort order to 1, Weight second if it’s sort order is 2 and so on. Lower number has the priority. You can leave this field empty if you don’t need specific ordering.

  • Filter names. If the filter group is, for example, color, then filter names will be red, green, blue, etc. They also have sort numbers to you can order them exactly as you want.

opencart filters and filter groups

How to add filters to categories in OpenCart

To add filters to store categories go to Catalog >> Categories, and edit one of the categories. Click on a Data tab and enter any filter you want to the filter field. All the filters with the similar names will show up, so everything you need to do is to select the filters you want to add.

opencart add filters to categoryAll the selected filter will show up below in the list. You can add as many filters as you need, and you can remove any of them in a single click by hitting "-" by the name of the filter.

How to add filters to products in OpenCart

If you want to add filters to OpenCart store product go to Catalog >> Products and edit the product you want to add filters to. Click on a Links tab and look for the Filter field. Enter filter name and select it from the dropdown menu. That’s it, filter is added to the product.

After adding or removing filters don’t forget to save changes.

opencartadd filters to productYou can add as many filters as you like, and you can remove them the same way as category filters – by clicking on "-" symbol by the name of the filter. After adding or removing filters hit Save changes button at the top right corner of the page.

How to activate Filter module in OpenCart

After fresh OpenCart installation Filter module is not activated in the store. To activate it go to Extensions >> Extensions (or Extensions >> Modules depending on the OpenCart version you are using), find module Filter , and click Install button.

opencart filter moduleAfter installing click Edit button on the Filter module, and enable it.

enable filters in opencart

How to show filters in OpenCart category, or any other page in the front end

To show filter for customers you need to add filter module to store’s layout. You can add filters to category pages, search, manufacturer or any pages.

If you want to add filters to category pages, go to Design >> Layouts (or System >> Design >> Layouts, depending on the OpenCart version you use), and edit Category layout.

opencart category layoutYou can add filter to column left or right, content top and bottom – in any position. For example, if you want it to show up on the left column, select Filter module on the column left, click Add module button, and save changes.

opencart add filters to category layoutThe changes will be visible immediately on the category pages:

opencart filtersThe same technique is used for adding Filter module to other pages like Search page, Manufacturer pages and so on. Just edit the layout you want and add the Filter module to it.

How to make large filters look compact in your OpenCart store

Some stores have huge lists of filters that can look enormous on the store’s front page. If you want to make them look more compact and make them even easier to use you can try our Better Filter extension.

opencart better filter moduleIt makes large filters scrollable, and filters products on a single click, without need to click Refine Search button. More details about the extension can be found on the Better Filter page.

2021年6月4日星期五

OpenCart 安裝完成後,應再補強的6個功能

安裝好一個基本的 OpenCart 網站,只能算是經營品牌電商的第一步,不論您是由主機商免費幫您安裝、或是主機提供的一鍵安裝、或是自行下載檔案安裝、或是花錢聽課學會的安裝,此時的 OpenCart 網站,雖然已經能提供下單的功能,但仍只是一個陽春的購物網站,用戶體驗尚待加強,還不具有品牌的質感,還談不上高端大器,如果您想經營好您的品牌,那麼接下來還有一些地方一定要再加強。

一、 安裝第三方版型
OpenCart 內建的版型,從 2014 年 2.0 版釋出之後,就沒有再美編優化過,近五年以來,已經不知道有多少 OpenCart 的網站,是使用這組內建的版型,或許你可以調整主要配色,但整體的框架、模組區塊、Slider 樣式,看起來仍然大同小異,如果您想經營一個擁有自己調性的品牌電商,那您就應該換掉這套與許多網站幾近同模的版型。
底下的連結是專門販售 OpenCart 版型的最大賣場,版型排序是依據累計銷售量,通常選擇銷售第一名的版型,風險最低,其實並不難選擇。
版型賣場連結 https://themeforest.net/category/ecomme ... sort=sales
銷售第一名的 Journal 版型,累計銷售量是第二名的 3 倍以上,只要是熟悉 OpenCart 系統的商家,幾乎都會指定安裝銷售第一的 Journal 版型,不過由於 Journal 版型的功能強大,後台的設定也會比較複雜一些,不過通常來回操作幾次就會逐漸上手。 但有些廠商為了便宜行事,會故意幫商家安裝功能比較簡單的版型,在此提醒商家,故意不推薦銷售第一名的版型,一定是不懷好意,請審慎評估啊!

二、 採用一頁式結帳
OpenCart 內建的結帳流程,有六個步驟,不是很友善,更換成一頁式的結帳,比較直覺,在 OpenCart 的市集(MarketPlace)中,就有一頁式結帳的模組可以購買或免費下載,前面提到的銷售第一名的版型(Journal Theme),也有附帶一頁是結帳的模組,有些一頁式結帳的模組,還能直接隱藏欄位,例如地址2(補充),甚至自訂地址欄位的排序,讓地址填寫比較符合台灣的習慣,所以使用一頁式結帳,對用戶體驗會有很大的提升。

三、 宅配滿額自動免運費
OpenCart 並沒有內建宅配滿額自動免運費的功能,內建的宅配模組,是一個固定運費的模組,無法設定訂單超過多少就免運,從拍賣平台或商城,常以運費補貼的方式來吸引消費來觀察,就可以看出台灣的消費者,對於運費是相當敏感的,所以一個購物網站提供滿額免運,是非常直接而有效的行銷手段,您也應該要擁有這項功能。

四、 只顯示合理的付款方式
OpenCart 系統對於付款方式的控管,只提供設定適用地區及訂單金額門檻,只要買家的地址符合適用地區、訂單金額達到門檻,結帳時就會出現符合前2項條件的付款方式,然而付款方式與運送方式其實是有一定的相依性,例如買家選擇宅配的運送方式時,就不應該出現超商取貨付款的付款選項,即使買家誤選的機率可能不高,不過網站會給予消費者有不夠專業、設計不良的負面印象,應該改善此問題,官方的 Market Place 有相關的模組可以購買,或找專業工程師修改亦可。

五、 FaceBook 帳號登入
許多網友已經很習慣採用 FaceBook 帳號來註冊或登入購物網站,因為可以免除註冊會員的程序,也不需額外記憶一組帳號及密碼,所以有越來越多的消費者,習慣使用 FaceBook 的帳號來登入購物網站,所以為自己的購物網站提供 FaceBook 帳號的登入功能,可以簡化消費者購物的程序,也間接提高了轉換率,絕對有加分的效果。

六、 會員資料欄位簡化及排序調整
OpenCart 內建的會員資料欄位排序方式,是以國際慣用的姓名、地址格式來設計,先[名字]後[姓氏],先[地址]然後[鄉鎮市區]再[縣市]最後[國家],對台灣的使用者來說,真的非常的不順眼,不只容易填寫錯誤,也容易讓人懷疑網站是否已設計完成 ....,調整姓名及地址欄位的排序,讓資料欄位的填寫符合台灣人的使用習慣,雖然不會幫網站加分,但可以避免形象被扣分、減少資料輸入錯誤,也是很必要的補強重點。

架好的一個基本的購物網站,就像是有了自己的店面一樣,雖然可以開始營業了,但不代表訂單就會自動湧進來,您應該再進行一些重要的補強,縮小您與同業網站的差距,否則,如果您的每一個環節,都只有同業的 90%,那麼,您的最終成效將會是您同業的 0.9 x 0.9 x 0.9 x 0.9 ........

2021年6月3日星期四

Integration with OpenCart


Edit this file

upload/catalog/view/theme/default/template/common/footer.twig

Append Live Helper Chat generated code just above

</body></html>

to look like. Change with your embed code

<script>var LHC_API = LHC_API||{};
LHC_API.args = {mode:'widget',lhc_base_url:'//demo.livehelperchat.com/',wheight:450,wwidth:350,pheight:520,pwidth:500,leaveamessage:true,check_messages:false};
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.setAttribute('crossorigin','anonymous'); po.async = true;
var date = new Date();po.src = '//demo.livehelperchat.com/design/defaulttheme/js/widgetv2/index.js?'+(""+date.getFullYear() + date.getMonth() + date.getDate());
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
</body></html>

Clear cache

https://www.templatemonster.com/help/opencart-how-to-clear-cache.html

2021年6月2日星期三

opencart

 

Catalog
  controller
  account 會員功能
—— account.php 會員功能主頁
—— address.php 會員功能-地址管理
—— create.php 創建帳號
—— download.php 會員功能-商品下載
—— edit.php 會員功能-編輯個人資料
—— forgotten.php 取回密碼
—— history.php 會員功能-訂單記錄列表
—— invoice.php 折扣券接收處理程式
—— login.php 登入
—— logout.php 登出完成頁
—— newsletter.php 會員功能-電子報訂閱取消
—— password.php 會員功能-密碼變更
—— success.php 創建帳號成功訊息
Catalog
  controller
  checkout 結帳功能
—— address.php 結帳功能-地址處理(配送,帳單..地址)
—— cart.php 瀏覽購物清單(購物車)
—— confirm.php 結帳功能-最後確認
—— guest_step_1.php 免登入結帳第一步
—— guest_step_2.php 免登入結帳第二步
—— guest_step_3.php 免登入結帳第三步
—— payment.php 結帳功能-選擇付款方式
—— shipping.php 結帳功能-選擇配送方式
—— success.php 完成結帳成功訊息
Catalog
  controller
  common 主要版面
—— column_left.php 左欄模組載入
—— column_right.php 右欄模組載入
—— footer.php 頁尾
—— header.php 頁首
—— home.php 首頁
—— maintenance.php 維護中顯示頁
—— seo_url.php 網址最佳化處理程式之一(縮短網址)
Catalog
  controller
  error 404錯誤
—— not_found.php 無此頁
Catalog
  controller
  feed 網站地圖和訂閱
—— google_base.php 網站訂閱(feed)
—— google_sitemap.php 網站地圖
Catalog
  controller
  information 網站資訊
—— contact.php 發送信件給店家
—— information.php 商店文章
—— sitemap.php 網站導覽
Catalog
  controller
  module 功能模組
—— bestseller.php 暢銷商品
—— cart.php 購物清單(側欄)
—— category.php 目錄(側欄)
—— featured.php 推薦商品
—— google_talk.php google即時通(側欄)
—— information.php 商店文章(側欄)
—— latest.php 最新商品
—— manufacturer.php 品牌選單(側欄)
—— special.php 特價商品
Catalog
  controller
  product 商品功能
—— category.php 同目錄商品列表
—— manufacturer.php 同品牌商品列表
—— product.php 商品詳細內容頁
—— search.php 搜尋功能
—— special.php 特價商品列表
Catalog
  controller
  payment 付款模組

以上就是前台控制程式的列表

 

如何修改商品一列的顯示數量

 先尝试调整 Settins->Image->Product Image List Size 这个设置的值, 默认是80x80的图片大小, 修改大一些 比如160x160, 这时可能产品显示列表里面就会有些混乱 图片超出方框之类的,
以默认模板为例, 要调整:
\catalog\view\theme\default\stylesheet\stylesheet.css
这个文件947行开始, 如果没有修改过 应该是这样的:
.product-grid > div {
width: 130px;
display: inline-block;
vertical-align: top;
margin-right: 20px;
margin-bottom: 15px;
}

修改成这样:
.product-grid > div {
width: 140px;
display: inline-block;
vertical-align: top;
margin-right: 40px;
margin-bottom: 15px;
}

就是调整width: 140px; 和 margin-right: 40px; Product Image List Size 这三个值, 你可以慢慢修改调整到合适的.