magento操作汇总

怎么去修改语言

1、下载语言包(app > locale)替换
2、登陆admin后 台 > Manage stores ,创建一个新的store view【如果是一个网站多个语言则可以考虑】
3、到admin panel System > Configuration > general
然后选择 store view “Chinese” locale options > locale > Chinese【或者是其它的语言】

怎么移除首页以及商品链接中的index.php

In order to remove the index.php from the URL for the online Magento store you can follow the steps given below: 【同时要保证在apache下,.htaccess的文件配置】


First Login to Magento backend and navigate to menu System->Configuration->Web->Search Engine Optimization
Set Use Web Server Rewrites to ‘yes’ 

<IfModule mod_rewrite.c>                                                                                                                                                                                                                                                  
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
</IfModule>

how to modify the block position

如何去修改列表页的产品显示(每行显示多少个,是默认以列表显示还是以表格显示)

In your custom theme open up catalog.xml and find the following line on around line 100:

<action method="setDefaultGridPerPage"><limit>3</limit></action>
                     <action method="addPagerLimit"><mode>grid</mode><limit>15</limit></action>
                     <action method="addPagerLimit" translate="label"><mode>grid</mode><limit>all</limit><label>All</label>

</action>

add ad for left slider

The callouts are hardcoded in the default layout xml to be files on your server.  I think you can change them to be static blocks instead, so you can manipulate them in the admin instead of in the layout files.

Update:
I got my head wrapped around how to do this now.

In the default theme, the catalog.xml file has this for the left callout:

<reference name="left">
      <block type="core/template" name="left.permanent.callout" template="callouts/left_col.phtml">
          <action method="setImgSrc"><src>images/media/col_left_callout.jpg</src></action>
          <action method="setImgAlt" translate="alt" module="catalog"><alt>Our customer service is available 24/7. Call us at (800) DEMO-NUMBER.</alt></action>
          <action method="setLinkUrl"><url>checkout/cart</url></action>
      </block>
  </reference>

I changed it to this: (just use custom block to replace default block)


<reference name="left">
      <block type="cms/block" name="left.permanent.callout">
          <action method="setBlockId"><block_id>left_column_block</block_id></action>
      </block>
  </reference>

and added a CMS Static Block with an ID of left_column_block. I can put whatever I want in there from the backend(including empty) and it will show in the left column. I did the same thing with the right column, and can add more in strategic places for future editing by the client in the backend.  This worked even when I hadn’t created the static block yet

change default currency setting

Selected default display currency is not available in allowed currencies

解决办法:
将缓存 清空
同时将 数据换成  Allowed Currencies  等一系列的货币要要包含相应的货币类型

how to configuration multiple website

change the template layout  批量的修改商品布局视图

open  page.xml file.

<reference name="root">

            <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
</reference>

去除默认的logo[并且进行替换]

1. Go to System | Configuraon | Advanced | Advanced. You should see the Disable
modules output page.
2. Locate the module labeled Mage_Newsleer and/or Mage_Poll, and select Disable.
3. Click on the Save Config button.

how to add  special category content  [you can put it in home page or other pages]

<reference name="content">

    <block type="catalog/product_list" name="featured" template="catalog/product/list.phtml">
        <action method="setCategoryId"><category_id>[category id here]</category_id></action>
    </block>
</reference>

Development Reference


Database:

日志以及记录用户行为的数据占用了大量的数据库磁盘空间

TRUNCATE table `log_url_info`;
TRUNCATE table `log_url`;
TRUNCATE table `report_event`;
TRUNCATE table `log_visitor_info`;
TRUNCATE table `log_visitor`;
TRUNCATE table `index_event`;
TRUNCATE table `report_viewed_product_index`;
TRUNCATE table  `dataflow_batch_export`;
TRUNCATE table  `index_process_event`;
TRUNCATE table  `dataflow_batch_import`;

使用数据库的方式来修改model

<?php

