simplehelix.com magento 专用服务器

我在此公司的1000多美金推广收入被清空,官方太儿戏,一个邮件直接清空余额并且删除我账户。我给他们做的一年推广白做了,非常可恶。

请在此页获取magento服务器信息:http://www.hellokeykey.com/magento-best-hosting/

不要使用simplehelix了,从此是路人。

simplehelix.com 这个专用的magento服务器提供商,支持中文,提供magento等多种开源软件的一键安装,一键备份,一键恢复。如果simplehelix.com是最好的magento服务器,在业界有良好的口碑。

我08年就开始从事magento开发工作。那个时候magento才出现,对服务器要求比别的软件多,而且magento明显比别的软件要慢,那个时候也没有专用的magento服务器。经过两三年的发展现在的magento速度已经比较让人满意了,magento专用服务器也出现了。在接触的很多新手中,都是花了大量的时间在magento的安装上,这个真的是让人很抓狂。所以我对于新手一直是推荐使用magento专用服务器,不用去研究如何安装magento,如何fix各种让人抓狂安装问题,将更多的时间放在网站的运营上。

很多时候即使你安装好了,但是又有服务器重写问题,内存不够的问题。但在simplehelix.com,不用担心运行环境不支持magento的后台设置,不用担心内存不够用,cpu不够用的问题。

simplehelix公司的专用服务器,支持一键安装,一键备份还原。如果有问题客服的技术支持也会耐心的解答。是从性能和服务上都很优秀的magento主机服务商。我推荐大家使用它。

simplehelix官网:https://www.simplehelix.com/hosting/aff.php?aff=287

在我博客此链接了解更多:http://www.hellokeykey.com/magento-best-hosting/

我的博客: hellokeykey.com,就是是在这个服务器上。可以先买一个月试试,货比三家。

 

继续阅读“simplehelix.com magento 专用服务器”

magento 多域名多店

在magento1.4中请参考官网 :http://www.magentocommerce.com/knowledge-base/entry/tutorial-multi-site-multi-domain-setup

或者:http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/navigation/multiple-website-setup

以下内容为1.2版本适用,1.3也可以试下

预习:

首先让我们来认识几个名词术语,若你是专家你会发现我的解释与名词准确的含义有差异,但对于属于不熟的人还是有助于理解的。

1.parked domain : 你有域名 one.com ,他的网站文件根目录是 public_html/one,你添加一个域名two.com 也是用one.com的文件根目录 public_html/one , 那么这个新添加的域名two.com 就是 parked domain

2.addon domain :  你有域名 one.com,是用网站文件根目录是 public_html/one,你有添加了另外的域名 two.com three.comtwo.com 网站文件根目录是 public_html/twothree.com 是用网站文件目录是 public_html/three 。这个 two.com three.com 我们就可以称之为 addon domain

3.Subdomains :   你有域名 one.com 使用网站文件文件目录 public_html/one,你因为各种原因想使用 shoes.one.com 或者 cup.one.com 域名,这个 shoes cup代替www作为域名的前缀,shoes.one.com cup.one.com 就是 subdomains

继续阅读“magento 多域名多店”

magento首页显示产品

1.首先现在magento后台创建一个新的分类,记下这个分类的 ID 号码。使用这个新建的分类来管理你的首页产品,这个分类设置为前台不可见。这样就不会显示在你的分类菜单中了,但使用代码调用的时候却会显示出来。

magento首页显示产品

2.在cms–>manage page–>home 适当位置添加如下代码(例如代码的最后)

{{block type="catalog/product_list" category_id="3" template="catalog/product/list.phtml"}}

(注意编码,你直接复制黏贴可能不行,要是英文的标点符号,不行就切换到英文输入法,然后自己手动的敲下。关闭你的所见即所得编辑器,再在如下图中的“内容”中黏贴此代码)

使用xml来显示的话,在如下图中的“设计”中,添加XML代码如下

 

<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>

代码解释如下:

继续阅读“magento首页显示产品”

magento 页面中加入CMS static block

在magento的模版中有些内容想通过后台来控制,那么你可以将这些html css js 放在CMS的static blocks中,然后用下面的代码来在前台输出。此分为两类,一个是在magento模板文件.phtml中输出这些block,一个是在后台的CMS中输出这个block。

1.写到phtml文件里的的PHP代码如下:

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('your_block_Identifier')->toHtml() ?>

其中setBlockId(‘your_block_Identifier’)的参数your_block_Identifier,为你在后台创建static block时填的Identifier值,如下图

继续阅读“magento 页面中加入CMS static block”

magento模板主题安装

注意区分“主题包”和“主题文件”这两个概念。我们所使用的主题在“主题文件”中,“主题包”中可以含有多个主题文件

###### 认识magento主题第一步

首先我们来看下magento主题文件的存放规则

主题文件路径一般为

app/design/frontend/主题包所在文件夹/主题文件所在文件夹/layout+locael+template

skin/frontend/主题包所在文件夹/主题文件所在文件夹/css+images+js

继续阅读“magento模板主题安装”

magento img 标签 使用

在magento的phtml文件中参考如下代码

<img src="<?php echo $this->getSkinUrl('images/myImage.png') ?>" alt="" />

在后台的CMS中使用 ,参考如下代码

<img src="{{skin url='images/media/myImage.jpg'}}" alt="" />

其中(‘images/myImage.png’)中的images是主题文件夹中的images文件夹

转载标明出处:hellokeykey.com 右兜钥匙

linux 安装 magento 文件权限

进入magento根目录

执行如下设置权限的命令,magento即可以正常安装

# chmod o+w var var/.htaccess app/etc

# chmod -R o+w media

若在使用magento connect的时候提示权限报警,进入magento根目录执行如下命令

#find . -type d -exec chmod 777 {} \;

转载标明出处:hellokeykey.com 右兜钥匙

magento 安装系统环境需求

magento安装系统需求以及检测

请参考官方的系统需求:http://www.magentocommerce.com/system-requirements

  • Supported Operating Systems:
    • Linux x86, x86-64
  • Supported Web Servers:
    • Apache 1.3.x
    • Apache 2.0.x
    • Apache 2.2.x
  • Supported Browsers:
    • Microsoft Internet Explorer 6 and above
    • Mozilla Firefox 2.0 and above
    • Apple Safari 2.x
    • Google Chrome
    • Adobe Flash browser plug-in should be installed
  • PHP Compatibility:
    • 5.2
    • Required extensions:
      • PDO_MySQL
      • simplexml
      • mcrypt
      • hash
      • GD
      • DOM
      • iconv
      • curl
      • SOAP (if Webservices API is to be used)
    • Safe_mode off
    • Memory_limit no less than 256Mb (preferably 512)
  • MySQL:
    • 4.1.20 or newer
    • InnoDB storage engine
  • SSL:
    • If HTTPS is used to work in the admin, SSL certificate should be valid. Self-signed SSL certificates are not supported
  • Server – hosting – setup:
    • Ability to run scheduled jobs (crontab) with PHP 5
    • Ability to override options in .htaccess files

我将官方的magento检测文件放在这里,大家可以用这个php检测文件检测你的主机是否达到了magento的要求 点击下载:magento-check.zip 其中SSL不是必须的,你要是会用的话,才有必要去装。apache php mysql的版本和需要的模板要达到如上的要求。记得你的apache要开启.htaccess的支持,我有很多次忘记这个而无法安装magento。 转载表明出处:hellokeykey.com