问题标签 [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.
php - 如何使用 API 调用进行 Magento 一页结帐(连同 UI)?
我想从 Magento 结构的外部实现 Magento 的一页结帐部分(即使用 API 调用)。如果可能的话,我想开始使用现有的代码来减少实现工作。那么,如何修改现有的结帐实现以使其从外部运行?或者,是否有任何其他实现与 UI 一起提供 Magento 结帐功能?
magento - Magento Fatal error: Class not found
This is a stretch but hopefully someone has an idea of what's going on here.
I was working on adding a feature to an extension (Amasty Product Grid Editor
) to add the in stock status to the grid and allow in-line editing.
I ultimately got this working, but in the process something odd happened. I now have a problem with a completely unrelated extension (AheadWorks Facebook Integrator
).
If the FB extension is enabled, I get almost no output in the browser on any page in the frontend or backend EXCEPT on the product grid in the admin.
On every other page it renders some of the header but bails after it tries to instantiate an instance of the FB Integrator helper class.
It throws this error:
Fatal error: Class 'AW_FBIntegrator_Helper_Data' not found in /var/www/vps_local_5/app/Mage.php on line 520
However, this file is there and all permissions are correct. The only thing I can figure is that in my failed attempts to get the feature added to the product grid I screwed up the database or something, but I have no idea what would cause it to think that a class file isn't there when it really IS.
The site works fine otherwise if I disable the FB extension. If I disable or even revert my changes to the Product Grid extension it still doesn't work, so it's not a conflict either.
I am leaning towards database only because after I got the changes to the Product Grid
extension working correctly on my local dev server I copied those files to our remote dev server and it works great with no issues or conflicts with the FB extension.
So I have to believe that it was something in my iterations that broke something but I'm at a loss as to what.
Any ideas?
css - Magento - 网格和产品信息上的不同价格风格
我正在尝试更改不同页面上的价格样式。在产品网格中,它是“标准”外观,但在产品信息页面上,我想将其显示得更大。我发现在 view.phtml 中使用这一行调用了价格:
位于product_type_data
文件 default.phtml (template/catalogue/product/view/) 中。我在这里看到:
getPriceHtml()
再次在 price.phtml 中。
样式在 CSS 中:
是否可以创建单独的 css 规则(例如.special-price .price-large
)以及如何将其仅应用于产品视图?
magento - Mage_Paypal_Model_Ipn 中的 Magento 错误
我正在使用 Magento Community 1.5.0.1 并且当我收到到 /paypal/ipn 的 PayPal IPN 消息时,交易信息成功进入,订单自动移动到已付款并生成发票。
但是,在我的 PHP 日志中,我收到以下消息: [28-Jul-2011 06:42:36] PHP Fatal error: Call to a member function getIncrementId() on a non-object in /app/code/core/Mage/ Paypal/Model/Ipn.php 在第 390 行 [28-Jul-2011 06:42:36] PHP 致命错误:在 /app/code/core/Mage/Core/Model/Mysql4/Session 中找不到类“Mage”。第0行的php
此外,还会向我们的管理员电子邮件发送一封电子邮件(因为我已启用它以将发票发送给我们),但是不会向客户发送电子邮件。
我想这些是相关的。
有想法该怎么解决这个吗?自从我回显 $creditmemo->getIncrementId(); 以来,返回错误是没有意义的 就在导致错误的行之前,显然返回了 ID!
这很糟糕,因为作为一个致命错误,它
magento - 动态更改产品详细信息页面的布局/css
我处于需要为特定产品类型设置不同布局的情况。
如果我可以为此产品类型加载不同的 CSS,那就没问题了。
通过代码/xml可以实现这样的事情吗?
我能够在 中识别产品类型catalog/product/view.phtml
,这会有帮助吗?
我还注意到catalog.xml
命名<PRODUCT_TYPE_grouped>
或<PRODUCT_TYPE_configurable>
等中的一个节点
会有这样的帮助!?
magento - 浏览magento目录时显示部分子类的产品
我有几层类别,例如:
我希望用户浏览洗衣店并查看所有洗衣机和烘干机,而不是任何配件。但仍然允许用户自行浏览配件类别,并在这样做的同时使用分层导航。
有谁知道我可以做到这一点的方法?
magento - 移动后的Magento重定向问题
我已经将我的 Magento 移动到具有另一个域名的另一台服务器上,现在它一直将我链接回旧域。所有文件和整个数据库都已被搜索和替换,以确保参考已消失。缓存被删除。我怀疑它仍然尝试使用旧数据库,所以我修改了包含数据库信息的 local.xml 文件,但这并没有改变任何东西。由于没有缓存,有人知道什么是错误的吗?
php - 单击导航栏中的类别直接转到产品详细信息页面
在我的商店中,其中一个类别只有一种产品。每当用户在导航栏中单击此类别时,是否可以直接将用户带到该产品的产品详细信息页面?
magento-1.4 - magento 块在产品页面上不起作用
我是 magento 的新手。我创建了一个我想在所有产品页面上显示的表单。如果价格发生变化,它只会询问用户电子邮件和价格以进行通知。它有效,但问题是它只有在我的块位于<reference name="content">
选项卡内时才有效。如果我把它放在其他任何地方,我可以在那里看到它,但它不起作用。这是我的布局文件代码。我只需要知道我是否做错了什么
这是我的模板 .phtml 代码
php - Magento 服务器端表单验证
magento 中是否有任何服务器端表单验证?我已经创建了一个 from 并使用 magentos 表单验证,但如果有人禁用 javascipt 并输入可能有害的东西,它就不会工作。如果没有内置的类。有人可以向我指出如何实现服务器端表单验证作为备份的方向。这是我的表单代码