magento merchants

Read about magento merchants, The latest news, videos, and discussion topics about magento merchants from alibabacloud.com

Magento Adding a field to the user registration (GO)

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

Magento collection filtering nested where condition simple notation

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 (

Magento Search except Word

1.DB add field ' except '-' catalogsearch_query '2.app\code\core\mage\adminhtml\block\catalog\search\edit\form.php Add FieldFeng$fieldset->addfield (' except ', ' text ', Array (' name ' = ' = ' except ', ' label ' = + mage::helper (' catalog ') )->__ (' Except '), ' title ' + mage::helper (' catalog ')->__ (' Except '), ' note ' = mage::helper (' catalog ') )->__ (' Except. '),);3.modelapp\code\core\mage\catalogsearch\model\resource\fulltext.phpPublic Function Prepareresult ($object, $queryTe

Magento order total price calculation error cause analysis and solution

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

Magento Show all prices of items

magento is a very well-known e-commerce platform developed by PHP !--? php $product = Mag E::getmodel (' catalog/product ')->load (product_id); $price = $product->getprice (); $webprice = $product->getwebprice (); $specialprice = ($_product->getspecialprice ()); if ($specialprice = = $price) { class= "Price" >price $!--? php echo Number_format ($price, 2);?

Magento Paypal Russian ruble and Philippine Peso

Open up the file app/code/core/mage/paypal/model/config.phpreplace line 207protected $_supportedcurrencycodes = Array (' AUD ', ' CAD ', ' CZK ', ' DKK ', ' EUR ', ' HKD ', ' HUF ', ' ILS ', ' JPY ', ' MXN ', ' NOK ', ' NZD ', ' PLN ', ' GBP ', ' SGD ', ' SEK ', ' CHF ', ' USD ' , ' TWD ', ' THB '); withprotected $_supportedcurrencycodes = Array (' AUD ', ' CAD ', ' CZK ', ' DKK ', ' EUR ', ' HKD ', ' HUF ', ' ILS ', ' JP Y ', ' MXN ', ' NOK ', ' NZD ', ' PLN ', ' GBP ', ' RUB ', ' SGD ', ' SEK

Magento Performance Optimizations: Disabling Access logging

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

magento--Determine if coupon code is used in checkout

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

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 "+

Magento new component controller does not take effect or 404

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

How to change a product dropdown attribute to a multiselect in magento

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

Magento service temporarily unavailable Solution

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

Send emails using magento's email template Mechanism

: APP ()-> getstore ()-> GETID (); $ Template = Mage: getstoreconfig ('customer _ email/services_request/template', $ storeid ); $ Recipient = array ( 'Name' => 'Baby ', 'Email '=> 'elon. guo@gmail.com' ); $ Sender = array ( 'Name' => 'koda guo ', 'Email '=> 'oda. guo@gmail.com' ); $ Mailtemplate = Mage: GetModel ('Core/email_template '); $ Mailtemplate-> setdesignconfig (Array ('area '=> 'frontend', 'store' => $ storeid )) -> Sendtransactional ( $ Template, $ Sender, $ Recipient ['email '], $

Magento: Paypal payment background settings and troubleshooting errors

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

Why Magento Open the website so slowly?

Why Magento Open the website so slowly?

Magento Related issues

Magento's Problem

How to manually modify order status in magento background

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

Magento Import Database prompt error 1064 (42000) at

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 PayPal Express Quick Checkout shipping loss Solution

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

Magento obtain products of a certain category

Require_once 'app/MAGE. php ';Mage: APP ('default ');$ Category = Mage: GetModel ('catalog/Category ')-> load (3 );$ Productcollections = $ category-> getproductcollection ();$ Productcollections-> addattributetoselect ('name '); Foreach ($ productcollections as $ productcollection ){Echo $ productcollection-> getname ();Echo "} ?> Magento's homepage is a static page implemented by CMS. I think if we modify magento's routers, magento will not be allo

Total Pages: 15 1 .... 11 12 13 14 15 Go to: Go

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.