magento-1.4

How to add customer email to order grid in magento 1.4 [closed]

扶醉桌前 提交于 2019-12-11 04:08:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I have found several ways online but none seem to work. Does anyone know how to add the customer email to the grid for orders in Magento 1.4 回答1: copy app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php to app/code/local/Mage/Adminhtml/Block/Sales/Order/Grid.php then under the following line $collection =

how can I get a reference to current Mage_Core_Controller_Varien_Action or decendant

邮差的信 提交于 2019-12-11 03:33:07
问题 I need a reference to the "current" running action from the code of a block. i.e. I have a $this which is a descendant of Mage_Core_Block_Template and I need a way to call methods on the an instance of Mage_Core_Controller_Front_Action for the current request. I hope this was clear enough. 回答1: Couple of things come to mind: Mage::app()->getFrontController() Also every block since all of them extends the Mage_Core_Block_Abstract have the following method: $this->getRequest() This return a

how to call newsletter/subscribe.phtml on cms/content_home.phtml?

风流意气都作罢 提交于 2019-12-11 02:26:11
问题 I want to make a newsletter subscription box on home page in content area, and for that I have made a CMS page that other code I have placed in the newsletter subscription file can call too. I am trying to call it like this: <?php echo $this->getLayout()->createBlock('newsletter/subscribe')->setTemplate('newsletter/subscribe.phtml')->toHtml(); ?> but it does not show up. Why ? 回答1: system -> configuration -> advanced from there enable newsletter module. and then you can use the above code to

Integrity constraint violation: 1052 Column 'position' in order clause is ambiguous

空扰寡人 提交于 2019-12-11 02:03:11
问题 One of my users sent me this link from our own magento website. And we have this exception, any idea how can I fix this? http://www.theprinterdepox.com/catalogsearch/result/index/?cat=100&q=1022&x=0&y=0 There has been an error processing your request SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'position' in order clause is ambiguous Trace: #0 /home/theprint/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array) #1 /home/theprint/public

Magento: Deduct Tax at Checkout for (most) countries [closed]

坚强是说给别人听的谎言 提交于 2019-12-10 11:29:31
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I am working on a UK fashion store. The customer has a specific requirement - never add tax (VAT) at checkout; rather, have VAT built into the price, and deduct when applicable. The use case is that EU purchases

In Magento after installing extension Admin panel in unable to load

拜拜、爱过 提交于 2019-12-10 10:44:16
问题 As I have assigned to work on magento, according to our requirement i tried to install Arabic extension for magento. The extension got successfully installed. Later on refreshing the admin panel, it shows the URL not found. The Stores FrontEnd CMS home page is loading, But when Iclick on any products, it shows again URL not found.. How can i solve this... 回答1: When diagnosing things like this, try the following.. Delete (or move to another folder) files in /var/www/var/cache Delete (or move

how to display product detail description on product listing page?

杀马特。学长 韩版系。学妹 提交于 2019-12-09 15:16:23
问题 I want to show a detailed product description after a short description on the product listing page. I'm doing this <? echo $_product->getDescription(); ?> but nothing shows up. I also tried this Mage::getModel('catalog/product')->load($_product->getProductId())->getDescription(); but to no success. 回答1: Try setting product attribute for descrption field "Used in Product Listing" to "YES". That will solve your problem and avoid redundant model load 回答2: The correct code is: <?php $my_product

get an array of all a products attributes in magento

巧了我就是萌 提交于 2019-12-09 04:39:28
问题 I cannot figure this out! I am trying to get a list of a products attributes into an array on the list.phtml page. I have tried everything. I have seen a lot of solutions that use $attributes = $product->getAttributes(); but I cannot get this to work, it just brings up a blank page. Any help would be greatly appreciated, I have spent hours and hours on this so far... I am using Magento version 1.4.2.0 UPDATE: Here is exactly what I am trying to do: $neededAttributes = Mage::helper('mymodule')

Magento - How to display ALL PRODUCTS in the homepage?

泄露秘密 提交于 2019-12-08 22:27:33
问题 Display all products in the homepage? Anyone who have had done this? Note: This can be done in the CMS pages by adding manually each and every category id.. I don't want to do that.. Too much hassle if I have hundreds of categories.. I think this can be coded but I don't know where to start? Thanks and more power! 回答1: Go to the homepage in the CMS -> Manage pages and add the following code snippet into the WYSIWYG {{block type="catalog/product_list" name="home.catalog.product.list" alias=

magento getting product type from product sku

时间秒杀一切 提交于 2019-12-08 15:11:43
问题 How can i get the product type(simplee,configurable/grouped ...) using product sku or id, i have loaded product collection and from that trying to prict type by $_product->getTypeId() But its not printing the product type. Please help me Thanks 回答1: I think $_product->getTypeId() should work. If it doesn't then try $_product->getResource()->getTypeId() 回答2: I got product type following way in phtml file $product=Mage::getModel('catalog/product')->load($product_id); $productType=$product-