require_once 'app/Mage.php';
Mage::app();
// instatiate Product
$product = Mage::getModel('catalog/product');
$product->setWebsiteIds(array(1));
$product->setSku('rand-sku-' . rand());
$product->setPrice(rand(100,2000));
$product->setAttributeSetId(4);
$product->setCategoryIds(array(3));
$product->setType('Simple Product');
$product->setName('Product Name'.rand(1,200000));
$product->setDescription('The Product Description');
$product->setShortDescription('Brief Description');
$product->setStatus(1);
$product->setTaxClassId('2');
$product->setWeight(0);
$product->setCreatedAt(strtotime('now'));
/* ADDITIONAL OPTIONS
   $product->setCost();
   $product->setInDepth();
   $product->setKeywords();
*/
$product->save();
// "Stock Item" still required regardless of whether inventory
// control is used, or stock item error given at checkout!
$stockItem = Mage::getModel('cataloginventory/stock_item');
$stockItem->loadByProduct($product->getId());
$stockItem->setData('is_in_stock', 1);
$stockItem->save();
header("Location: /checkout/cart/add/product/".$product->getId()."/);
?>

reference:   http://blog.chapagain.com.np/magento-how-to-select-insert-update-and-delete-data/

the code reference for Magento

Get the Total Price of items currently in the Cart:

<?php echo $this->helper('checkout')->formatPrice(Mage::getSingleton('checkout/cart')->getQuote()->getGrandTotal()); ?>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Magento用户手册目录 第一章:Magento介绍...................................................................................................................4 Magento 的特色......................................................................................................................5 什么是Magento........................................................................................................................6 Magento的元素和专业术语....................................................................................................6 网站和商店(website and store)...................................................................................7 网站(website)..............................................................................................................7 商店(store)..................................................................................................................7 商店界面(store views)................................................................................................7 Magento的程序架构................................................................................................................8 内核(Core)..................................................................................................................9 本地的(Local).............................................................................................................9 社区(Community).......................................................................................................9 扩展(Extensions).........................................................................................................9 模块(Modules)............................................................................................................9 界面(Interface)..........................................................................................................10 主题(Themes)............................................................................................................10 区块(Blocks).............................................................................................................11 第二章:Magento入门.................................................................................................................12 Magento的系统需求..............................................................................................................12 Magento下载..........................................................................................................................13 Magento安装和配置..............................................................................................................14 Magento后台控制面板介绍..................................................................................................14 创建多网站和商店(Creating Multiple Websites and Stores)...................................14 缓存管理(Cache Management).................................................................................16 第三章:建立目录........................................................................................................................17 产品目录概念总览................................................................................................................17 设置默认项....................................................................................................................17 产品图片存放目录(Product Image Placeholders)....................................................19 创建分类(Creating Categories).................................................................................21 分类中添加产品(Assigning products at the category level)....................................24 定制分类页面的外观(Assigning designs at the category level)..............................25 在分类页面中使用静态区块(Using static blocks with categories).........................26 属性(Attributes)................................................................................................................27 创建属性(Creating an Attribute)...............................................................................27 特性(Properties)........................................................................................................27 管理标记/选项(Manage Label/Options)...................................................................30 管理属性集(Managing Attribute Sets).....................................................................31 产品(Procucts)..................................................................................................................34 设定配置和属性(Setting up configuration and Attributes)......................................35 创建简单产品(Creating a Simple Product)..............................................................36 创建可配置产品(Creating a Configurable Product).................................................45 创建分组产品(Creating a Grouped Product)............................................................49 相关产品,推荐销售,交叉销售 (Related Products,Up-sells,Cross-sells) 52 产品比较功能(Product Comparisons)......................................................................54 层级导航(Layered Navigation).................................................................................55 产品级别制定外观(Assigning Designs at the product level)...................................57 库存管理...............................................................................................................................58 建立存货管理默认选项(Creating stock management default options)...........................58 产品批量更新........................................................................................................................58 URL重写...............................................................................................................................59 第四章:为销售做准备................................................................................................................62 结账流程(Checkout Process)............................................................................................62 本地化设置(Localization Settings)...................................................................................69 地区设置(Locale Settings)........................................................................................70 货币设置(Currency Configuration)..........................................................................70 货币汇率(Currency Rates)........................................................................................72 Taxes设置...............................................................................................................................72 税率(Tax Rates)........................................................................................................72 税类(Tax Classes).....................................................................................................74 税收规则(Tax Rules)................................................................................................75 发货选项(Shipping Options)............................................................................................76 发货设置(Shipping Setting)......................................................................................76 发货方法(Shipping Methods)...................................................................................78 收款(Accepting Money)....................................................................................................90 支付方法和PayPal账号(Payment Methods and PayPal Accounts)..........................90 Google Checkout..........................................................................................................110 第五章:促销,市场营销和内容页..........................................................................................116 顾客个性化(Customer Personalization).........................................................................117 Wishlist........................................................................................................................117 产品比较(Compare Products).................................................................................118 最近浏览/比较的产品(Recently Viewed/Compared Products).............................119 新产品(New Products)............................................................................................120 RSS订阅(RSS Feeds)..............................................................................................121 层次性定价(Tier Pricing)...............................................................................................122 目录定价规则(Catalog Price Rules)...............................................................................124 规则信息(Rule Information)...................................................................................125 条件(Conditions).....................................................................................................125 动作(Actions)..........................................................................................................127 购物车定价规则(Shopping Cart Price Rules)................................................................127 规则信息(Rule Information)...................................................................................128 条件(Conditions).....................................................................................................129 动作(Actions)..........................................................................................................130 简报(Newsletter).............................................................................................................131 简报配置(Newsletter Configuration)......................................................................131 简报模板(Newsletter Templates)............................................................................132 简报队列(Newsletter Queue)..................................................................................133 简报订阅者(Newsletter Subscribers).....................................................................133 简报问题报告(Newsletter Problem Reports).........................................................134 静态区块(Static Blocks).................................................................................................134 着陆页(Landing Pages)...................................................................................................137 General Information......................................................................................................138 Custom Design.............................................................................................................138 Meta Data.....................................................................................................................139 投票(poll)........................................................................................................................140 Poll Information............................................................................................................141 Poll Answers.................................................................................................................141 搜索大纲及重定向(Search Synonyms and Re-directs)..................................................142 快速搜索(Quick Search).........................................................................................142 高级搜索(Advanced Search)..................................................................................144 第六章:客户..............................................................................................................................145 客户默认选项(Default Customer Options)....................................................................146 Account Sharing Options Share....................................................................................146 Create New Account Options.......................................................................................146 Password Options.........................................................................................................146 联系选项及Email(Contact Options and Emails)............................................................147 Editing Email Templates...............................................................................................147 Email Sender.................................................................................................................148 Contact Us....................................................................................................................148 创建新客户(Creating Customers)...................................................................................148 In Front-end..................................................................................................................149 In Admin.......................................................................................................................150 客户用户组(Customer Groups)......................................................................................151 Creating Customer Groups...........................................................................................152 Managing Customer Groups.........................................................................................152 批量更新客户(Batch Updates to Customers).................................................................153 客户账号的前台及后台功能(Front-End and Back-End functionality for Customer Accounts) 153 前台功能(Front-End)..............................................................................................154 后台功能(Back-End)..............................................................................................157 在线客户(Online Customers).........................................................................................159 第七章:报表及分析..................................................................................................................159 报表(Reports)..................................................................................................................159 销售方面的报表(Sales)..........................................................................................159 购物车报表(Shopping Cart Report).......................................................................161 产品方面的报表(Products)....................................................................................161 客户方面的报表(Customers).................................................................................162 评论报表(Review Reports).....................................................................................163 标签报表(Tags Reports).........................................................................................164 搜索词(Search Terms).............................................................................................164 Dashboard............................................................................................................................164 分析(Analytics)...............................................................................................................165 第八章:订单管理......................................................................................................................166 Overview of Order Functionality..........................................................................................166 Creating Orders.............................................................................................................166 Terminology..................................................................................................................166 Invoice.........................................................................................................................166 Managing and Editing Orders.......................................................................................167 新建订单(Creating Orders).............................................................................................167 Accessing the Order Page.............................................................................................167 Creating the Order........................................................................................................168 销售订单选项(Sales Order Options)..............................................................................171 1.发票选项(Invoice Options)..................................................................................171 2.发货选项(Shipment Options)..............................................................................174 3.信用备忘选项(Credit Memo Options)................................................................176 管理及修改订单(Managing and Editing Orders)..................................................................178 第九章:用户生成内容..............................................................................................................181 评级和评论(Ratings and Reviews)........................................................................................181 管理评级(Managing Ratings).................................................................................181 管理评论(Managing Reviews)...............................................................................183 标签(Tags).......................................................................................................................186 通过Email给朋友推荐产品(Email to a Friend Options)...............................................188 第十章:Magento升级...............................................................................................................189 使用magento connect升级Magento.....................................................................................189

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值