订单号改为四位数
一、eav_entity_type 表
找到entity_type_code = order. 对应的 entity_type_id
increment_pad_length字段改3
二、eav_entity_store表 找到对应entity_type_id
找到increment_last_id字段改为4位数(1000)
Integrity constraint violation: 1062 Duplicate entry ‘210’ for key ‘PRIMARY’, query was: INSERT INTO `catalog_eav_attribute` (`attribute_id`, `is_global`) VALUES (?, ?)
换服务器用原文件和新建的数据库安装magento 出现标题显视的误,换原文件和原数据库安装解决问题。。。。
订单处理邮件发送问题
1、go to System -> Configuration -> ASCHRODER EXTENSIONS -> SMTP -> Queue Configuration -> Queue Usage -> Never
2、System ->Transactional Emails
magento系统中,默认是在支付成功后发送确认订单邮件的
magento产品详情页面添加立即购买按钮
1,在addtoCart.phtml里添加html
<input type="hidden" value="<?php echo Mage::getUrl('checkout/onepage')?>" name="return_url" />
<button type="button"
title="<?php echo __('Buynow') ?>"
class="button btn-cart buynow"
onclick="productBuyNo……
How can i remove the sku column from Magento invoice PDF?
1) Copy
app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php
To
app/code/local/Mage/Sales/Model/Order/Pdf/Invoice.php
And in Invoice.php (of local directory) remove following code
$lines[0][] = array(
'text' => Mage::helper('sales')->__('……
后台菜单删除
function remove_menus() {
global $menu;
$restricted = array(__('Dashboard'), __('Posts'), __('Media'), __('Links'), __('Pages'), __('Appearance'), __('Tools'), __('Users'), __('Settings'), __('Comments'), __('Plugins')); //对应后台显示的顶级名称
end ($men……