Flipping Book Demo

ISCL Online Launch

Congretulation for ISCL Online is launched!

http://shop.iscl.com.hk/

Locally established in Hong Kong in 1962, Ichikawa Sangyo Co. Ltd (ISCL) is engaged in the wholesaling and retailing of active lifestyle products of Japanese sporting brands.

Since its beginning as a trading company, ISCL has taken advantage of its unique knowledge of business cultures of Japan, and has effectively communicated the distribution policies of suppliers to its good effects in Hong Kong. It also strives to meet the ever-changing market demands by feeding timely news of local needs back to the suppliers.

With the introduction of ‘Mizuno’ brand into the region in 1975, as the sole distributor in Hong Kong, ISCL has in effect helped in pioneering and development of local sporting industry such as in the fields of baseball, softball, volleyball, golf, running & athletic.

With the pool of knowledge and experience in the fields of sports and sport-fashion markets, ISCL pledges to offer quality distribution policies of the suppliers, and to keep on contributing to Hong Kong society in the development of sports and sport-fashion industries.

We wish ISCL has a successful in their new business

Stop wordpress adding
tag

Been swearing at WordPress this afternoon…

I’ve been trying to transfer an html form, which I had working perfectly on a static html page, onto a WordPress page. WordPress insisted on adding multiple <br/> tags where I didn’t want them. Mutter.

Eventually, after much searching, I identified a parameter within wp-includes/formatting.php, which allows you to disable this irritating feature. If you open formatting.php and find the function wpautop you’ll see this:

function wpautop($pee, $br = 1)

Change this to:

function wpautop($pee, $br = 0)

Save the file and publish it back to your server and that’s it. Works fine in WP2.8.

Note: WP 2.8.3 overwrites formatting.php so this change needs redoing.

Fix Magento Chinese PDF Wrong Charset

解决Magento中文订单PDF 输出乱码

这个BUG 是Magento本地化程度尚欠的一点体现。

这是由于 Magento 的 PDF 的字体是英文字体,并不支持中文,所以产生的 PDF 里中文无法显示,只显示为一个“口”。

可以通过重写Magento 的生成PDF 的核心代码,把字体修改为中文字体来实现修正。由此须准备一个 TTF 字体,如下,将标宋字体放在了$site_dir/media/fonts/STSONG.TTF,把 app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php 建一个副本到 app/code/local/Mage/Sales/Model/Order/Pdf/Abstract.php,然后大约在561 行:

protected function _setFontRegular($object, $size = 7)
{
$font = Zend_Pdf_Font::fontWithPath(Mage::getBaseDir() . ‘/media/fon
ts/STSONG.TTF’);
$object->setFont($font, $size);
return $font;
}

protected function _setFontBold($object, $size = 7)
{
$font = Zend_Pdf_Font::fontWithPath(Mage::getBaseDir() . ‘/media/fon
ts/STSONG.TTF’);
$object->setFont($font, $size);
return $font;
}

protected function _setFontItalic($object, $size = 7)
{
$font = Zend_Pdf_Font::fontWithPath(Mage::getBaseDir() . ‘/media/fon
ts/STSONG.TTF’);
$object->setFont($font, $size);
return $font;
}

Magento 1.4 toolbar bug

It is nice to have magento 1.4 released but there is a small bug in toolbar which makes the list and grid view error.

And I don’t like the error report in write in a number file stored in var/report, even though it is good to have it not showing in the frontend

It is a easy fix for the toolbar error for magento1.4

file to change:
code/core/Mage/Catalog/Block/Product/List/Toolbar.php

here is the code from the new magento1.4

class Mage_Catalog_Block_Product_List_Toolbar extends Mage_Core_Block_Template
{
/**
* Products collection
*
* @var Mage_Core_Model_Mysql4_Collection_Abstract
*/
the problem is the extends Mage_Core_Block_Template, it doesn’t have the method each as $this->getPages()

so if you change it to
class Mage_Catalog_Block_Product_List_Toolbar extends Mage_Page_Block_Html_Pager
all the problem fixed.