magento-1.7

How to add custom tab in left sidebar to my custom page in admin section in magento module?

孤街醉人 提交于 2020-01-01 05:49:05
问题 I am very new to Magento , just started Magento before 4 days but i am given the task to develop a Magento extension . So i am reading over the internet and creating it. Now the problem i am having is i want to add a custom left sidebar tabs just like it is under System->Configuration . I have tried a lot but no success. Please help me. Here's my config.xml <?xml version="1.0"?> <config> <!-- turn on our module, required for install support --> <modules> <Gwb_Magecrmsync> <version>0.1.0<

Magento get cart single item price incl. tax

為{幸葍}努か 提交于 2020-01-01 04:33:24
问题 I have a pretty weird issue, I hope someone can help me with this. Here are the major config settings that influence my problem: Catalog prices in admin panel are shown including tax Catalog prices in frontend are shown including tax Items in shopping cart are shown excluding tax (so it's displayed separately near the subtotal). Everything is working fine so far. The problem comes in a custom ajax mini cart module. I grab the collection of items from the cart, but, since I'm getting the price

magento - convert order amount from current currency to base currency

两盒软妹~` 提交于 2020-01-01 03:36:34
问题 I am trying to convert order amount from current currency to base currency, below is the code which i tried, but no go. $baseCurrencyCode = Mage::app()->getStore()->getBaseCurrencyCode(); $currentCurrencyCode = Mage::app()->getStore()->getCurrentCurrencyCode(); $price = 1; $priceTwo = Mage::helper('directory')->currencyConvert($price, $baseCurrencyCode, $currentCurrencyCode); 回答1: UPDATE try this code, may help you. for this case I use total amount. and will change if the base currency

SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction by Magento position

微笑、不失礼 提交于 2020-01-01 00:21:22
问题 We have a problem in our Magento shop when we try to set the position of the products in a category from manage categories. When we try to save a product after changing the position in "category products" we get the following failure: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction Does anyone know how to solve this? 回答1: The error occurs most probably because you have the product position index set to auto and Magento tries to

SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction by Magento position

独自空忆成欢 提交于 2020-01-01 00:19:07
问题 We have a problem in our Magento shop when we try to set the position of the products in a category from manage categories. When we try to save a product after changing the position in "category products" we get the following failure: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction Does anyone know how to solve this? 回答1: The error occurs most probably because you have the product position index set to auto and Magento tries to

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

南楼画角 提交于 2019-12-30 07:34:19
问题 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? 回答1: 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

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

£可爱£侵袭症+ 提交于 2019-12-30 07:34:09
问题 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? 回答1: 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

Magento cron job

若如初见. 提交于 2019-12-28 07:07:11
问题 I have configured my server (CPanel) to run cron.sh in magento root folder every 5 min. But it doesnt works and cron_schedule table in database is empty. Here is my config.xml <config> <modules> <Company_Facebookreview> <version>1.0.0</version> </Company_Facebookreview> </modules> <global> <models> <facebookreview> <class>Company_Facebookreview_Model</class> <resourceModel>facebookreview_mysql4</resourceModel> </facebookreview> <facebookreview_mysql4> <class>Company_Facebookreview_Model

How to override community block module with php file in magento

感情迁移 提交于 2019-12-25 06:30:58
问题 I would like to override a "community" Block within "Script.php" file. Override third party module as http://connect20.magentocommerce.com/community/Anaraky_GDRT_1 Magento version : 1.7.0 Here's community Module file tree: -app - code - community - Anaraky - Gdrt - Block - Script.php - etc - Config.xml - Helper - Data.php - Module - Adminhtml - Observer.php I want to override Script.php file to My Custom module Here's my custom module file tree : - app - code - local - Anarakyoverride -

How to override community block module with php file in magento

[亡魂溺海] 提交于 2019-12-25 06:30:48
问题 I would like to override a "community" Block within "Script.php" file. Override third party module as http://connect20.magentocommerce.com/community/Anaraky_GDRT_1 Magento version : 1.7.0 Here's community Module file tree: -app - code - community - Anaraky - Gdrt - Block - Script.php - etc - Config.xml - Helper - Data.php - Module - Adminhtml - Observer.php I want to override Script.php file to My Custom module Here's my custom module file tree : - app - code - local - Anarakyoverride -