Page test

ページテスト

ほげ

ふー

テスト

ほげ

Drupal - インストール

■ リベロジックで使用しているレンタルサーバーへDrupalをインストールする手順。 ■ はじめに WebServer: Apache 1.3, 2.x, IIS PHP: PHP5.3 以上 Database: MySQL5.0.16以上, PostgreSQL8.3以上, SQLite3(Drupal 7のみ) 詳細はここからどうぞ(英語)。 ■ phpの編集(xserver管理パネル) (1) PHPのバージョン切り替え PHP5系に切り替わっていない場合は、 最新版のPHP5.3.x系に切り替える。

MySQL - 複数テーブル削除

使用は用法、容量、時間と場所を選んでください:) ■ MySQL 5.0.77で動作確認。

Magento Notes - カスタムモジュール作成

参考URL:Tutorial: Creating a Magento Widget - Part 1 ■ 完成イメージ ■ ディレクトリ構造
/app
    /etc
        /modules
                /Sample_WidgetDesu.xml
    /code/local
               /Sample/WidgetDesu
                                 /Model
                                       /Theme.php
                                       /Layout.php
                                       /Display.php
                                 /etc
                                     /system.xml
                                     /config.xml
                                     /widget.xml
                                 /Block
                                       /Hoge.php
                                 /Helper
                                        /Data.php

Magento Notes - レジに進めない

フロントエンドでレジに進めない場合の対処法。 症状として下図のような状態を示す。

Magento Notes - テンプレートクラスを拡張して自作クラスを作成する

サンプルとしてjqueryのnoconflictコードを自作クラスを使って出力してみる。

Magento Notes - Footer Link

■ フッターのリンク追加、挙動について。 Editing the Footer in a stock magento build
サンプルを例として記述していく。
Case1. フッターに「お問合わせ」リンクを追加したい。
管理パネル側で管理したほうが楽で早いです。

Magento Notes - Set XML template file

メモ。詳細解り次第追記
Webブラウザ上で編集しないで、ソースコードを直接編集するやり方。
■ ページを無効化
管理画面からデフォルトページを無効にしておく。
「CMS」→「ページ」
URLキーがhomeとなっているページを編集。
「ページ情報」の「状態」を無効にして保存する。
■ デフォルトページ設定
※サンプル パス:[Magento-Install-Path]/app/design/frontend/mystore/layout/cms.xml
(1) テンプレートファイルを指定 actionノード内のtemplateノードにテンプレートファイルパスを記述。
<reference name="root">
    <action method="setTemplate"><template>テンプレートファイルパス</template></action>
</reference>
(2) テンプレートにウィジェットを配置
<reference name="content">
	<block type="core/template" name="default_home_page" template="コンテンツファイルパス"/>
	<block type="catalog/product_new" name="home.catalog.product.new" alias="product_new" template="catalog/product/new.phtml" after="cms_page">
		<action method="addPriceBlockType">
			<type>bundle</type>
			<block>bundle/catalog_product_price</block>
			<template>bundle/catalog/product/price.phtml</template>
		</action>
	</block>
</reference>

■ タイプ(新規商品)

<block type="catalog/product_new" name="home.catalog.product.new" alias="product_new" template="catalog/product/new.phtml" after="cms_page">
	<action method="addPriceBlockType">
		<type>bundle</type>
		<block>bundle/catalog_product_price</block>
		<template>bundle/catalog/product/price.phtml</template>
	</action>
</block>

■ タイプ(最近見た商品)

<block type="reports/product_viewed" name="home.reports.product.viewed" alias="product_viewed" template="reports/home_product_viewed.phtml" after="product_new">
	<action method="addPriceBlockType">
		<type>bundle</type>
		<block>bundle/catalog_product_price</block>
		<template>bundle/catalog/product/price.phtml</template>
	</action>
</block>

■ タイプ(最近比較した商品)

<block type="reports/product_compared" name="home.reports.product.compared" template="reports/home_product_compared.phtml" after="product_viewed">
		<action method="addPriceBlockType">
		<type>bundle</type>
		<block>bundle/catalog_product_price</block>
		<template>bundle/catalog/product/price.phtml</template>
	</action>
</block>
↓すべて見る
コンテンツ配信