Step I Add a occupation/title field to the user registration page, almost 54 lines in register.html, add a occupation display code below the email
Code:
This is, if you go to the User registration page, you will see the new fields. Step 2 Also in edit.phtml, add occupation display block
Code:
Step 3, open model/entity/setup.php almost 93 lines, below the email, add the relevant code of
Use only $collection->addfieldtofilter (), do not use Addattributetofilter () or zend_db_expr (can be used for more complex where statements) such as: collection- >getselect ()->where (New zend_db_expr ("E.created_at > ' 2013-01-01 00:00:00 ' OR e.created_at $_collection Array $weight )) (array$weight));OR relationship------------------------------------------------------min_weight > $weight or$weight > Max_weight$_collection-addfieldtofilter (array(' min_weight ', ' max_weight '), array (
Cause analysisThe order price of Magento is calculated by executing the set pricing model under the global/sales/quote/totals node configured in config in sequence, the execution sequence is controlled by the after and before nodes of each model. For example, we can see the following code in the native app/code/core/Mage/Tax/etc/config. xml configuration file:.........We can note that the before node of the tax model specifies grand_total, which means
System records all access data into the database, including visitors and machine access (such as search engine crawlers), machine access will typically account for a large part of the data, so that will produce a small amount of additional server performance costs, including Web services, MySQL database service; This part of the data can not be seen. The database tables responsible for logging access logs are: Log_customer, Log_quote, Log_summary, Log_summary_type, Log_url, Log_url_info, Log_vis
In the checkout page, if you want to determine whether the customer has the use of coupon code, you can judge by checkout session.The following code returns the coupon code used in checkout or returns Null (when no coupon code is used)1PHP2 3 $coupon _code= Mage::getsingleton (' checkout/session ')->getquote ()->getcouponcode ();if($coupon _code){ 4 Echo"Coupon used"; 5}Else{ 6 Echo"Coupon Not used"; 7 } 8 9?>magento--Determine if coup
Use Magento to make product list?? Can be added directly to MQ shopping cart
There are a few questions, please ask the experts.
1. The list of restaurants is displayed on the left. Click on a restaurant to expand its menu below.
2. Click on a category to display the detailed menu on the right.
3. There is a check box on each of the dishes on the right. If clicked, the number will be displayed on the right side of the price, the default
"1", click "+
Check Links for errors
Link errors are usually two possible, one is misspelled, and the other is a background-enabled store view code added to the link, but the test was not written to the address bar –-
Check if the part is open
Sometimes the associated controller is not available because the component is not turned on for some reason. You can go to the background system/configuration > advanced/advanced to find whether the component exists in the list.
If the component does not open, it is
First, update the attribute input type to multiselect:
UPDATE eav_attribute SETentity_type_id = ‘4‘,attribute_model = NULL,backend_model = ‘eav/entity_attribute_backend_array‘,backend_type = ‘varchar‘,backend_table = NULL,frontend_model = NULL,frontend_input = ‘multiselect‘,frontend_class = NULLWHERE attribute_id = ‘YOUR_ATTRIBUTE_ID_HERE‘;
Next, copy the attribute values from the old table to the new:
INSERT INTO catalog_product_entity_varchar ( entity_type_id, attribute_id, store_id, entity_i
Agent upgrade error or installation failure
The service temporarily unavailable error may occur, so that the front-end and backend of the website cannot be displayed.
If the error still persists after the operation is completed, you can use the following methods:
1. Delete the maintenance. Flag under the root directory of the website. It should appear if it is not refreshed;
2. Delete the content in the var/cache folder of the website. If you delete the cache folder, The cache_dir file may n
Magento integrates the PayPal function and background settings:
1
System-> config-paypel
Go:
1.1Merchant countrySet country
1.2 email associated with PaypalSet Account
1.3 select a PayPal Solution
1.4 selected
Website payments standard-PayPal processes all of your orders, and you get paid.
Hook the front, and remove other hooks.
1.5
In the following section, open the website payment standard setting point.
1.5.1
Payment action --> sale
1.5.2
Payment a
Tags: des style blog color for SP file Div on
How to manually modify the order status on the Order details page:
Open this file: app \ design \ adminhtml \ Default \ template \ sales \ order \ view \ history. phtml
The 34 rows are as follows:
To:
Refresh the page to see if :)
How to manually modify order status in magento background
Another error occurred in the Magento Guide database:
A similar error occurred during the execution of the restored database or SQL statement:C:mysqlbin>mysql Sq_zgzk
Error 1064 (42000) at line 382:you have a error in your SQL syntax; Check the manual that corresponds to your MySQL server version for the right syntax to use near ' USINGKEY ' fk_attribute_varchar_entity ' (' entity_id '),KEY ' Fk_catalo ' at line 9
The solution is to search
Magento Set Express PayPal, click on the Product detail page or shopping cart page
Direct jump to the PayPal checkout page when there is no related shipping costs, and the normal checkout process freight calculation is no problem.
In the default mode of transport flat rate, you can override the method (module rewrite yourself to handle LOL):
app/code/core/mage/paypal/model/express/checkout.php @function Returnfrompaypal
In
The code
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.