国际电子商务技术 & Magento开发公司

Maishen technologies

Welcome visitor! You canlogin orcreate an account.

热线:+86-0532-58973093

麦神科技有限公司
Mygod Technologies

官方认证开发工程师

magento不同的用户显示不同的分类和产品

2011年6月2日星期四 Asia/Shanghai上午9:09:31

This extension enables you to hide categories and products from customers depending on the customer group

这个插件:magento不同的用户显示不同的分类和产品

地址:http://www.magentocommerce.com/magento-connect/vinai/extension/635/netzarbeiter_groupscatalog

key:magento-community/Netzarbeiter_GroupsCatalog

应该是有一定市场的,但是我没测试过,有这个需求的可以自己测试下看看!

0 Comments | Posted in magento二次开发 By terry water

在使用magento的时候,Recently Viewed Product,这个功能是有的,但是对于一些隐藏分类,是通过一些别的途径点进去的,为了更好的增加客户体验,需要Recently Viewed Category这个功能,也就是客户的分类访问历史记录,下面就是实现这个magento  Recently Viewed Category</a>功能的代码,放在分类页面访问时候的页面,譬如放在标签<catalog_category_layered >和<catalog_category_default>里面的left中,在访问分类页面的时候能访问就行,原理就是将客户访问的历史记录加入到session中,然后在提取出来,这样客户就可以查看到自己访问分类的历史记录了!

 

<?php
$sess = Mage::getSingleton("core/session", array("name" => "frontend"));
//$data = $this->getRequest()->getPost();
//$dd = $_GET['user'];
$cate = $_SESSION['Codess'];

$_helper    = $this->helper('catalog/output');
$_category = $this->getCurrentCategory();
$catename = $_helper->categoryAttribute($_category, $this->htmlEscape($_category->getName()), 'name');
$url = $_category->getUrl();
$ta = array();
$now = array($catename=>$url);
//var_dump($now);
?>

<?php if($cate!=""){  ?>
<div class="block block-list block-viewed">
    <div class="block-title">
        <strong><span><?php echo 'Recently Viewed Category'; ?></span></strong>
    </div>
    <div class="block-content">
        <ol id="recently-viewed-items">
        <?php foreach ($cate as $fir=>$end) {?>
            <li class="item">
            <?php  echo "<a href='".$end."'> ".$fir." </a>";  ?>
                </li>
        <?php  } ?>
        </ol>
      
    </div>
</div>
<?php } ?>

<?php
if($cate==""){
$_SESSION['Codess'] = $now;

}else{
$aray = $_SESSION['Codess'];
$aray[$catename] = $url;
//var_dump($aray);
$_SESSION['Codess'] = $aray;
}

?>

转载请务必标注地址:magento定制:http://www.magentowater.com/blog/Recently-Viewed-Category

0 Comments | Posted in magento扩展 By terry water

移除magento的URL中子分类的上级分类,也就是多级分类中的url变成一样的,而不存在层次,


譬如:一级分类为:www.magentowater.com/blog,他的二级分类为www.magentowater.com/blog/forum

我们想要它变成www.magentowater.com/forum

下面是解决方法:

文件 app/code/core/Mage/Catalog/Model/
Open Url.php 找到下面代码,然后把该注释的注释掉就可以了

 //if (null === $parentPath) {
//$parentPath = $this->getResource()->getCategoryParentPath($category);
//}
//elseif ($parentPath == '/') {
$parentPath = ''; //('Don't comment it')
//}

 当然刷新页面还是不行的,需要在index management下面重新reindex data一下,然后刷新缓存,ok!!

后话:

在去除分类页面的.html的时候,刷新缓存,会发现,还是带着html,也是需要index management,重新搞一次,呵呵!

转载请标注链接地址(我夯你说,这纯属道德问题!):Magentowaterhttp://www.magentowater.com/blog/magento-category-parent

0 Comments | Posted in Magento开发 By terry water

magento 兰亭模板 使用

2011年5月24日星期二 Asia/Shanghai上午1:25:22

仿兰亭模板在做综合站点还是一个比较不错的模板!略加修改,还是不错,下面是一些在这个magento兰亭模板中的设置!

1

在菜单栏目中的导购,如图所示,

 

 

如果想在右边添加这个导购,步骤:

1

在magneto后台-catalog-àmanager category,查看electronics的ID,在兰亭模板默认的是13

2

新建一个static block,identifier为 banner_13,然后在content里面填写相应的代码就可以

 

原理:

在WP_CustomMenu_Block_Navigation,代码如下,实际上是添加了一个static block,然后通过字符串拼接出来的

$blockId = sprintf('banner_%d', $id); // --- static block key

        $blockHtml = $this->getLayout()->createBlock('cms/block')->setBlockId($blockId)->toHtml();

故添加一个static block,然后Identifier 设置成 banner_13,然后在里面填写相应的代码,这里就显示出来了,

<div class="banner-block">

<h4>Special Offers</h4>

<ul>

<li class="disc"><a href="https://magetime.com/#">Discount Cell Phone</a></li>

