magento on cloud

Want to know magento on cloud? we have a huge selection of magento on cloud information on alibabacloud.com

Add a tab on the magento product description page.

Label: style blog color Io for SP file Div on For example, to add a shipping method/Shipping Methods tag to the product details page, you can simply do this: Open the template file directory layout and edit local. xml. Create Review/product/View/shipping. phtml File Add a tab on the magento product description page.

Fetching and updating magento config data

Fetching and updating magento config data03 10 2011 0 Viet Le Quang In magnto, it's easy to Update Configuration data for a store through the admin interface, or by going into the database itself and making the changes (after getting your head round EAV ). the tableCore_config_dataIn particle holds a lot of this information. There is also a way of doing this via PHP/MySQL by using magento's own inbuilt functions. The function accepts only a few argume

Create a recommendation product (Featured Products) on the magento product category page)

When performing magento operations, you may want to add featuredproducts to the product category page. These products are generally sold well, or if you have a large profit, how should we add such products? The following describes how to display a group of Recommendation products ). The featured attribute must be added to the backend of the featured product. When the Administrator selects yes on the featured attribute, the product is displayed as a bl

Magento xml configuration details

content is added as the final input element of a class. The following is a standard test of Form Verification for Magento. Verify administrator password Verify Ajax Verify-α Verify alphanum's Verify CC-CVN Verify CC-EXP Verify the number of milliliters Verify milliliters Verify CC Selection Verify the cleansing URL Verification Code Verify cpassword's Verify CSS Length Verify currency USD Verify data Verification date Verification D

Magento curd operation

