北京2014年5月至9月Magento模板制作以及技能培训班

培训时间:1个月。总学习时间1个月,自学时间20天,面对面指导时间10天。

培训内容:1.Magento模板制作 2.独立工作技能培训  3.seo实用技能

老师:钥匙本人

费用:3500元

面对面指导时间安排方式任选一种:1.工作日:10天现场学习   2.周末:8天时间

学习方式:自学 + 现场面对面指导

第一期招收数量:2–4人

学习地点:北京市通州区怡乐南街(地铁公交方便)

咨询:QQ 493835927 钥匙

继续阅读“北京2014年5月至9月Magento模板制作以及技能培训班”

Magento模板安装教程

此教程讲解如何安装magento模板,由于模板不尽一样,安装可能也不一样,所以如何安装,需要按照模板的说明来进行。此教程只是对其中一种模板安装进行讲解,方便大家参考学习。

视频地址:http://www.tudou.com/programs/view/HbLFdOzp-yw/


继续阅读“Magento模板安装教程”

Magento模板购买网站推荐themeforest

themeforest.net
themeforest.net

推荐网站网址:http://themeforest.net/category/ecommerce/magento

推荐理由:

1.模板版本更新很快,新的模板也多

2.大多数模板支持各个magento版本

3.大多数模板支持ipad和iphone浏览

4.模板使用说明很详细,方便小白用户

5.有的模板带有一页结账和品牌插件

6.大多数模板代码都很靠谱,标明SEO优化过的模板会有相应的代码优化

7.除了magento模板,其它开源软件的模板也很多也可以在此购买。

注意:模板购买前,可以先看下模板特点介绍,然后看下模板的详细介绍和demo

自己购买,可以使用双币种信用卡直接购买,购买和下载都很方便。

继续阅读“Magento模板购买网站推荐themeforest”

Magento去掉价格的小数点

Magento去掉价格小数点
Magento去掉价格小数点

Magento的默认情况,价格后面是有小数点的,我们来看下如何正确的来去掉小数点。

1.复制如下路径的文件 app/code/core/Mage/Directory/Model/Currency.php 到 app\code\local\Mage\Directory\Model\ 文件夹下面,这个文件夹没有自己手动创建下。

2.打开新复制的这个文件 Currency.php

继续阅读“Magento去掉价格的小数点”

magento set image fit or fill the parent container

magento图片自适应容器大小
magento图片自适应容器大小

magento原始模板原先自带的图片处理会有白边,就是图片比例不符合代码中的尺寸时,magento会自动resize图片尺寸,并且自动加上白边。

其实去掉白边好搞,增加去白边的代码即可,如下

