magento-1.7

Magento- How can i add a new custom block in product details page using module

霸气de小男生 提交于 2019-12-20 03:54:15
问题 I am doing a magento customaization site, I need to add the products addtional attributes like it's type,version etc .I am new to magento , How can i add the new custom block to product details page. I have created a module , and i am using below coding. app\code\local\SmartGrowth\CompatibleWith\Block\compatible.php class SmartGrowth_CompatibleWith_Block_CompatibleWith extends Mage_Catalog_Block_Product_View { protected function _prepareLayout() { //$this->getProduct()->setName($this-

conflicting two magento extension

孤人 提交于 2019-12-19 11:39:32
问题 I have two same extension but both are using for a different-different purpose. Extension A Config.xml <config> <modules> <Mageworks_Fee> <version>0.1.5</version> </Mageworks_Fee> </modules> <global> <sales> <quote> <totals> <fee> <class>fee/sales_quote_address_total_fee</class> <renderer>fee/checkout_totals_fee</renderer> <admin_renderer>fee/adminhtml_sales_order_create_totals_fee</admin_renderer> </fee> </totals> </quote> <order_invoice> <totals> <fee> <class>fee/sales_order_total_invoice

Update price automatically when quantity changed on product page Magento

杀马特。学长 韩版系。学妹 提交于 2019-12-19 10:46:36
问题 I am looking to have the product price automatically updated based on the quantity the customer has chosen. Currently when you choose a custom option in magento the price automatically updates but when choosing quantity this does not. So the scenario would be the product price is £10. User enters 3 quantity and automatically on the product page it updates the price to £30 and so on. Does anybody know of a simple way of updating this? 回答1: Using jquery you can do this $('#qty').keyup(function(

How can i change Magento inventory settings to website scope instead of global?

大憨熊 提交于 2019-12-18 16:53:12
问题 We have a multi-store setup with magento operating across multiple domains. Some of these websites are wholesale b2b websites and some are retail b2c websites. We have a different price per retail and wholesale websites (which was easy to do in magento config) we do this as we force wholesale customers to purchase in multiples by using the magento minimum allowed in cart and must be bought in multiples inventory features. However we cannot seem to switch this off for the retail stores. We

Magento can't login in admin with right username and password

梦想与她 提交于 2019-12-18 10:46:29
问题 I just freshly installed Magento(1.7.0.2) on my localhost(LAMP). Now after installation when I wanted to go for the admin panel it asked me for the username and password. Although I used right username and password still its showing Invalid User Name or Password . I made clear my browser cookie but again it showed me the same problem with login. I searched over google and got something that I can login using http://127.0.0.1 instead of http://localhost . But it still not working for me. I

How to enable wysiwyg by default on textarea in admin?

末鹿安然 提交于 2019-12-18 04:26:10
问题 How can I enable wysiwyg by default on textarea? I mean, I do not want to click on the wysiwyg button to display the area with tinyMCE : I want this directly : 回答1: After a little research i found it. 1) Put this code in the .phtml file you want the editor to appear directly. 2) In the 6th line of the code you can see elements: "short_description" . You can change "short_description" with the element id you want. You can add more than one element id separated with comma and without spaces.

How to update custom options programatically in magento?

百般思念 提交于 2019-12-18 03:47:05
问题 I have lot of products with custom options, now I have requirement to update only custom options through csv file. so how we can do this programatically? 回答1: I think this is also useful... If you are customize the products . <?php $magePath = 'app/Mage.php'; require_once $magePath; Varien_Profiler::enable(); Mage::setIsDeveloperMode(true); ini_set('display_errors', 1); umask(0); Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); $product_ids = array(1,2,167); $productmodel =

SUPEE 6788 and Password Reset (blank page)

戏子无情 提交于 2019-12-17 23:44:44
问题 I've installed SUPEE 6788. Then noticed that password reset page is blank when you click on the reset link in the email. Any ideas how to make the reset page to show up ? Previously reset page use to be this /customer/account/resetpassword/ After patch update it's /customer/account/changeforgotten/ and it's blank Tech description from the Patch APPSEC-1027, Insufficient Protection of Password Reset Process This change affects templates by adding form_key to customer registration page template

Adding custom product attributes in Magento using setup script

好久不见. 提交于 2019-12-17 19:36:49
问题 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'

Magento advanced search returns no results

左心房为你撑大大i 提交于 2019-12-14 02:40:48
问题 My problem is, that the advanced search in magento returns no results (the normal search does). If I dump $this->getLoadedProductCollection() in my Template, it returns "null". So I looked at the class which sets the collection to the advanced search template/view in "app/code/local/Mage/CatalogSearch/Block/Advanced/Result.php" and found this method: public function setListCollection() { $this->getChild('search_result_list')->setCollection($this->_getProductCollection()); } If I dump $this->