magento-1.7

Magento, different background color for group of rows on backend grid

核能气质少年 提交于 2019-11-28 11:06:50
问题 On a backend admin page with a grid I need to change the background color for groups of rows. Not alternate color row by row as default but coloring groups according to a known column value. I was looking into this SO question: Approach on changing row color on orders grid in admin and other similar pages. But can't reproduce what I need as this question refers to a value in a column that will be repeated. I need to either use different colors for different groups or at least use alternate

How to add product specific attribute column to sales_flat_order_item table?

别来无恙 提交于 2019-11-28 10:35:47
问题 In admin panel I have created a product attribute as ' merchant '. I want to add a new column for merchant in sales_flat_order_item table. The new column should be filled with the attribute name. How can I do this without using an event observer method? Any help will be appreciated. (I'm using magento CE 1.7 ) 回答1: First of all, you need to add the new column to sales_flat_quote item, and sales_flat_order_item. the best explanation is here: http://www.magentocommerce.com/knowledge-base/entry

Adding custom product attributes in Magento using setup script

拟墨画扇 提交于 2019-11-28 10:16:23
I am using module setup script to add new attributes group, attribute set and attributes. I am able to create attribute set, attribute group and add products to group/set. But I am having hard time setting is_filterable , is_visible , is_visible_on_front and is_html_allowed_on_front parameters. $installer->addAttribute('catalog_product', 'offer_type', array( 'backend' => '', 'frontend' => '', 'class' => '', 'default' => '', 'label' => 'Offer type', 'input' => 'text', 'type' => 'int', 'source' => '', 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE, 'visible' => 1, 'required'

Set default product values when adding new product in Magento 1.7

僤鯓⒐⒋嵵緔 提交于 2019-11-28 04:09:30
问题 I have created an Observer.php for the event catalog_product_new_action <?php class Starmall_Productobserver_Model_Observer { public function initProduct(Varien_Event_Observer $observer) { $product = $observer->getEvent()->getProduct(); $product->setWeight(1); $product->setStatus(1); $product->setTaxClassId(1); $product->setPrice(1); $product->setStockData(array( 'is_in_stock' => 1, 'qty' => 99999 )); } } When I add a new product the weight, status, tax class and price are correctly set to my

How do I remove index.php from the URL in Magento

こ雲淡風輕ζ 提交于 2019-11-28 01:18:20
How can i remove index.php from the URL in Magento. For example the home page URL is: www.mydomain.com/index.php I want to show : www.mydomain.com So is there any way to do that in the Magento Admin Panel. Mufaddal You can remove the index.php in the frontend URLs performing the following steps in Magento's admin section: In System -> Configuration -> Web -> Search Engines Optimizations , select YES . Edit the /installdir/.htaccess and uncomment the line: RewriteBase /magento/ In my case the subdirectory Magento is in is called magento , so change it to your subdirectory path if it is

Magento - Override adminhtml template file

落花浮王杯 提交于 2019-11-27 13:11:15
问题 I have read several posts on stack overflow Overriding a Magento Adminhtml template file Magento - overriding Adminhtml block and a couple threads on the magento forum http://www.magentocommerce.com/boards/viewthread/21978/ However, None of these posts attempt to do what I am trying to do I would like to override the app/design/adminhtml/default/default/template/widget/grid.phtml file, as this file contains a portion of html that allows anyone to export from the sales->order view. Note: We

When does Magento consider a cart to be abandoned? Where's that time limit set?

◇◆丶佛笑我妖孽 提交于 2019-11-27 13:05:47
问题 If left to default settings, what circumstances would have to occur for Magento 1.7 to consider a cart abandoned? Where is the code that makes this determination located? I know that this is probably set somewhere in the quote, but I can't find it for the life of me. I've done some Googling, but like so many Magento questions I'm left empty handed. Thanks! 回答1: As you probably know the setting is located here: Admin => system => Configuration => Sales => Checkout => Quote Lifetime (days) This

Adding a new attribute to order in magento

时光毁灭记忆、已成空白 提交于 2019-11-27 11:23:49
I want to add an attribute to order that will not be visible to customer. I just want to use it in database and storing a specific value for each order. I want to print order according to this value. So how can i add an order attribute in magento. The attribute is just like status of order. Further on if i want to show that attribute in admin/sales/orders how can i do that? Assuming that you want to add my_custom_input_field to your order and add a field to your admin create order page (to add the field to the frontend you just need to add the input field to the front template and double check

How to upgrade magento 1.4 1.1 to 1.7.0.2 [closed]

家住魔仙堡 提交于 2019-11-27 03:24:30
I have a magento site in 1.4.1.1 . Now i want to uprgade the site to magento 1.7.0.2 . I already did the following steps: 1.system->magento connet->magento connect manager 2.Then i enter the extension key as "magento-core/Mage_All_Latest" 3.Then pressed "Check for Upgrades" button. now my window is bleow: Then what i do next? So how can i do the upgarde using magento connect manager? How can i upgarde the magento site ? Anyone have the solution? My magento site in localserver. EDIT: Garp Informatica Database structure has major changes from 1.4.1.1 to 1.4.2 so you need to upgrade first to 1.4

Why I can not login to magento backend using google chrome

故事扮演 提交于 2019-11-27 01:04:33
I am using magento community edition 1.7.0.2.I am not able to login to back end of magento.I know this problem can be because of chrome not accepting cookies. But how to fix that please help. Thanks One simple solution is to do the installation using Opera browser and use it to log in because it saves the cookies itself. It works! Haijerome If you enabled the https for the Magento admin panel , then make sure to set " NO " for the option " Use HTTP Only" under System->configuration->web->Session and Cookie Management ." If you have access to the database then open the table " core_config_data