magento-1.9.1

Redirect all HTTP urls to HTTPS for frontend in magento

こ雲淡風輕ζ 提交于 2020-01-24 01:09:08
问题 I want to redirect all http urls to https in magento, but for front-endonly. In magento we have a setting to use secure urls for front-end as explained in this link: https://www.siteground.com/tutorials/magento/magento_ssl.htm but that applies to only pages shown after login or checkout. I have applied following code in my .htaccess file: RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L] It is working ok, but it is redirecting Admin panel urls to https as well. I

Magento : Item (Mage_Customer_Model_Customer) with the same id “####” already exist

落爺英雄遲暮 提交于 2020-01-17 04:40:07
问题 I have a issue here on Magento . When I tried to add a customer in Mangeto admin side it is giving error something like Item (Mage_Customer_Model_Customer) with the same id "14" already exist" I am adding customer with Store Id selected as Admin store. My Magento current version is 1.9.1 Please advise! 来源: https://stackoverflow.com/questions/29891015/magento-item-mage-customer-model-customer-with-the-same-id-already-ex

Magento: Item (Mage_Customer_Model_Customer) duplicate issue?

谁说我不能喝 提交于 2019-12-24 07:30:17
问题 I have recently upgraded magento on my ecomerce store from Magento 1.9 to 1.9.1 . Site is working OK after upgrade, but now I am seeing a strange issue when adding customers from admin panel. While adding customers, I am selecting store id as Admin as shown below: If I select Main Website as associated website then it works OK, but I just want to know why it is not working and giving error with "Admin", whereas in another Magento based store, I am not seeing such issue. I am getting following

How to add Custom Column in sales/order grid in Magento?

不羁岁月 提交于 2019-12-21 21:25:43
问题 I am trying to add custom columns to my sales/order grid. My columns will be the tracking number and the tile. The title is basically the courier code which shows you through which courier you have send you product. So i have done some following things for this. I have copied the file from magento/app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php to magento/app/code/local/Mage/Adminhtml/Block/Sales/Order/Grid.php so that i can add columns and customize my sales/order grid. In the file

Magento showing wrong total records in sales./order grid

耗尽温柔 提交于 2019-12-12 03:48:16
问题 I will try my best to explain what I am doing. I have manually added four columns in grid.php file for sales/order grid. Now it's showing the wrong count in the total records. There are more than 1500 records, but it shows only 1190. So here is the code grid.php file. <?php class Mage_Adminhtml_Block_Sales_Order_Grid extends Mage_Adminhtml_Block_Widget_Grid { public function callback_skus($value, $row, $column, $isExport) { $increment_id = $value; $_order = Mage::getModel('sales/order')-

Is there any way to replace “&” with “&” in Magento URL

喜欢而已 提交于 2019-12-12 00:19:11
问题 Is there any way to to replace & with & in magento url. Every time when magento URL is redirecting from one store to another it is adding & between the url. And the url is breaking. for eg: https://www.indelust.com/designer?d=370 Above URL is the default url which is linked to US storeview based on US geoIP. When I am clicking on the url from Google search results it should redirect me to the same page with respective storeview. Now below url is the one when I clicked on google search result.

Magento1.9.1 Please make sure your password match issue

泄露秘密 提交于 2019-12-11 20:18:58
问题 I am encountering this issue in CE1.9.1. When a User registers (doesn't matter if its during checkout or from the Create an Account link) the user keeps getting the password mismatch error even though the password is re-entered correctly. The form validation does not indicate a miss-match, but once a user clicks on Register it returns the mismatch error. There is no errors in the chrome console... I found this: https://magento.stackexchange.com/questions/37381/please-make-sure-your-passwords

Applying SUPEE-6788, it removes static block on home page

你说的曾经没有我的故事 提交于 2019-12-11 03:34:31
问题 Today I applied patch SUPEE-6788 and I noticed that the static block on my home page disappeared. I have checked in admin side, i have used {{block type="catalog/product_list" category_id="10" and {{block type="responsivebannerslider/index" name="responsivebannerslider_index" Similarly I have used many other blocks in my Magento sites. I have read on google and found the solution to manually add these blocks in System -> Permissions -> Blocks. Ok, I have manually added two catalog/product

HTML <script> async Attribute in Magento

喜你入骨 提交于 2019-12-07 01:32:33
问题 I would like to try to insert the "async" attribute in Prototype JavaScript script tag in Magento 1.9.1: <script type="text/javascript" src="http://www.mywebsite.com/media/js/ec1651c8b1a4ea49a916679f1e120ccf.js"></script> I would have this result: <script type="text/javascript" src="http://www.mywebsite.com/media/js/ec1651c8b1a4ea49a916679f1e120ccf.js" async></script> Where I have to insert "async"? What is the file with this line code? Thanks 回答1: Look at the file app/design/frontend/

Magento category thumbnail field not shown in admin

泄露秘密 提交于 2019-12-07 00:35:53
问题 I have installed Magento 1.9.1.0 without sample data but in admin, add or edit category page have no thumbnail image field. How can I show thumbnail filed in admin for category? 回答1: I resolve this issue via running the following queries in my phpMyAdmin, 1) INSERT INTO `eav_attribute` (`attribute_id`, `entity_type_id`, `attribute_code`, `attribute_model`, `backend_model`, `backend_type`, `backend_table`, `frontend_model`, `frontend_input`, `frontend_label`, `frontend_class`, `source_model`,