magento-1.7

conflicting two magento extension

瘦欲@ 提交于 2019-12-01 12:54:23
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_fee</class> </fee> </totals> </order_invoice> <order_creditmemo> <totals> <fee> <class>fee/sales_order

How to add Javascript files in body part (not header) through layout xml files in magento

天涯浪子 提交于 2019-12-01 12:10:41
I am beginner in Magento and I want to add javascript file in body section through layout xml file. <reference name='?????'> <action method="addJs"><script>js/my_javascript_file.js</script></action> </reference> What should be reference name ? I tried in another references other than "head" but it's generates error.. I googled a lot but didn't get any solution about it. Is it possible to add javascript files into body section through layout xml files ? I don't want to add Javascript file into html head part. At this time I added Javascript files directly into .phtml file... Thanks in advance..

NGINX-FPM configuration settings for magento

此生再无相见时 提交于 2019-12-01 12:06:37
问题 I am running a ecommerce website developed in magento. I have 512mb RAM and 2.6 core2duo on the server. When I send 50 requests at a time on my website it does not respond except for a few requests. I have installed varnish too. I want to know the optimal settings that i want to do for my website. I have seen that PHP-FPM is taking too much memory and cpu usage. 回答1: Background We use nginx and php5-fpm on ubuntu 12 on our production machine (VCenter Virtual Machine, 4 cores, 8 GB ram). Our

Magento: Increase “Qty” upon cancel a shipped order

爷,独闯天下 提交于 2019-12-01 11:46:06
I'm on Magento 1.7.0.2. I'm using "Cash On Delivery" as my payment method.I'll tell you exactly the steps That i follow on any order. When an order is placed(Qty decreased 1 item), I create a shipment for it and if customer paid the order grand total price. I create an invoice for that order. My problem, If an order is placed(Qty decreased 1 item), I create a shipment for this order. If the customer refused to pay, I open this order and "Cancel" it and on this case the "Qty" doesn't increase so How can I make it increase? Renon Stewart If order status is Processing Create a custom module with

Magento adding attribut using install script

泪湿孤枕 提交于 2019-12-01 11:25:37
i followed some tutorials an done this code this is install.0.1.0.php : $installer = $this; $installer->startSetup(); $allowCP = array( 'group' => 'Prices', 'type' => 'text', 'attribute_set' => 'Default', 'backend' => '', 'frontend' => '', 'label' => 'Allow Custom Price', 'input' => 'select', 'option' => array( 'value' => array( 1 => 'Yes', 0 => 'No', )), 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL, 'visible' => true, 'required' => false, 'user_defined' => true, 'default' => '1', 'searchable' => false, 'filterable' => true, 'comparable' => false, 'visible_on_front' =>

Magento adding attribut using install script

时光总嘲笑我的痴心妄想 提交于 2019-12-01 08:07:50
问题 i followed some tutorials an done this code this is install.0.1.0.php : $installer = $this; $installer->startSetup(); $allowCP = array( 'group' => 'Prices', 'type' => 'text', 'attribute_set' => 'Default', 'backend' => '', 'frontend' => '', 'label' => 'Allow Custom Price', 'input' => 'select', 'option' => array( 'value' => array( 1 => 'Yes', 0 => 'No', )), 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL, 'visible' => true, 'required' => false, 'user_defined' => true,

Magento 1.7.2 SECURITY PATCH ERROR Via SSH

房东的猫 提交于 2019-12-01 04:24:09
Following Directions word for word... Please upload the patch into your Magento root directory and run the appropriate SSH command: For patch files with the file extension .sh: sh patch_file_name.sh Example: sh PATCH_SUPEE-1868_CE_1.7.0.2_v1.sh I have uploaded the Patch file PATCH_SUPEE-2518_CE_1.5.1.0-1.7.0.2_v1.sh To the magento root directory (public_html/) and Receive this error on execution. root@atlas [/home/public_html/]# sh PATCH_SUPEE-2518_CE_1.5.1.0-1.7.0.2_v1.sh : command not found_1.5.1.0-1.7.0.2_v1.sh: line 7: 'ATCH_SUPEE-2518_CE_1.5.1.0-1.7.0.2_v1.sh: line 9: syntax error near

Magento 1.7.2 SECURITY PATCH ERROR Via SSH

时光总嘲笑我的痴心妄想 提交于 2019-12-01 02:18:00
问题 Following Directions word for word... Please upload the patch into your Magento root directory and run the appropriate SSH command: For patch files with the file extension .sh: sh patch_file_name.sh Example: sh PATCH_SUPEE-1868_CE_1.7.0.2_v1.sh I have uploaded the Patch file PATCH_SUPEE-2518_CE_1.5.1.0-1.7.0.2_v1.sh To the magento root directory (public_html/) and Receive this error on execution. root@atlas [/home/public_html/]# sh PATCH_SUPEE-2518_CE_1.5.1.0-1.7.0.2_v1.sh : command not found

How to restrict default COD in magento to certain zip codes only?

萝らか妹 提交于 2019-12-01 01:24:26
I am using Cash On Delivery Payment method in magento 1.7.0.2. I need this payment option only for certain zip codes/pin codes. can anyone help? Oscprofessionals in COD you have a function public function isAvailable($quote = null) in this before last line return $checkResult->isAvailable; you place an if condition if($checkResult->isAvailable) call $this->isZipCodeallowedForCod($zipCode,$quote) and in this function apply logic to get billing address zip code from quote object and checking with list of zipcodes allowed and setting flag. Note : When modifying this do not modify core code use

Magento Session from external page (same domain)

血红的双手。 提交于 2019-12-01 00:28:42
I need to check that a user is registered and get your information, but all in a file within the same domain but outside the structure of Magento: /mymagento/islogged.php require_once ('app/Mage.php'); Mage::app(); define('ROOT', Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB)); $sessionCustomer = Mage::getSingleton("customer/session"); if($sessionCustomer->isLoggedIn()) { $customer = $sessionCustomer->getCustomer(); $telefono = $customer->getTelefonoMovil(); } else { header('Location: '.ROOT.'customer/account/login/'); } But it does not work, can not find the session. I have reviewed