Zen-Cart無料テンプレート(テンプレートモンスター)導入メモ
Blog ( タグ: ZenCart, カスタマイズ, テンプレート ) 2月 13th, 2010テンプレートモンスターのZen-Cart用無料テンプレート(Theme 12541 v 1.0 for Zen Cart)をZen-Cart日本語版(v1.3.0.2-l10n-jp-5)にインストールしてみました。この無料テンプレートは、Zen-Cart日本語版ではなく英語版用なので、多少のカスタマイズが必要ですので、その方法をご紹介します。
スクリーンショット
展開したファイルの12541ディレクトリの中身をZen-Cartのルートにアップロードします。
Zen-Cart管理画面>追加設定>テンプレートの設定で「Theme 12541」を選択します。
Zen-Cart管理画面>追加設定>サイドボックスの表示設定でリセットします。
他にも一般設定などの指定がある(read_me.txt参照)が、とりあえずこの状態でショップ画面へアクセスすると下記のエラーが表示されます。
Fatal error: Call to undefined function zen_get_new_date_range()
これはzen_get_new_date_range関数がv1.3.0.2にはないためのエラーですので
function zen_get_new_date_range($time_limit = false) { if ($time_limit == false) { $time_limit = SHOW_NEW_PRODUCTS_LIMIT; } // 120 days; 24 hours; 60 mins; 60secs $date_range = time() - ($time_limit * 24 * 60 * 60); $upcoming_mask_range = time(); $upcoming_mask = date('Ymd', $upcoming_mask_range); // echo 'Now: '. date('Y-m-d') ."<br />"; // echo $time_limit . ' Days: '. date('Ymd', $date_range) ."<br />"; $zc_new_date = date('Ymd', $date_range); switch (true) { case (SHOW_NEW_PRODUCTS_LIMIT == 0): $new_range = ''; break; case (SHOW_NEW_PRODUCTS_LIMIT == 1): $zc_new_date = date('Ym', time()) . '01'; $new_range = ' and p.products_date_added >=' . $zc_new_date; break; default: $new_range = ' and p.products_date_added >=' . $zc_new_date; } if (SHOW_NEW_PRODUCTS_UPCOMING_MASKED == 0) { // do nothing upcoming shows in new } else { // do not include upcoming in new $new_range .= " and (p.products_date_available <=" . $upcoming_mask . " or p.products_date_available IS NULL)"; } return $new_range; }
上記を/includes/functions/extra_functions/for_v1302.phpなどとして保存してアップロードすれば解決します。
また、カートを空にした際に
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SQL_SHOW_SHOPPING_CART_EMPTY' at line 1 in: [SQL_SHOW_SHOPPING_CART_EMPTY]
のエラーも発生します。
これもやはりv1.3.8では、includes/classes/db/mysql/define_queries.phpで定義されているSQL_SHOW_SHOPPING_CART_EMPTYが定義されていないためのエラーです。
DEFINE('SQL_SHOW_SHOPPING_CART_EMPTY',"select configuration_key, configuration_value from " . TABLE_CONFIGURATION . " where configuration_key RLIKE 'SHOW_SHOPPING_CART_EMPTY' and configuration_value > 0 order by configuration_value");
を
/includes/extra_datafiles/for_v1302.php
などとして保存し、アップロードすれば解決します。
今回のインストールでは、上記しかチェックしていませんが、実際にはあらゆる操作を行って、エラーがないか、詳細にチェックする必要があります。
なお、
Zen-Cart管理画面>追加設定>sqlパッチのインストールで
sources/ZENCART_SHORT.SQL
を実行するとread_me.txtの一般設定(Configurationの項目)が反映されます。
テンプレートモンスターには、Zen-Cart用だけでも300以上のテンプレートがあります。気に入ったテンプレートがあれば、まずは、上記を参考にお試し版で試してみてください。
11月 13th, 2015 at 9:59:46
At adjusting assets the potency of the Trove Hack resource
doesn’t stop. You can wreck havoc on debug irritating difficulties or
the artwork.
11月 20th, 2015 at 8:54:42
When some one searches for his vital thing, thus he/she needs to be available that in detail,
therefore that thing is maintained over here.
4月 1st, 2016 at 11:59:25
Spot on with this write-up, I seriously believe this site
needs a great deal more attention. I’ll probably be back again to
read through more, thanks for the advice!
4月 13th, 2016 at 5:59:52
Wow! In the end I got a webpage from where I can actually take helpful data regarding my study and knowledge.
6月 23rd, 2016 at 4:59:03
Essa Fórmula 47 que este criou, lhe proporcionou conquistar músculos
avós e abdômen definido em unicamente 47 dias, e também este visita livramento ensinar de que maneira você e nenhum gênero de pessoa é possível que fazer idêntico!