PHP Magento The background can not be logged solution
Maybe many friends have the same experience, Magento in the server to configure the domain name is normal access, but after the local configuration can not log in the background, the account password when the login found that there is a blank, can not jump to the background, this article to introduce two solutions to the local
Today, a customer said that its magento 1.6 Background could not be logged on. It took a long time to find a solution. This was found on the Internet. I hope my friends can refer to this problem.
Magento 1.4.x stable has a problem on the login procedure on localhost.You need to change in app/code/core/Mage/Core/Model/Session/Abstract/Varien. php tutorial
// Session cookie params
$ CookieParams = array ('L
How to set up PayPal in Magento background? This way to organize the simple to share with you.1, System->config-paypel1.1 Merchant Country set up the country1.2 Email associated with PayPal Setup account1.3 Select a PayPal solution1.4 Choose website Payments standard–paypal processes all of the your orders and you get paid, the front hook, the other hooks are removed.1.5 In the following column will website payment standard setting point open:1.5.1 Pa
Steps:1. Create a Hello World module2. Configure routing for this module3. Create an execution controller for this moduleCreating the Hello World moduleTo create a structure directory for a module:App/core/local/sjolzy/helloworld/blockApp/core/local/sjolzy/helloworld/controllersApp/core/local/sjolzy/helloworld/etcApp/core/local/sjolzy/helloworld/helperApp/core/local/sjolzy/helloworld/modelApp/core/local/sjolzy/helloworld/sqlTo create the content of CONFIG. App/core/local/sjolzy/helloworld/etc/co
Here is I do magento development commonly used methods, now summed up, the follow-up will be more useful methods summed up.1. Direct operation of the databaseCheck:$read = Mage::getsingleton ("Core/resource")->getconnection (' Core_read '); $sql = "SELECT * from ' abc '"; $result $read->fetchall ($sql); // Fetchrow Find aincrease, delete, change$write = Mage::getsingleton ("Core/resource")->getconnection (' Core_write '); $sql = "INSERT into ABC
1. Check if the value of the table Core_config_data ' Web/unsecure/base_url ' and ' Web/secure/base_url ' is the correct link address2. Delete all subdirectories and files under System directory var (cache information) 3. Refresh Browser reference: Illegal scheme supplied, only alphanumeric characters is permittedIllegal scheme supplied, only alphanumeric characters is permitted in Magento 1.8From for notes (Wiz)
Magento official free Template
Posted Thursday, 06/11/2009-06:20 by Kevin von
Magento's official templates are all well-performed, and the following articles are free of charge, and the extension key is included. These are all based on the AFL 3.0 protocol:1.Blue_skin: Http://www.magentocommerce.com/extension/519/blue-skinMagento_Connect_Extension_Key:magento-core/Interface_Frontend_Default_Default_Blue2.Blank: Http://www.magentocommerce.com/extensi
Default location such as, feel not beautifulAfter adjustment, such asOpen the Background product page and find the display product options in property under Design, you can see two options: Product Info column and block after Info column, where block after is selected by default Info column, which is literally understandable, the content of options is displayed below the product information by default, and if the display product options in property is set to the products info Column, The front d
Magento shows a variety of member Prices. on the product details page, I want to show the various prices of this product, that is, according to the different prices of the customer group, how can I get them? thank you very much !, This requires you to modify the code by yourself. The price list corresponds to different user groups or is written in a program. different user groups get the final price based on one algorithm.
Magento Backstage Orders originally is not display product picture, customer service business also get the website front desk to look for this product picture to provide to the delivery department, this is very inconvenient. In order to improve the work efficiency, should customer service business requirements, is now the Magento backstage orders to modify, so that the order page shows the product picture.O
The Magento routing system requires two layers of abstraction to be considered.1, first you need to understand that there may be countless multiple routing objects that are responsible for handling routing logic, and finally only one routing object can get and process the request. By default, Magento has four route objects.2, in these four kinds of routing objects, there are a series of different rules to m
http://blog.csdn.net/benben0503/article/details/86470201. Create newarrivals.php file:[PHP]View Plaincopy
/**
* This was the part of ' bmproducts ' module for Magento,
* which allows easy access to product collection
* With flexible filters
*/
Class Bestmagento_bmproducts_block_product_newarrivals extends Mage_catalog_block_product_list
{
function Get_prod_count ()
{
//unset any saved limits
Mage::getsingleton (' catalog/
Gento by default, the price is followed by a decimal point. Let's take a look at how to remove the decimal point correctly.
1. copy the file APP/code/CORE/MAGE/directory/model/currency in the following path. PHP to the app \ code \ Local \ mage \ directory \ model \ folder, this folder is not manually created.
2. Open the newly copied file currency. php
public
function
format(
$price
,
$options
=
array
(),
$includeContainer
= true,
$addBrackets
= false)
{
return
$this
->formatPrecision
Tomorrow's New Year. Haha!
1
How to obtain configuration data
Mage: getstoreconfig ('duan ', store_id), for example:
Mage: getstoreconfig ('helloworld _ options/message/hello_message ', 1 );
You can get the configuration in the sysytem. xml file, and then set the value in system-config in the background.
2
How to configure data.
2.1
First, specify helpers in config. XML, for example:
2.1.1
The helpers class must be configured in the configuration.
Use helper
----------------------->
Mage
Magento acceleration tool-lazyload
MagentoSpeed is a headache. I am introducing a front-end acceleration method. Speaking of lazyload, I believe many people are familiar with it. Now many websites have used this technology, and he can delay loading pictures of long pages. The acceleration of magento is obvious. The lazyload I am talking about today goes through PopoTransformed (forced me to add external
Use Magento to create a product list ?? Can I directly add it to the mq shopping cart and use Magento as the product list ?? Can be directly added to the mq shopping cart
You may have the following questions.
1. The restaurant list is displayed on the left. Click a restaurant and its menu categories are displayed.
2. click a category. the detailed menu is displayed on the right.
3. each dish on the ri
How can magento achieve the effect similar to the image display my page only has text no image magento how to achieve the effect similar to the image display my page only has text no image
Reply to discussion (solution)
Add images to your template according to country
I fixed it myself. now I want to show it to useful people.Use the following code to add
_ ('Currencies: ')?> GetSkinUrl ("images/"
Problem one, Magento itself with the mail sent, some messages can not be sent, installed Aschroder_smtppro Plug-ins, can only
Use Gmail servers because of the plugin problem
App/code/community/aschroder/smtppro/controllers
indexcontroller.php 90 Lines
The code is as follows
Copy Code
$mail->addto ($to)->setfrom ("veric@nieger.com")->setsubject ($sub)->setbodytext ($body);
Change into their own mailbox server,
(' is_reply ', array ( ' header ' => mage::helper) (' Consult ')->__ (' Email to Customer '), ' index ' => ' is_reply ', nbsp; ' type ' => ' options ', ' options ' => Array (' 0 ' => ' not Send ', ' 1 ' => ' send '), nbs p;));
After the is_reply in the grid was deleted, it was found that the value was successful. This experience is really pretty depressing. Because two pieces are completely unrelated things, there are assignment operations. Here's a record, it's experience
Magento How to connect to a database:1
Simple way. Restrictive small
1.1
$write = Mage::getsingleton (' Core/resource ')->getconnection (' Core_write ');$readresult = $write->query ("Select eav_attribute_option_value.option_id, Eav_attribute_option_value.value from Eav_attribute_option_valueINNER JOIN eav_attribute_option on eav_attribute_option_value.option_id=eav_attribute_option.option_id WHEREeav_attribute_option.attribute_id=505 and eav_attribute
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.