magento-1.7

Adding custom columns in order grid (Magento 1.7.0.0)

删除回忆录丶 提交于 2019-12-06 10:23:24
问题 I'm having this problem with adding custom columns in the order grid in Magento 1.7.0.0 and I was hoping you'd be able to give me a hand in here. Basically I followed this guide http://www.atwix.com/magento/customize-orders-grid/ which explained I had to make a local version of /app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php and make a couple of changes to have the extra columns I want. By following said guide, it said that I had to edit the function _prepareCollection() to add this

Is it possible to update order items quantity in Magento?

纵然是瞬间 提交于 2019-12-06 09:09:49
问题 I have tried to change magento order items quantity, but It doesn't work. Is it possible to change order items quantity using Magento own APIs, or do i need to use some own SQL in order to change order item quanties? $order = Mage::getModel('sales/order')->loadByIncrementId($orderId); foreach($order->getAllItems() as $item) { $item->setToCancel(5); $item->setToRefund(5); $item->setToInvoice(5); $item->setQtyToShip(5); $item->setQty(5); $item->save(); } // Why qtys are still same and not 5 as

Remove shipping calculations from cart

梦想的初衷 提交于 2019-12-06 08:12:37
问题 How can I remove the shipping calculations from the cart of my store? This is the site: tintinportintin.com.br 回答1: On line 89 in app/design/frontend/base/default/checkout.xml you wil find: <block type="checkout/cart_shipping" name="checkout.cart.shipping" as="shipping" template="checkout/cart/shipping.phtml"/> This line is responsible for showing that block. You can copy this XML file to your own theme and remove this line. But you can also use the <checkout_cart_index> handle and remove it.

magento soap api v2 catalogProductInfo not working

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 07:56:50
问题 When i call the api function as follows <?php $result = $client->catalogProductInfo($session, $id, null, 'sku'); ?> I get the following error. I'm positive that all the passed variables are set correctly, as other magento api functions work just fine. Product not exists Error: An Internal Error Has Occurred. I'm assuming that it's a fault with the call syntax. I couldn't find a proper example of calling catalogProductInfo with sku instead of product id. The documentation http://www

magento Get Base Url , Skin Url , Media Url , Js Url , Store Url and Current Url for secure

这一生的挚爱 提交于 2019-12-06 07:26:23
问题 I am newbie to the magento . I am developing a module. For that I have some css and js files that I want to display links. I currently have the links like <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('module_tryouts/css/jquery.fancybox-1.3.1.css');?>" media="all" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('module_tryouts/css/jquery-ui-1.8.custom.css');?>" media="all" /> But after going through some of the links I came to know that

In Magento after installing extension Admin panel in unable to load

一个人想着一个人 提交于 2019-12-06 04:40:56
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... When diagnosing things like this, try the following.. Delete (or move to another folder) files in /var/www/var/cache Delete (or move to another folder) files in /tmp From a shell, run /var/www/shell$ php indexer.php --reindexall You've just

Preselect configurable product options by simple product URL

给你一囗甜甜゛ 提交于 2019-12-06 04:34:41
问题 How to show configurable product with preselected options if requested url is for simple product? For example: Simple product #1 has: Color: Red URL: /simple-red.html Simple product #2 has: Color: Green URL: /simple-green.html Configurable product has: URL: /config.html If user visits /simple-red.html it should be loaded configurable product with pre-selected option Color: Red If user visits /simple-green.html it should be loaded configurable product with pre-selected option Color: Green 回答1:

Magento editor automatic line break issue while adding new product

情到浓时终转凉″ 提交于 2019-12-06 03:59:28
I'm adding a new product in Magento CE 1.7.0.2. I entered the HTML code in Short Description attribute. MY PROBLEM: I really don't know where these extra <br> coming from. Even the WYSIWYG editor is not showing these <br> but they are appearing on the website's product page. Please help. WHAT I ENTERED: <p>Product Description:</p> <table border="1" cellspacing="0" cellpadding="5px"> <tr> <td>Category</td> <td>Specials</td> </tr> <tr> <td>Texure</td> <td>Digitally Printed on High Quality Matte Paper</td> </tr> </table> WHAT IT IS DISPLAYING: <p>Product Description:</p> <br> <br> <br> <br> <br>

Magento 1.7.0.1 resets price to 0 when using custom options

独自空忆成欢 提交于 2019-12-06 03:32:05
问题 I'm using Magento 1.7.0.1 just recently upgraded from 1.6.2.0 . I have the SCP extension as well as MageWorx Advanced Custom Options. I have a configurable product where the simple products that are associated have custom options. If you select the drop-downs in the following combination you will see the multi-select popup with the custom options available. Just before the custom options box pops up it will switch from £99.99 (correct) to £0.00. Oddly, if you click a custom option then click

Magento add wishlist_link to different block?

懵懂的女人 提交于 2019-12-06 03:31:26
问题 I have removed the wishlist link from my top.links using my local.xml file: <remove name="wishlist_link"/> How do I add it elsewhere, for example in my minibasket? 回答1: In the block view script I added the following which added a link to /wishlist/ . <a href="<?php echo $this->getUrl('wishlist') ?>">Wishlist</a> 回答2: You might want to have a look at the class 'Mage_Page_Block_Template_Links'. In this class you can see the following method: public function addLink($label, $url='', $title='',