Query: $ Model = Mage: GetModel ('mynews/mynew'); $ collection = $ model-> getcollection (); $ collection-> addattributetoselect (Array ('name ', 'image', 'url _ key') // select the property to select-> setpagesize (20) // The number of retrieved items-> setcurpage (1) -> addattributetofilter ('style', 'brass '); // attribute filter detailed document http://justcoding.iteye.com/blog/1681318-> addattributetosort ('name', 'asc'); // sort$ Collection-> getsize (); foreach ($ collection as $ item) {

Magento layout (layouts), module (block), template (templates)

1. First create a layout app/design/frontend/base/default/layout/local.xmlNote: The layout zoom path base represents the current front-end theme, and the local local.xml in the PackageType contains the type of file that represents the block's type template with the address 2 of the block-contained templates, creating a template app The path behind the/design/frontend/base/default/template/and the correspondence in the template above3, modify Indexaction as follows and then refresh the page page

Magento Customizing a search function

There is a need to do a search function in the recent work, but because of the need to customize some of the appearance, so there is no traditional way to inherit the base class grid. The core of this requirement is actually the following approach.$this->getlayout ()->getblock (' YourName ')->setyourvalue (' Yourvalue '); As you all know, Magento's MVC architecture is a little different from the other MVC frameworks, and the Magento v layer calls dat

Magento Related/upsell Product and products/category calls

(' url ') ->addfieldtofilter (' Level ',Array(' Gteq ' =>1)); ->addattributetofilter (' entity_id ',$currentCatIds) -Addisactivefilter ();//Take out all the categories//First of a product:$product=$this-getproduct ();$product _id=$product-getId ();$product _ids=$product-getcategoryids ();//The second type:$category _model= Mage::getmodel (' catalog/category ');$category _model->load ($category _id);$product _collection=$category _model-getproductcollection ();$pr

Magento--The state is activated by default when adding new products, inventory status is in stock by default

State is activated by default when adding new productsOpen file/app/code/core/mage/catalog/model/product/status.php, comment out "Please select"[PHP]View Plaincopy /** * Retrieve option array with empty value * * @return Array */ static public Function getalloptions () { $res = Array ( /* Array ' Value ' = ', ' Label ' = mage::helper (' catalog ')->__ ('------') )*/ ); foreach (Self::getoptionarray () as $index = = $value) { $res [] = Array ( ' Value ' = $inde

Magento import csv files to database scripts

This is another way of writing magento scripts.I personally think that writing is okay, and the experts don't laugh.Using SplFileObject to handle big data csv files is highly efficient The code is as follows:Copy code Require_once 'shell/abstract. Php ';Class Faarao_Import_Customer extends Mage_Shell_Abstract{Protected $ _ files = array ();Protected $ _ datas = array ();Public function _ construct (){Parent: :__ construct ();Set_time_l

How to add breadcrumbs to magento CMS Homepage

How to add breadcrumbs2009-10-26 to magento CMS Homepage Open code/CORE/MAGE/CMS/block/page. php and find the followingCodeAdd the code behind Else. // Show breadcrumbsIf (Mage: getstoreconfig ('web/default/show_cms_breadcrumbs ') ($ Breadcrumbs = $ this-> getlayout ()-> getblock ('breadcrumbs ')) ($ Page-> getidentifier ()! = Mage: getstoreconfig ('web/default/cms_home_page ')) ($ Page-> getidentifier ()! = Mage: getstoreconfig ('web/defaul

Magento optimization Template static

The recent home is very slow, run Magento profile check, found that the first page of a templat run time accounted for half, about 6s.With Magento's own cache, try to cache the code in collection, but don't know why it has failed, and finally decided to turn the entire template into a static page, regenerated every two hours.The code is as follows:PHP$dir= Mage::getbasedir (). DS. ' var '.DS;$fileName=$dir.‘ Real_static_categories.phtml ';if(!file_exi

Magento example of an instantiated object in a CSV table upload

Call SetData () methodThis class does not, go to his father's class to findClass Mage_dataflow_model_batch extends Mage_core_model_abstractapp\code\core\mage\core\model\abstract.phpFound no, he inherited theAbstract class Mage_core_model_abstract extends Varien_objectFind the corresponding core classlib\varien\object.phpFound it/*** Overwrite data in the object.** $key can be string or array.* If $key is string, the attribute value would be overwritten by $value** If $key is an array, it'll ove

Magento and Discuz (ucenter) Integration of integrated development ideas

Discuz comes with Ucenter, which is mainly used for communication with other programs. We can download the Discuz ucenter Development Manual for Magento and discuz integration. There are some Ucenter interface functions and parameter descriptions, without this document, the template will not be able to do the following:1, put the API and Uc_client directory in the application directory.2, modify your own configuration file (Application/config/config.i

Magento date and time functions

Magento date and time functionsMagento date-related methods are mainly in two files. One is the core/date model class, and the other is the core assistant class. The methods are as follows.ExampleMage: getSingleton ('core/date ')Mage: getSingleton ('core/date')-> timestamp ($ input)Obtains the timestamp of a specified date. If the parameter is null, the current timestamp is obtained.The Returned time is actually the calculation result

Magento obtains the number and price code of the shopping cart products.

Get the shopping cart all the product information The code is as follows Copy Code $items = Mage::getmodel (' Checkout/cart ')->getquote ()->getallitems ();$items = Mage::getsingleton (' checkout/session ')->getquote ()->getallitems (); foreach ($items as $item) {Echo ' ID: '. $item->getproductid (). ' Echo ' Name: '. $item->getname (). ' Echo ' Sku: '. $item->getsku (). ' Echo ' Quantity: '. $item->getqty (). ' Echo ' Price: '. $item->getprice (). ' echo "}

Magento How to implement online consulting

Magento How to achieve online consulting?

Magento show a variety of member prices

Magento show a variety of member prices

Magento memcache Cache Configuration

In App/etc/local.xmlAdd the cache segment configuration in the [HTML]View Plaincopy config> global> install> date>date> Install> crypt> key>key> crypt> disable_local_modules>falsedisable_local_modules> resources> db> table_prefix>table_prefix> db> default_setup> connection> host>host> username>username> password>password> dbname>dbname> initstatements>initstatements> model>model>

Magento Direct Operations Database

Increase $write = Mage::getsingleton ("Core/resource")->getconnection (' Core_write ' ); $table = Mage::getsingleton (' Core/resource ')->gettablename (' abc '); $write->insert ($table, Array (' name ' = ' Hello ')); change $write = Mage::getsingleton ("Core/resource")->getconnection (' Core_write '); $ Table = Mage::getsingleton (' Core/resource ')->gettablename (' abc '); $write->update ($ Table,array (' name ' = ' = ' abc '), Array (' ID ' =>3)); Delete $write = Mage::getsingleton ("Core

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.