$this->helper('catalog/image')->init($_product, 'small_image')->constrainOnly(TRUE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(210);

keepFrame(FALSE)这个是控制白边的,参数false就是不带白边。resize控制图片的比例,单独一个数字,如上面 200,是将图片搞成200*200的尺寸,这个只有在有白边的时候才有效,没有白边了这个resize就不太管用了,会按照实际比例缩放图片,你可以试试。

对于很多人来说也许去掉白边就够用了,但是有的时候有变态的情况,比如图片比例是1:5甚至1:10,尼玛 – – ! 怎么会有这么变态的图片比例,这会将你的布局搞的乱七八糟。如果你有这个情况,又想控制图片的最大宽高的话,看这篇博文会有所帮助。

首先我们将magento的图片的白边去掉了,下一步就是使图片自适应到你设置的大小,即使比例差别很大,也自适应下,图片不超出你指定的长宽。相当于,你设置了图片的最大宽度,最大高度。这样对于你布局来说,会好狠多。

jquery有很多图片缩放,自适应的插件,我找到的这个是我自己认为比较合适的 http://imgscale.kjmeath.com/,当然大家也可以找自己喜欢的,或者更满足大家自己需求的js插件。

看插件的说明,他要求在图片的外层有个div或者什么的是block类型的html标签,并且css中写上宽高。

继续阅读“magento set image fit or fill the parent container”

推荐几个Magento模板网站

 

推荐几个magento模板网站
推荐几个magento模板网站

推荐几个Magento模板网站,有的网站会提供免费模板,大家可以看下。最近疏于更新博客,所以这几天多补充几篇,感谢大家的关注和支持。谢谢

1. 三个免费模板 http://web-experiment.info/free-magento-templates.htm

2. 比较有名的怪兽模板,有名意味着“撞衫”  http://www.templatemonster.com/magento-themes.php

3.随便找到的一家 http://galathemes.com/magento-themes.html

4.hello家也是很早的一家,盗版泛滥 http://www.hellothemes.com/

5. 另一家 http://www.emthemes.com/

6.宇宙里最强大的magento开发公司,值得信赖,无论模板还是插件 http://ecommerce.aheadworks.com/magento-themes-and-templates.html

7. 模板俱乐部 http://www.rockettheme.com/magento 什么样的商家,敢这么干?太相信中国人了

继续阅读“推荐几个Magento模板网站”

Magento加入收藏夹错误

magento不能加入收藏夹
magento不能加入收藏夹

Magento加入收藏夹错误 Call to a member function setItems…

我将magento 1.5的模板用到1.7上,在点击将商品加入收藏夹的时候产生了这个错误提示,无法将商品加入收藏夹。
这是由于模板不适用于当前Magento版本引起的,google下,见此页有修改的答案:http://www.magentocommerce.com/boards/viewthread/280193/
即是将你模板文件中 wshlist.xml中的

<block type="wishlist/customer_wishlist" name="customer.wishlist" template="wishlist/view.phtml"/>

修改为

<block type="wishlist/customer_wishlist" name="customer.wishlist" template="wishlist/view.phtml">
    <action method="setTitle" translate="title">
        <title>My Wishlist</title>
    </action>
    <block type="wishlist/customer_wishlist_items" name="customer.wishlist.items" as="items" template="wishlist/item/list.phtml">
        <block type="wishlist/customer_wishlist_item_column_image" name="customer.wishlist.item.image" template="wishlist/item/column/image.phtml" />
        <block type="wishlist/customer_wishlist_item_column_comment" name="customer.wishlist.item.info" template="wishlist/item/column/info.phtml">
            <action method="setTitle" translate="title">
                <title>Product Details and Comment</title>
            </action>
        </block>
        <block type="wishlist/customer_wishlist_item_column_cart" name="customer.wishlist.item.cart" template="wishlist/item/column/cart.phtml">
            <action method="setTitle" translate="title">
                <title>Add to Cart</title>
            </action>
            <block type="wishlist/customer_wishlist_item_options" name="customer.wishlist.item.options" />
        </block>
        <block type="wishlist/customer_wishlist_item_column_remove" name="customer.wishlist.item.remove" template="wishlist/item/column/remove.phtml" />
    </block>
    <block type="core/text_list" name="customer.wishlist.buttons" as="control_buttons">
        <block type="wishlist/customer_wishlist_button" name="customer.wishlist.button.share" template="wishlist/button/share.phtml" />
        <block type="wishlist/customer_wishlist_button" name="customer.wishlist.button.toCart" template="wishlist/button/tocart.phtml" />
        <block type="wishlist/customer_wishlist_button" name="customer.wishlist.button.update" template="wishlist/button/update.phtml" />
    </block>
</block>

请根据本文的提示,根据实际情况做出修改。

继续阅读“Magento加入收藏夹错误”

Magento获取最近更新商品

Magento最新商品
Magento最新商品

今天google了下,总结了下如何获取Magento每个分类的最近更新商品,根据商品的ID号,倒序排列出最后添加的商品。代码如下

<?php
	$categories = Mage::helper('catalog/category');
	/* @var $helper Mage_Catalog_Helper_Category */
	$categories_collection = $categories->getStoreCategories('name', true, false);
	$categories_url = Mage::helper('catalog/category');
?>

<?php if($categories_collection->getSize()): ?>
    <dl class="new-product">
        <?php foreach ($categories_collection as $_item): ?>

				<dt><a href="<?php echo $categories_url->getCategoryUrl($_item) ?>"><?php echo $_item->name ?></a></dt>

				<?Php
					$p_collection = $_item->getProductCollection();
					$p_collection->addAttributeToSelect(array('name', 'id', 'price', 'url_key', 'small_image'))
					             ->addAttributeToFilter('status', 1)
								 ->addAttributeToFilter('visibility', 4) //catalog, search
								 ->addAttributeToFilter('sku',array("nlike"=>'%CUS001%'))
								 ->setOrder('entity_id', 'DESC')
								 ->getSelect()->limit( 8 );
								 //->setPageSize(10);

				?>
				<?php
				/*foreach ($p_collection as $product) {
						echo $product->getName().'<br />';
						echo $product->getSmallImage().'<br />';

						echo Mage::helper('core')->currency($product->getFinalPrice()).'<br />';
					}*/

				?>
				<?php if($p_collection->getSize()): ?>
				<dd>
				<ul class="new-product-ul">
				<?php foreach ($p_collection as $product): ?>
					<li>
					<a href="<?php echo $product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($product, 'small_image')->resize(200); ?>" width="200"  alt="<?php echo $product->getName(); ?>" /></a>
						<h3 class="product-name"><a href="<?php echo $product->getProductUrl() ?>" title="<?php echo $product->getName(); ?>"><?php echo $product->getName() ?></a></h3>

					<?php echo $this->getPriceHtml($product, true) ?>
					</li>

				<?php endforeach; ?>
				</ul>
				</dd>
				<?php else: ?>
					<dd>
						<p class="note-msg">
							<?php echo $this->__('There are no %s available.', $this->getItemsTitle()); ?>
						</p>
					</dd>

				<?php endif ?>

        <?php endforeach; ?>
    </dl>
<?php else: ?>
    <p class="note-msg">
        <?php echo $this->__('There are no %s available.', $this->getItemsTitle()); ?>
    </p>
<?php endif ?>

继续阅读“Magento获取最近更新商品”

免费Magento模板Quasar

Quasar Template
Quasar Template

每个公司想在magento行业先立足,最好的办法就是先提供些免费得magento模板、插件给大家下载,今天推荐一个magento免费模板。

模板名字:Quasar

支持magento版本:1.5.1.0

模板提供公司:rockettheme.com

Quasar模板地址:http://www.rockettheme.com/magento-downloads/2068-free-themes-a-extensions

Quasar演示地址:http://demo.rockettheme.com/magento/

继续阅读“免费Magento模板Quasar”

分享三个免费的magento模板

 

免费magento模板分享
免费magento模板分享

今天分享三个免费的magento模板,这三个模板的介绍页面是:http://web-experiment.info/free-magento-templates.html

三个模板下载地址分别为:

Bluescale Free Magento Template : http://web-experiment.info/bluescale-magento-template.html

Grayscale Free Magento Template :http://web-experiment.info/grayscale.html

Glam Free Magento Template : http://web-experiment.info/glamour-magento-template.html

这三个模板还是很不错的,支持magento 1.4 1.5 1.6 版本。

现在免费的magento模板越来越多了,其中有些还是很不错的。有的模板也带有一些很有个性的插件,大家安装的时候注意看安装说明。

继续阅读“分享三个免费的magento模板”