问题标签 [magento-1.5]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
magento - 无法从 Payment 对象中检索 getAdditionalInformation()
我从getAdditionalInformation()
Payment 对象获取空数组。交易详情附在订单上。不知何故,我无法检索它们。我得到空数组。这是我的代码
请有人指出我正确的方向。谢谢
php - Magento 搜索和多属性集
我有个问题。我在 Magento 网站上工作,只销售两种类型的产品:避孕套和润滑油。两者都有自己的页面,并且两个页面都有搜索选项。我创建了 2 个属性集,每种类型的产品 1 个。现在,当用户在安全套页面或从安全套页面搜索时,应该只显示安全套类型的产品。
请帮我解决一下这个。提前致谢
javascript - magento 注册表单中的字段验证
我正在尝试验证特定域的电子邮件添加的输入字段,并在不满足条件时清除该字段的内容。但是使用“onblur”事件不会清除输入字段。这是我的代码:
magento - 目录 URL 重写索引卡住
我在 Magento 中的目录 URL 重写卡在处理中。当我运行 shell/indexer.php 脚本时,出现以下错误
目录 URL 重写索引过程未知错误:异常 'PDOException' 带有消息 'SQLSTATE[23000]:完整性约束违规:1062 重复条目 'sugar-tablets.html-1' for key 2' in /home/healthra/public_html/lib/ Zend/Db/Statement/Pdo.php:228 堆栈跟踪:#0 /home/healthra/public_html/lib/Zend/Db/Statement/Pdo.php(228): PDOStatement->
execute(Array) #1 /home/ healthra/public_html/lib/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo
->_execute(Array) #2 /home/healthra/public_html/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Sta
tement->execute(Array) #3 /home/healthra/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db
_Adapter_Abstract->query('UPDATEmg_core...', Array) \#4 /home/healthra/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(337): Zend_Db_
mg_core...', Array) #5 /home/healthra/public_html/lib/Zend/Db/Adapter/Abstract.php(632): Varien_Db_A
Adapter_Pdo_Abstract->query('UPDATE
dapter_Pdo_Mysql->query('UPDATE `mg_core...', Array) # 6 /home/healthra/public_html/app/code/core/Mage/Catalog/Model/Resource/Eav/Mysq l4/Url.php(257): Zend_Db_Adapter_Abstract->update('mg_core_url_rew...', Array, '
url_rewrite_id =...') #7 /home/healthra/public_html/app/code/core/Mage/Catalog/Model/Url.php(363): Mag
e_Catalog_Model_Resource_Eav_Mysql4_Url->saveRewrite(Array, Object(Varien_Object
)) #8 / home/healthra/public_html/app/code/core/Mage/Catalog/Model/Url.php(559): Mag
e_Catalog_Model_Url->_refreshProductRewrite(Object(Varien_Object), Object(Varien
_Object)) #9 /home/healthra/public_html/app/code/core/Mage/Catalog/Model/Url.php(253): Mag
e_Catalog_Model_Url->refreshProductRewrites('1') #10 /home/healthra/public_html/ app/code/core/Mage/Catalog/Model/Url.php(246): Ma
ge_Catalog_Model_Url->refreshRewrites('1') #11 /home/healthra/public_html/app/code/core/Mage/Catalog/Model/ Indexer/Url.php(249): Mage_Catalog_Model_Url->refreshRewrites() #12 /home/healthra/public_html/app/code/core/Mage/Index/Model/Process.php(139): Mage_Catalog_Model_Indexer_Url->reindexAll() # 13 /home/healthra/public_html/app/code/core/Mage/Index/Model/Process.php(167): Mage_Index_Model_Process->reindexAll() #14 /home/healthra/public_html/shell/indexer.php(158) : Mage_Index_Model_Process-
reindexEverything() #15 /home/healthra/public_html/shell/indexer.php(198): Mage_Shell_Compiler->run(
) #16 {main}
有人对如何调试此问题有任何建议吗?
magento - magento cms 页面索引页面未在管理面板中打开
我正在使用 Magento 1.4.1.1,除了管理面板中的 cms 菜单外,当我尝试在管理导航中打开 cms->pages 时,它显示错误“404 错误:找不到页面”。所有其他页面都运行良好,甚至 CMS 菜单中的其他项目,只有 Pages 提供 404。我该怎么办?任何人都可以帮助我如何追踪错误。提前致谢。
magento-1.5 - Magento 预付款
对于未来的项目,我们被分配创建一个简单的概念(在 Magento 内部),它必须执行以下操作:
客户可以选择不同的运输方式,其中之一是“Ship2Shop”,它将产品发送到选择的实体店,客户必须去取货。当客户选择这种“ship2shop”运输方式时,总金额的一定百分比(例如:25%)必须在线支付(通过预定义的支付方式),剩余的 75% 必须以实物支付顾客去取他订购的产品时商店。
你会怎么做?
我们的想法是修改结帐/订单会话并修改“总计”金额(将原始值保存在会话中)。当客户然后被发送到外部支付处理器时,“修改的总计”被发送。一旦客户在 magento 平台上返回,我们将通过恢复原始总计并更新已支付总额和应付总额来修改订单。
有人对此有任何其他想法吗?
编辑: 在下面安东 S 的反馈后,我设法添加了“预付款总额”。但是我仍然有问题在 config.xml 我在标签中添加了以下内容:
acsystems_advancepayment/total_custom grand_total
我希望我的预付款显示在总计之后,由于某种原因,magento 不会这样做......
EDIT2:收集方法
magento - 在 magento 中,我如何在产品列表页面中获取相关产品
我正在做一个 magento 项目,我必须在产品列表页面(product/list.phtml)中带来相关产品和追加销售产品,我可以从
foreach 获取所有产品详细信息($_productCollection as $_product):$_product->
但我无法使用 $_product 获得任何相关产品和追加销售产品->
请帮助我
magento - 前端的 Magento 类别订单
我想将 Magento 前端导航中类别的默认顺序更改为按名称排序。运行 Magento 1.5。
有人有线索吗?
magento - 为什么magento不自动加载父类
我有一个模块,它将通过执行来使用我的控制器而不是 magento
在我扩展核心类的类中,我必须明确要求该类。有人知道为什么是这样吗?
magento - 如何在 Magento 中使用电子邮件模板
我在 magento 社区版 1.5.0.1 中开发我的商店。我需要一个电子邮件模板,内容可由管理员编辑。我通过管理员“交易电子邮件”创建了一个电子邮件模板。现在我需要从我的自定义模块访问和使用该电子邮件。我怎么得到它?,你有什么想法让我知道。