设定你的Magento
在第一、二阶段,我们已经把Magento完整的架设起来,接下来要开始进入Magento系统设定商店的系统参数。
设定网页路径改写
刚设定完成的Magento系统,在产品与其他页面的连结范例如下:
若要对此路径进行优化,首先请至:
System→Configuration→General→Web→Search Engines Optimization
接着将Use Web Server Rewrites选择Yes ,再去一次产品页面,你会发现连结会少了index.php
设定Magento基本系统参数
位置
System→Configuration→General→General
Countries Op… Read More
下面是Magento的运行环境最低需求配置:
Linux, Windows, 或其他 UNIX兼容操作系统 (不推荐在正式商用环境中使用windows)
Apache Web Server (1.x or 2.x),Nginx,litespeed
PHP 5.2.0 以上, 并且包含下列扩展(Extensions/Addons):
PDO/MySQL
MySQLi
mcrypt
mhash
simplexml
DOM
curl
gd
soap
MySQL 4.1.20 或更新版本
Sendmail兼容的 Mail Transfer Agent (MTA)
如果没有MTA,Magento将直接连接一个 SMTP server
我们还建议使用APC作为一个缓存,将会使… Read More
Today I attempted to setup a fresh Magento installation and got a weird issue, I got this message “The URL http://www.tofuandtomato.com/magento/ is not accessible. Unable to read response, or response is empty”. Let’s have a look at the screenshot below:
All you have to do is to check “Skip Base URL Validation Before the Next Step” option and
The private SSL certificate is an important upgrade to your website. The basic function of an SSL is to encrypt all communication between the browser and the server, ensuring that all data goes through a secure (HTTPS) connection. An SSL certificate is a necessity when you want to operate an online shop and process the
When you are editing some product in Magento admin and want to check it out in frontend of your Magento project, how do you find this particular product? Do you search for it, navigate to it using product url key or just browse to it? Well, however you do it, I’m going to give you
Whenever you have a product object, you can access its attribute set like this:
$attributeSetModel = Mage::getModel("eav/entity_attribute_set");
$attributeSetModel->load($product->getAttributeSetId());
$attributeSetName = $attributeSetModel->getAttributeSetName();
$attributeSetId = $attributeSetModel->getAttri… Read More
Error : Maximum execution time of 30 seconds exceeded in Magento.
Solution: You need to increase your maximum execution time for php scripts on your server. You can edit your php.ini file to increase this value
max_execution_time = 600
or
You can try adding the following line at the start of your file on which you are facing error.
For
Here is a little something to use on template/catalog/product/view.phtml page. I got few inquiries on how to get the “in_stock” status of a product. Here is a working sample code that shows different messages when and if the product is in stock or out of stock.
<?php // Check to see if the item is in