我试图重新索引产品价格,但它会引发以下错误:
2014-01-08T14:35:19+00:00 DEBUG (7): Exception message: SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count at row 1
Trace: #0 /var/www/vhosts/SITE DIRECTORY/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /var/www/vhosts/SITE DIRECTORY/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /var/www/vhosts/SITE DIRECTORY/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 /var/www/vhosts/SITE DIRECTORY/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('INSERT INTO `ca...', Array)
#4 /var/www/vhosts/SITE DIRECTORY/lib/Varien/Db/Adapter/Pdo/Mysql.php(420): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `ca...', Array)
#5 /var/www/vhosts/SITE DIRECTORY/app/code/community/OrganicInternet/SimpleConfigurableProducts/Catalog/Model/Resource/Eav/Mysql4/Product/Indexer/Price/Configurable.php(133): Varien_Db_Adapter_Pdo_Mysql->query('INSERT INTO `ca...')
#6 /var/www/vhosts/SITE DIRECTORY/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price/Configurable.php(48): OrganicInternet_SimpleConfigurableProducts_Catalog_Model_Resource_Eav_Mysql4_Product_Indexer_Price_Configurable->_prepareFinalPriceData()
#7 /var/www/vhosts/SITE DIRECTORY/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price.php(385): Mage_Catalog_Model_Resource_Product_Indexer_Price_Configurable->reindexAll()
#8 /var/www/vhosts/SITE DIRECTORY/app/code/core/Mage/Index/Model/Indexer/Abstract.php(143): Mage_Catalog_Model_Resource_Product_Indexer_Price->reindexAll()
#9 /var/www/vhosts/SITE DIRECTORY/app/code/core/Mage/Index/Model/Process.php(209): Mage_Index_Model_Indexer_Abstract->reindexAll()
#10 /var/www/vhosts/SITE DIRECTORY/app/code/core/Mage/Index/Model/Process.php(255): Mage_Index_Model_Process->reindexAll()
#11 /var/www/vhosts/SITE …Run Code Online (Sandbox Code Playgroud) 我不想在我的网站中添加顶部链接,但我想在topmenu.i中注销选项在topmenu中添加了一个注销选项,但它不起作用....所以如何在topmenu中使注销链接可用?如果有人知道这一点,请帮助我.谢谢!
我安装了1.8.1并且捆绑产品存在问题.当您添加或主题项时,价格不会改变.我收到js错误,价格不会更新.有人可以帮助让我知道我配置错误我得到这些错误:
未捕获的ReferenceError:taxCalcMethod未定义Uncaught TypeError:无法调用undefined方法'reloadPrice'
这是错误代码的片段
<script>
document.observe("dom:loaded", function() {
bundle.reloadPrice();
});
</script>
Run Code Online (Sandbox Code Playgroud) 我正在尝试在类别编辑页面的顶部添加一个额外的选项卡.默认值为:常规信息,显示设置,自定义设计和类别产品.
所以我创建了一个新模块来重写生成选项卡的块.以下是config.xml的相关代码段:
<blocks>
<adminhtml>
<rewrite>
<catalog_category_tabs>
MyNamespace_MyModule_Block_Catalog_Category_Tabs
</catalog_category_tabs>
</rewrite>
</adminhtml>
</blocks>
Run Code Online (Sandbox Code Playgroud)
这是我的块覆盖默认的Magento:
class MyNamespace_MyModule_Block_Catalog_Category_Tabs extends Mage_Adminhtml_Block_Catalog_Category_Tabs
{
protected function _prepareLayout()
{
$categoryAttributes = $this->getCategory()->getAttributes();
if (!$this->getCategory()->getId()) {
foreach ($categoryAttributes as $attribute) {
$default = $attribute->getDefaultValue();
if ($default != '') {
$this->getCategory()->setData($attribute->getAttributeCode(), $default);
}
}
}
$attributeSetId = $this->getCategory()->getDefaultAttributeSetId();
/** @var $groupCollection Mage_Eav_Model_Resource_Entity_Attribute_Group_Collection */
$groupCollection = Mage::getResourceModel('eav/entity_attribute_group_collection')
->setAttributeSetFilter($attributeSetId)
->setSortOrder()
->load();
$defaultGroupId = 0;
foreach ($groupCollection as $group) {
/* @var $group Mage_Eav_Model_Entity_Attribute_Group */
if ($defaultGroupId == 0 or $group->getIsDefault()) …Run Code Online (Sandbox Code Playgroud) 我是magento开发的新手:刚刚购买了自定义主题,安装完成后我在帐户页面上有下一条消息:
Fatal error: Cannot override final method Mage_Core_Model_Abstract::clearInstance() in app/code/core/Mage/Catalog/Model/Product.php on line 39
我没有触及任何核心文件.谁能告诉我在哪里挖?
是否可以在admin-> sales-> orders-> view(选择特定订单)页面中获取特定订单的quote_id?
我想在admin-> sales-> view(选择特定订单)礼品选项块中显示我的自定义表(其中包含订单的quote_id)数据.
我想知道我是否创建了一个简单的产品,例如sku:YJR然后我必须创建与相同sku的捆绑产品相同的产品,然后它会在未来产生任何问题,如果不是那么什么是正确的?任何指导都被接受.提前致谢.
我在magento根目录中有一个制作文件。像下面
文件夹名称/pay.php
此文件调用api并使用某些lib。当我通过浏览器网址直接调用它时。
我想在magento函数中调用它。
pay.php有一个类,我将此文件添加到magento模块文件中并创建一个对象,但它显示了对象引用的错误。
我该怎么办?请给我建议。
在此先感谢所有magento开发人员
我正在尝试向我的Checkout页面添加一个自定义标题,我已经想到从页面中删除标题基本上是在/layout/checkout.xml文件中添加一个节点,任何人都可以解释如何基本上只有一个新的修改标题适用于所有Checkout页面.
当前默认/ layout/checkout.xml
<default>
<remove name="footer"> <!-- removes the footer from checkout -->
... // all other xml data..
</default>
Run Code Online (Sandbox Code Playgroud)
我的主题的伪代码
if (a CHECKOUT PAGE) {
use 'custom checkout header'
else
use the standard default header.
Run Code Online (Sandbox Code Playgroud) 首先,我正在开发定制价格的扩展,我在产品页面上有一个输入,这是一个描述我所做的图像:

当客户输入他想要的价格并点击添加到购物车时,产品必须加上他添加的价格.
我知道可以在控制器中编码,但我不知道怎么做?
这是控制器的空类:
<?php
class WebDirect_CustomPrice_savePriceController extends Mage_Core_Controller_Front_Action{
//put your code here
}
Run Code Online (Sandbox Code Playgroud)
谁都知道添加到购物车按钮的工作方式(代码)
magento ×10
block ×1
checkout ×1
fatal-error ×1
layout ×1
magento-1.5 ×1
magento-1.6 ×1
magento-1.7 ×1
magento-1.8 ×1
magento-1.9 ×1
php ×1
product ×1
reindex ×1
themes ×1