php:magento
Differences
This shows you the differences between two versions of the page.
| php:magento [2018/08/09 08:55] – [magento upgrade] admin | php:magento [2022/10/29 16:15] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 266: | Line 266: | ||
| * customer/ | * customer/ | ||
| - | ===== Magento layout, pages, | + | ===== Magento layout, pages, blocks |
| refer: http:// | refer: http:// | ||
| ==== Mangento layout or root template ==== | ==== Mangento layout or root template ==== | ||
| Line 442: | Line 442: | ||
| ..... | ..... | ||
| </ | </ | ||
| - | ==== default | + | ==== Default |
| === [core.xml] === | === [core.xml] === | ||
| Line 499: | Line 499: | ||
| </ | </ | ||
| </ | </ | ||
| - | ==== default | + | ==== Default |
| Edit in Admin: **Quan ly CMS -> Page -> Home** | Edit in Admin: **Quan ly CMS -> Page -> Home** | ||
| Edit layout and page config in **Design** | Edit layout and page config in **Design** | ||
| Line 577: | Line 577: | ||
| </ | </ | ||
| </ | </ | ||
| - | ==== config | + | ==== Config |
| - step1: config display template **callouts/ | - step1: config display template **callouts/ | ||
| < | < | ||
| Line 607: | Line 607: | ||
| - step4: update display chatango in left bar:< | - step4: update display chatango in left bar:< | ||
| <script id=" | <script id=" | ||
| + | </ | ||
| + | ==== top.links Header link (Include Login/ | ||
| + | * CMS Block to display links in **top.links.phtml**:< | ||
| + | <?php if($toplinks && is_array($toplinks)): | ||
| + | <ul class=" | ||
| + | <?php echo $this-> | ||
| + | <?php foreach($toplinks as $_toplink): ?> | ||
| + | < | ||
| + | <?php endforeach; ?> | ||
| + | </ul> | ||
| + | </ | ||
| + | * Config links in layout customer.xml:< | ||
| + | <layout version=" | ||
| + | |||
| + | <!-- | ||
| + | Default layout, loads most of the pages | ||
| + | --> | ||
| + | |||
| + | < | ||
| + | <!-- Mage_Customer --> | ||
| + | < | ||
| + | <action method=" | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <!-- | ||
| + | Load this update on every page when customer is logged in | ||
| + | --> | ||
| + | |||
| + | < | ||
| + | < | ||
| + | <action method=" | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <!-- | ||
| + | Load this update on every page when customer is logged out | ||
| + | --> | ||
| + | |||
| + | < | ||
| + | < | ||
| + | <block type=" | ||
| + | </ | ||
| + | < | ||
| + | <action method=" | ||
| + | </ | ||
| + | <remove name=" | ||
| + | </ | ||
| </ | </ | ||
| ===== Database ===== | ===== Database ===== | ||
| - | ==== database | + | ==== Database |
| <code sql> | <code sql> | ||
| SELECT `core_url_rewrite`.* FROM `core_url_rewrite` WHERE (request_path IN ('/', | SELECT `core_url_rewrite`.* FROM `core_url_rewrite` WHERE (request_path IN ('/', | ||
| Line 633: | Line 681: | ||
| SELECT `catalog_category_entity`.* FROM `catalog_category_entity` WHERE (`catalog_category_entity`.`path` LIKE ' | SELECT `catalog_category_entity`.* FROM `catalog_category_entity` WHERE (`catalog_category_entity`.`path` LIKE ' | ||
| </ | </ | ||
| - | ==== manage | + | ==== Manage |
| === category === | === category === | ||
| <code sql> | <code sql> | ||
| Line 844: | Line 892: | ||
| } | } | ||
| </ | </ | ||
| - | ==== other optimize methods ==== | + | ==== Other optimize methods ==== |
| - re-index data | - re-index data | ||
| * in admin | * in admin | ||
| Line 929: | Line 977: | ||
| * config base_url: table core_config_data: | * config base_url: table core_config_data: | ||
| update core_config_data set value = ' | update core_config_data set value = ' | ||
| + | </ | ||
| + | * update site from https to non https:< | ||
| + | update core_config_data set value=' | ||
| </ | </ | ||
| * Clear all caches for activating new config:< | * Clear all caches for activating new config:< | ||
| Line 1054: | Line 1105: | ||
| Go to "Nhóm Sản Phẩm" | Go to "Nhóm Sản Phẩm" | ||
| + | ==== Update all categories to isAnchor ==== | ||
| + | <code sql> | ||
| + | SET value = 1 | ||
| + | WHERE attribute_id = (SELECT attribute_id | ||
| + | | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | ==== Update Manufacture ==== | ||
| + | Research Manufacture database <code sql> | ||
| + | select attribute_id, | ||
| + | 137 4 manufacture | ||
| + | |||
| + | select option_id, value from eav_attribute_option_value where value like " | ||
| + | 40 Kim Home | ||
| + | 40 Kim Home | ||
| + | 40 Kim Home | ||
| + | |||
| + | select entity_id, | ||
| + | 1960 GỐI LÕM CARA KIM HOME | ||
| + | 1955 GỐI ÔM CARA CHO BÉ 60x25cm KIM HOME | ||
| + | |||
| + | INSERT INTO `catalog_product_entity_int` (`entity_type_id`, | ||
| + | |||
| + | --list all products have manufacture with name like "%KIM HOME%" | ||
| + | select catp.entity_type_id, | ||
| + | |||
| + | update `catalog_product_entity_int` as catp, catalog_product_flat_1 as catflat set catp.value = 40 where catp.`entity_type_id` = 4 and catp.`attribute_id`=137 and catp.`entity_id` = catflat.`entity_id` and catflat.name like "%KIM HOME%"; | ||
| + | </ | ||
| + | Update Manufacture from database: | ||
| + | - Step1: Check manufacture information with name "Kim Home" from database< | ||
| + | select option_id, value from eav_attribute_option_value where value like " | ||
| + | 40 Kim Home | ||
| + | 40 Kim Home | ||
| + | 40 Kim Home | ||
| + | </ | ||
| + | - Step2: Update manufacture for all products with name like "%KIM HOME%" to manufacture value 40(Manufacture "Kim Home" | ||
| + | update `catalog_product_entity_int` as catp, catalog_product_flat_1 as catflat set catp.value = 40 | ||
| + | where catp.`entity_type_id` = 4 and catp.`attribute_id`=137 and catp.`entity_id` = catflat.`entity_id` and catflat.name like "%KIM HOME%"; | ||
| + | </ | ||
| + | - Step3: Recheck< | ||
| + | select catp.entity_type_id, | ||
| + | `catalog_product_entity_int` as catp join catalog_product_flat_1 as catflat on catp.`entity_type_id` = 4 and catp.`attribute_id`=137 and catp.`entity_id` = catflat.`entity_id` and catflat.name like "%KIM HOME%"; | ||
| + | </ | ||
| ==== Magento upgrade ==== | ==== Magento upgrade ==== | ||
| === upgrade with magento connect === | === upgrade with magento connect === | ||
| Line 1088: | Line 1183: | ||
| rm -rf / | rm -rf / | ||
| </ | </ | ||
| + | ==== Magento Email Configure ==== | ||
| + | - Advanced/ | ||
| + | - General/ | ||
| + | - Sales/Sales Emails: Send Order Email Copy To: | ||
| + | - You must sure that we can run cron command of magento | ||
| ===== Magento and Wordpress ===== | ===== Magento and Wordpress ===== | ||
| refer: http:// | refer: http:// | ||
| Line 1204: | Line 1304: | ||
| truncate table catalogsearch_result; | truncate table catalogsearch_result; | ||
| </ | </ | ||
| - | ===== Lazada support ===== | ||
php/magento.1533804932.txt.gz · Last modified: (external edit)