<li class="disc"><a href="https://magetime.com/#">SALE! Electronics</a></li>

<li class="disc"><a href="https://magetime.com/#">SALE! Week Deals</a></li>

<li class="disc"><a href="https://magetime.com/#">Custom Logo Cell Phone</a></li>

<li class="last disc"><a href="https://magetime.com/c#">Dress on Sale</a></li>

</ul>

</div>

banner_13的html代码为:你可以在这里改动。设置!

 

 

2

在首页的left和content区域,都是在后台cms—page设置的,可以在这里修改。在home page的content和design区域!

3

如何设置首页的新产品?

在产品设置界面

 

只要将开始时间设定在当前时间之前,如果你想设定期限,就把结束时间设定上!

4

侧栏hot product,这个是由产品的销售量决定的,当产品的销售量也大,排的也靠前!

 

5

Featured Categories

只要添加了分类这里就有显示,这里最好限制个数,4个最佳,或者自己修改成自己想要的4个分类

6

Popular Products

如果有客户在产品详细页面写了评论,而且通过管理员认证,在产品详细页面显示评论信息,这里就会显示出来-------最新被评论的产品

 

7

Special product

这里是特价产品,如果一个产品在后台设定了special price,这里就会显示

8

Featured Products

这是个分类下的产品,代码为:

    <action method="setCategoryId"><category_id>35</category_id></action>

    <action method="setTitle"><title>Featured Products</title></action>

    <action method="setProductsCount"><count>12</count></action>

    <action method="setColumnsCount"><count>3</count></action>

  </block>

代码为35的那个分类,这个分类的设置为:

Is Active *yes

Include in Navigation Menu * no

9

Why can you choose Sample Store?

这一块的信息是在cms/about.phtml这个文件写的静态html

0 Comments | Posted in magento日常所用 By terry water

magento - 导入产品细节图片,产品分类,自定义选项的插件

2011年5月22日星期日 Asia/Shanghai下午2:12:30

导入产品分类,产品细节图,自定义选项的插件

在使用magneto的时候,导入产品数据遇到一些问题,擦,有时候还冲突,现在,下载这个插件就搞定,magento的灵活性,一定程序造成复杂性,学习magneto就是个体力活,这么多插件,花时间慢慢研究吧,下面这个已经搞定这个问题,这个是实用性很高的一个免费插件!

Import Products categories, multiple images and custom options

key:magento-community/Import_Products_categories__multiple_images_and_custom_options

好长的key!!

下面是magento插件链接地址:

http://www.magentocommerce.com/magento-connect/capacitywebsolutions/extension/4421/import_products_categories__multiple_images_and_custom_options

使用方法:

Overview

如果你想在custom option ,也就是自定义选项中添加一个这样的选项:

Create Custom options in admin -> products section

 

                Size:drop_down:1  (Column Heading)

                Size = custom option name        

                drop_down = control name

                1 = mandatory filed. (0 for optional field)

 

下面就是例子:

E.g.         XS|S|M|L|XL

如果你想在每个选项中在加入一些别的使用下面的方式

Small|Medium:fixed:5|Large:fixed:10

下面的是英文,自己蛮蛮看吧!

To insert category name, please create “categories“ column in your products import CSV file. Please remove “category_ids” column from products import CSV file if you have.

Now enter categories name under “categories” column

E.g. Movie/Cartoon

            Movie1 = parent category

            cartoon1 = child category of Movie1 category.

To insert multiple images, please create “gallery “column in your products import CSV file.

Under this column enter images name separated by semicolon ( ; ) . Please enter relative path of images like below example. Please do not use path like (http://www.xyz.com/ab.jpg ) for images.

E.g.    /image1_1jpg;/image1_2.jpg

You have to put all the images in media/import directory folder.

Sample Products Import CSV :- Click on this link,  Download Sample CSV and  Click on "Download File Now!" button.

 

After install extension Go to

1)       System -> Import/Export -> Profile

2)      Click on Import All Products

3)      Click on upload file from left menu

4)      Upload csv file and click on Save and Continue button

5)      Click on run profile

6)      Select your uploaded file

7)      Click on Run Profile in Popup

 

Note:- Do not close this popup until all product import successfully.

In version 1.1.2 Fix bug product image not import in magento version 1.5.0.1

Note:- This extension support for product type only which magento default import functionality support.

Please donate so we can continously improve this extension,

 

转载请务必标示地址:magentowaterhttp://www.magentowater.com/blog/Import-Products-categories-multiple-images-and-custom-options

标签:

0 Comments | Posted in magento免费插件 By Terry
 
  • Mygod Technologies
  • 麦神科技有限公司
  • 香港中路8号
  • 中铁青岛中心大厦A3001
  • 市南区, 青岛, 266000
  • 电话: 0532-5897-3093

订阅我们的最新消息。

我们将严格尊重您的隐私。

关注我们的微信
获取外贸电子商务最新资讯;跨境推广最新策略;电子商务网站技术最新趋势。

2018 Mygod Technologies. 保留所有权. Privacy Policy