magento-1.7

Is there a way to change login page URL in Magento?

那年仲夏 提交于 2019-12-10 14:44:55
问题 I want to change the URL for customer login in Magento. From the URL, www.mydomain.com/customer/account/login/ To something like this: www.mydomain.com/login How can I do this? 回答1: I have not tried this method yet but you can achieve this with url rewrite. Go to url rewrite and add custom url rewrite, give unique id path. And in request path give www.mydomain.com/login this url and in target path give this url www.mydomain.com/customer/account/login/ magento internally consider target path

Output raw SQL query from Magento collection

爷,独闯天下 提交于 2019-12-10 13:46:35
问题 I have the following collection and want to view the raw SQL within my IDE Xdebug tool - $collection = Mage::getResourceModel('rp/organisation_collection') ->searchByPostcodeLastname($postcode, Slastname) ->addFieldToSelect(array('organisation_id')) ->setPageSize(1); $qry = $organisation->load()->getSelect(); This while does show the Varien object doesn't seem to give me the raw SQL for me to check - can someone confirm what I am doing wrong? 回答1: Try $collection->getSelect()->__toString()

Retrieve Url of category on Magento when creating a custom menu

大憨熊 提交于 2019-12-10 12:19:33
问题 I am trying to create a custom drop-down-menu with only few specific categories and their respective subcategories. So far I managed to retrieve the Names of the subcategories but links won't work. I also need to make the main category retrieve its own name and URL automaticly in case it is changed on the back-end of Magento. In this case the category id is 265. The website I am working on is www.personalproducts4u.co.uk <li class="eight"><a href="<?php echo $this->getUrl() ?>index.php

How do i remove email validation in Magento 1.7 Admin area

☆樱花仙子☆ 提交于 2019-12-10 11:59:52
问题 The core Magento email validation script I find does not work and continually blocks perfectly good email addresses - I have comment out the validation class in most forms: <input type="text" name="email" class="input-text validate-email required-entry" /> But I'm getting same issue in admin area for instance in the store email address fields: I'm trying to find this form so that i can comment out the validation class - but I cant find it, the template path is adminhtml/default/default

Magento: Create order in backend and have customer complete payment

空扰寡人 提交于 2019-12-10 11:44:59
问题 I'm exploring implementation options in Magento and am wondering if anyone has attempted or found a solution to this scenario... I would like to be able to setup an order via the Magento backend (add products, set shipping price, etc) then have the customer be able to complete the order by logging into their account and proceeding through the checkout process. Would be really great if the customer could get an email notification with a link directly to the payment step/checkout. Is there a

In Magento after installing extension Admin panel in unable to load

拜拜、爱过 提交于 2019-12-10 10:44:16
问题 As I have assigned to work on magento, according to our requirement i tried to install Arabic extension for magento. The extension got successfully installed. Later on refreshing the admin panel, it shows the URL not found. The Stores FrontEnd CMS home page is loading, But when Iclick on any products, it shows again URL not found.. How can i solve this... 回答1: When diagnosing things like this, try the following.. Delete (or move to another folder) files in /var/www/var/cache Delete (or move

Magento: Decimal Price in spanish language display Dot instead comma

ぃ、小莉子 提交于 2019-12-10 09:26:32
问题 i have multilanguage store. default language is english. there are few products have decimal price. when i switch languge to spanish the comma appears instead dot in decimal price. for example: price: 1.35$ in english when i switch language to spanish the price will look like Price: 1,35$ i really wanna remove this , need . how to do that.? 回答1: You could try to change the local settings. So go to your magento directory and open the file lib/Zend/Locale/Data/en.xml (replace en.xml by the

Run an magento function cron at every hour

本秂侑毒 提交于 2019-12-09 23:57:21
问题 I want to run an magento function that would run at every hour , i am written code in config.xml but i did not working.here the code is <crontab> <jobs> <stockalert_autosend> <schedule><cron_expr>**/1 * * *</cron_expr></schedule> <run><model>stockalert/observer::backinstock</model></run> </stockalert_autosend> </jobs> </crontab> Please help me 回答1: Use this cron expression for each hour: <cron_expr>0 * * * *</cron_expr> This will make it run at 12.00 , 1.00 and so on. If you want to make it

How can I implement stock filter in Magento way?

旧城冷巷雨未停 提交于 2019-12-09 23:31:38
问题 Out of stock products are visible in my magento website. I want a custom filter in the layered navigation which would say "Exclude out of stock" and when customer clicks on it the out of stock products should be hidden. (by default I enable showing/displaying out of stock products under System-> Configuration-> CATALOG-> Inventory) i.e. I want the customer to control whether he/she should see the "out of stock" products or not. example this link can anyone help please? I want this to be done

How to Clear magento cache and log table?

天涯浪子 提交于 2019-12-09 13:57:58
问题 I have lot of issues fetch of cache related so I need to clear all magento cache and log in database by php script. Any help me. 回答1: Create a file called cleanup.php and add the following code to it: <?php switch($_GET['clean']) { case 'log': clean_log_tables(); break; case 'var': clean_var_directory(); break; } function clean_log_tables() { $xml = simplexml_load_file('./app/etc/local.xml', NULL, LIBXML_NOCDATA); if(is_object($xml)) { $db['host'] = $xml->global->resources->default_setup-