magento-1.7

Mysql update query tooks too long with magento catalog_product_entity_decimal table

回眸只為那壹抹淺笑 提交于 2019-12-25 05:27:22
问题 I am having problem in update query with magento "catalog_product_entity_decimal" table. I need to update product prices dynamically every one hour and the store has ~50k products right now. So i didnt followed the magento way of product price save to bulk update, instead I followed direct product price update in "catalog_product_entity_decimal" table which is giving results. My query is like this $query = "UPDATE catalog_product_entity_decimal val SET val.value = '$final_rounded_price' WHERE

Get magento product feed using Mangento rest api but OAuth error [closed]

有些话、适合烂在心里 提交于 2019-12-25 03:07:08
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I have a core php website where client create a different type of widgets to get reporting in the form of charts. I want to develop widget for that purpose to show Magento orders reporting , sales reporting etc on php site using Magento store API. Anyone know about magento Api to

Display Out of Stock at the end of the product list and search result page

佐手、 提交于 2019-12-24 23:34:08
问题 I have already tried the method mentioned here on SO and other forums but it is not working. I am using Magento ver. 1.7.0.2 and I would like to move all the Out of Stock products to the end of the product list and search result page. Here is what I tried: I made a copy of Collection.php from /app/code/core/Mage/Catalog/Model/Resource/Product/ to /app/code/local/Mage/Catalog/Model/Resource/Product/ and pasted below code at the begining of addAttributeToSort function. $this->getSelect()-

get last level category name of a product in magento

好久不见. 提交于 2019-12-24 23:33:10
问题 I am trying to get only which category name that assigned a product and which category's have not any sub-category. E.g : Category -> Sub-category 1 -> Sub-category 2 -> Sub-category 3 -> Sub-sub-category 1 -> sub-Sub-category 2 -> product 1 -> product 2 The above example , I want to get only sub-sub-category 2 . 回答1: you can try this $categories = Mage::getModel('catalog/category') ->getCollection() ->addAttributeToSelect('*') ->addIsActiveFilter() ->addAttributeToFilter('level',3) 来源: https

Magento: Product data extraction for product feed

可紊 提交于 2019-12-24 19:16:34
问题 I am trying to build a product feed such as CSV format (Magento community v1.7) however I am having some troubles to extract certain data. I don’t mind sharing code so it is as below and will highly appreciate if anyone can let me know what I can use the get certain product values which I am unable to extract. I want to extract: (how can i get the values for below) Product Category (I am able to extract the array but they values does not correspond to the category product is listed on i.e.

add tab in admin dashboard magento 1.7.0.2

♀尐吖头ヾ 提交于 2019-12-24 16:33:08
问题 Copy Ordered.php From app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Products to app/code/local/Mage/Adminhtml/Block/Dashboard/Tab/Products Rename New.php I have modified the following code: class Mage_Adminhtml_Block_Dashboard_Tab_Products_New extends Mage_Adminhtml_Block_Dashboard_Grid { public function __construct() { parent::__construct(); $this->setId('productsNewGrid'); } protected function _prepareCollection() { if (!Mage::helper('core')->isModuleEnabled('Mage_Sales')) { return $this

Inline javascript is getting stripped off from the AJAX response by Prototype JS Ajax.Request method

六月ゝ 毕业季﹏ 提交于 2019-12-24 16:09:04
问题 I am working on a Magento store trying to code a widget's javascript layer with the help of Prototype js framework. In my grid.js file AJAX call is setup like that: loadTabContent: function(tab, tabType){ if(tab === undefined || tabType === undefined){ return this; } entityId = tab.id.split('-')[3]; request = new Ajax.Request( this.tabContentLoadUrl, { method:'get', onSuccess: this.onTabContentLoad.bind(tab), onFailure: this.ajaxFailure.bind(this), evalJS: true, parameters: { id: entityId,

Configurable product in magento is switching to disabled

江枫思渺然 提交于 2019-12-24 09:46:58
问题 Anybody knows why the configurable products are switching disabled after i save them as enabled and all required fields are entered in magento? Thanks! 回答1: Check your System > Configuration > Inventory for "Qty for Item's Status to Become Out of Stock" - it may be that you have inventory quantity that is less than the level set here. I did that and scratched my head for a day! 来源: https://stackoverflow.com/questions/16418602/configurable-product-in-magento-is-switching-to-disabled

Configurable product in magento is switching to disabled

六月ゝ 毕业季﹏ 提交于 2019-12-24 09:43:48
问题 Anybody knows why the configurable products are switching disabled after i save them as enabled and all required fields are entered in magento? Thanks! 回答1: Check your System > Configuration > Inventory for "Qty for Item's Status to Become Out of Stock" - it may be that you have inventory quantity that is less than the level set here. I did that and scratched my head for a day! 来源: https://stackoverflow.com/questions/16418602/configurable-product-in-magento-is-switching-to-disabled

how to add state wise tax charge without adding customer and product class

醉酒当歌 提交于 2019-12-24 03:50:27
问题 my question is bit technical. i want to ask if i belong to state named NJ, and i want apply tax rule only on this state, means if user selects NJ on checkout as its billing state it should charge him 7% extra in checkout. i have made the tax rule as well but unable to implement on front end. i want this without influence of product and customer class. if i am wrong please give me proper direction with step by step guide. i am using magento 1.8.0. please help........................ what sort