レッドトイプードル・チョコタンチワワ・ブルーマールチワワ・ヨークシャーテリアの子犬を紹介するレッドトイボックスです。

レッドトイボックス

ママと一緒にまってるよ♪

uO@bhgCv[hDI

‘ZenCart覚え書き’ カテゴリーのアーカイブ

Zencartの商品ページのオプション選択

2008 年 11 月 27 日 木曜日

はじめのまんまだと 色の選択とかで チェックボタンと名前の間に<br />が入っている。

これを取るには、includes/modules/attributes.php の273行目からの

$tmp_attributes_image .= '<div class="attribImg">' . zen_draw_radio_field('id[' . $products_options_names->fields['products_options_id'] . ']', $products_options_value_id, $selected_attribute, 'id="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '"') . '<br />' . '<label class="attribsRadioButton five" for="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '">' . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . (PRODUCT_IMAGES_ATTRIBUTES_NAMES == '1' ? '<br />' . $products_options->fields['products_options_values_name'] : '') . ($products_options_details_noname != '' ? '<br />' . $products_options_details_noname : '') . '</label></div>';
} else {
$tmp_attributes_image .= '<div class="attribImg">' . zen_draw_radio_field('id[' . $products_options_names->fields['products_options_id'] . ']', $products_options_value_id, $selected_attribute, 'id="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '"') . '<br />' . '<label class="attribsRadioButton fiveA" for="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '">' . $products_options->fields['products_options_values_name'] . ($products_options_details_noname != '' ? '<br />' . $products_options_details_noname : '') . '</label></div>';

の「‘<br />’ . 」を削除する。

このファイルには、同じような記述が他にもあるけど まだ未検証と言うかなので 検証できた時にでもメモすることにする。

ZenCartのサイドボックスにログインをつけるモジュール

2008 年 11 月 23 日 日曜日

1.こちらから 「Login Box 」をDLする。

2.zencartと同じ構造になっているので まんま「catalog/includes/」にアップする。

3.「サイドボックスの表示設定」の一番上に出てくる。

ZenCartの記述修正する。

2008 年 11 月 23 日 日曜日

includes/functions/functions_prices.php の209行目・212行目・216行目・218行目

$show_sale_discount = '<span class="productPriceDiscount">' .'<br />'.PRODUCT_PRICE_DISCOUNT_PREFIX . $show_discount_amount . PRODUCT_PRICE_DISCOUNT_PERCENTAGE . '</span>';

$show_sale_discount = '<br />'.'<span class="productPriceDiscount">' . PRODUCT_PRICE_DISCOUNT_PREFIX . $show_discount_amount . PRODUCT_PRICE_DISCOUNT_PERCENTAGE . '</span>';

‘<br />’ . を前に持ってくる。

209行目から
$show_sale_discount ='<br />'.'<span class="productPriceDiscount">' . PRODUCT_PRICE_DISCOUNT_PREFIX . $show_discount_amount . PRODUCT_PRICE_DISCOUNT_PERCENTAGE . '</span>';

} else {
$show_sale_discount = ‘<br />’ . ‘<span class=”productPriceDiscount”>’ . PRODUCT_PRICE_DISCOUNT_PREFIX . $currencies->display_price(($display_normal_price – $display_sale_price), zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . PRODUCT_PRICE_DISCOUNT_AMOUNT . ‘</span>’;
}
} else {
if (SHOW_SALE_DISCOUNT == 1) {
$show_sale_discount = ‘<br />’ . ‘<span class=”productPriceDiscount”>’ . PRODUCT_PRICE_DISCOUNT_PREFIX . number_format(100 – (($display_special_price / $display_normal_price) * 100),SHOW_SALE_DISCOUNT_DECIMALS) . PRODUCT_PRICE_DISCOUNT_PERCENTAGE . ‘</span>’;
} else {
$show_sale_discount = ‘<br />’ . ‘<span class=”productPriceDiscount”>’ . PRODUCT_PRICE_DISCOUNT_PREFIX . $currencies->display_price(($display_normal_price – $display_special_price), zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . PRODUCT_PRICE_DISCOUNT_AMOUNT . ‘</span>’;

includes/languages/japanese/address_book_process.php

define(‘HEADING_TITLE_ADD_ENTRY’, ‘<h1>新規住所登録</h1>‘);
define(‘HEADING_TITLE_MODIFY_ENTRY’, ‘<h1>住所変更</h1>‘);
define(‘HEADING_TITLE_DELETE_ENTRY’, ‘<h1>住所の削除</h1>‘);

h1タグを削除する。

ZenCartの特価商品の金額に→を

2008 年 11 月 23 日 日曜日

特価商品の金額で
500円450円なところを 500円  450円にする。(間違ってるかもしれない。でも出来た。)

includes/functions/functions_prices.php の225行目・234行目・236行目

$show_special_price = '&nbsp;' . '<span class="productSpecialPriceSale">' . $currencies->display_price($display_special_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . '</span>';

$show_special_price = '&nbsp;&nbsp;&rarr;&nbsp;&nbsp;' . '<span class="productSpecialPriceSale">' . $currencies->display_price($display_special_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . '</span>';

てな具合に「'&nbsp;&nbsp;&rarr;&nbsp;&nbsp;' . 」を入れる。

ZenCartの特価商品の修正

2008 年 11 月 23 日 日曜日

includes/modules/specials_index.php

̃y[W̃gbv

Copyright (c) Red Toybox 2007 All Rights Reserved.