我正在使用Magento 1.9.1.这是我的.htaccess代码.
############################################
## uncomment these lines for CGI mode
## make sure to specify the correct cgi php binary file name
## it might be /cgi-bin/php-cgi
# Action php5-cgi /cgi-bin/php5-cgi
# AddHandler php5-cgi .php
############################################
## GoDaddy specific options
# Options -MultiViews
## you might also need to add this line to php.ini
## cgi.fix_pathinfo = 1
## if it still doesn't work, rename php.ini to php5.ini
############################################
## this line is specific for 1and1 hosting
#AddType x-mapp-php5 .php …Run Code Online (Sandbox Code Playgroud) 我为magento安装了一个脚本.它允许在订单上添加注释.所以它显示了对订单网格的一个评论.
问题是它没有按"created_at"列对注释进行排序.我不知道如何设置顺序.
这是代码的一部分:
protected function _initSelect()
{
parent::_initSelect();
// Join order comment
$this->getSelect()->joinLeft(
array('ordercomment_table' => $this->getTable('sales/order_status_history')),
'main_table.entity_id = ordercomment_table.parent_id AND ordercomment_table.comment IS NOT NULL',
array(
'ordercomment' => 'ordercomment_table.comment',
)
)->group('main_table.entity_id');
return $this;
}
Run Code Online (Sandbox Code Playgroud)
谢谢你的帮助.
我正在使用Magento 1.9.1,我遇到SSL问题.
我想在所有网站上都有https,所有页面.该网站托管在子文件夹/ shop /上.
当我在https版本上设置基本URL(不安全)时它可以工作但我有一个问题:当我访问带有http的URL时,它不会重定向到该页面的https版本,而是简单地重定向到商店主页的https版本.
例如:
http://www.site.ext/shop/category/重定向到https://www.site.ext/shop/
你能帮助我吗?
这是/ shop /上的htaccess:
############################################
## uncomment these lines for CGI mode
## make sure to specify the correct cgi php binary file name
## it might be /cgi-bin/php-cgi
# Action php5-cgi /cgi-bin/php5-cgi
# AddHandler php5-cgi .php
############################################
## GoDaddy specific options
# Options -MultiViews
## you might also need to add this line to php.ini
## cgi.fix_pathinfo = 1
## if it still doesn't work, rename php.ini to php5.ini …Run Code Online (Sandbox Code Playgroud)