magento-1.8

Adding css file after all extensions css files

荒凉一梦 提交于 2021-02-10 22:00:41
问题 I am new to magento and i want to add one css file 'responsive.css' in the page.xml . But this file i want to add last of all css files including the extension's css files. <block type="page/html_head" name="head" as="head"> <!-- other css & js files --> <action method="addCss"><stylesheet>css/responsive.css</stylesheet></action> </block> And if i view the page source, my responsive.css file is showing before the extensions css files. So please help me how i can include at last of all css

Magento default store view not working at front end

守給你的承諾、 提交于 2020-01-07 08:09:50
问题 I have a magento 1.8.0 store, and it has two store views for each language Arabic and English . Now for the website admin in Manage Stores, the default store view is Arabic , but somehow it is not displaying in Arabic , it displays in English . The website is running on nginx and php-fpm 5.5 with zend opcache . Please advice. Thank you 回答1: Please make sure you have properly installed Arabic language pack and selected in Admin > System > Configuration > General > Locale for default config. 来源

create magento 1.8 custom module

血红的双手。 提交于 2020-01-03 05:27:32
问题 I have to write a custom login module for magento 1.8, I'm new to magento and after googling I found this tutorial, but there is a big problem After creating module when I want to load my own page, 404 error occurs I can't found anything on magento documentations, please help Here is my code: /app/code/local/Test/Mymodule/etc/config.xml <?xml version="1.0" encoding="utf-8"?> <config> <modules> <Test_Mymodule> <version>0.1.0</version> </Test_Mymodule> </modules> <!-- This node contains

Magento CE 1.8.1.0 grand total including tax is incorrect

我们两清 提交于 2020-01-03 03:17:09
问题 Hitting a brick wall here, for some reason Magento in the shopping cart is actually discounting the VAT from the total due. We are working with UK VAT (20%), and catalog prices include tax. In this example the subtotal including tax comes to £9.50 So why on earth can the grand total including Tax come to £7.92? We haven't applied any discount to the item, so it's even more confusing. The grand total is worked out completely wrong for some reason. Data displayed in cart: Subtotal (inc VAT) £9

Magento onepage checkout saveOrder 302 redirect

送分小仙女□ 提交于 2019-12-31 13:50:40
问题 Running a new Magento 1.8 install and on the onepage checkout, at the final review when the user submits the order, there's an ajax request for http://www.domain.com/checkout/onepage/saveOrder/. The status code for this request is 302 Found and the response is null (and it should be {"success":true,"error":false}). I don't know how it gets a 302 when it should be a 200 status. Any ideas? 回答1: Ran across this tip that fixed it for me. Essentially it looks like they forgot to include the

SMS Integration with Magento API

老子叫甜甜 提交于 2019-12-29 09:42:10
问题 I am using Magento 1.8.1 and I want to integrate SMS with our store. I have an API URL of SMS but don't know how and where to put that URL in Magento. They provide me this code: <?php class sendsms { private $api_url; private $time; private $unicode; private $working_key; private $start; private $sender_id; public $api; public $wk; public $sid; public $to; /**function to set the working key * * @param string_type $wk:helps to change the working_key */ function setWorkingKey($wk) { $this-

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 -

Placing “Add to cart” button on homepage in Magento

时光怂恿深爱的人放手 提交于 2019-12-24 15:19:19
问题 I'm trying to develop a shopping portal in Magento. At homepage, I want to show "add to cart" button next to every product shown there. Home Page is a simple static CMS page. When i tried this code, <button class="button btn-cart" title="Add to Cart" onclick="setLocation('/n/magento/checkout/cart/add/product/644/qty/1')" type="button"><span><span>Add to Cart</span></span></button> where 644 is product id, page was redirected to cart page, but product is not being added in the cart. I tried it

How to create sales order custom tab in magento 1.8.0.1

别来无恙 提交于 2019-12-24 12:30:00
问题 I have created sales order custom tab.also it display on admin side but template file does not call. Here is code for adding tab adminhtml layout file <?xml version="1.0"?> <layout> <adminhtml_sales_order_view> <reference name="sales_order_tabs"> <action method="addTab"> <name>order_view_tab_salesordertab</name> <block>salesordertab/adminhtml_order_view_tab_salesordertab</block> </action> </reference> </adminhtml_sales_order_view> </layout> Block file class <module>_Salesordertab_Block