Magento 2 Tutorials

Magento2 tutorials

By hoangpv, 2 April, 2023

Section 3: Magento Core JavaScript Library

3.1 Demonstrate understanding of the mage library

Describe different types of Magento JavaScript templates

Magento supports the following templates:

  1. Underscore
  2. Knockout
  3. ES6 template
Magento pseudo ES6 literals and underscore templates in Magento

Magento supports ES6 templates. If the browser does not support them, then rendering is performed by the underscore patterns.

By cj_hoang, 15 March, 2023

Understanding Magento 2 cookies

Over the last few days, I’ve explored how Magento 2 uses cookies. From updating cart to managing cached pages to switching store views, cookies play an important role. This exploration is a result of weekend log debugging session. Our online store wasn’t working correctly when switching between different store views and sometimes it would go in redirection loop. Sometimes admin login wouldn’t work.

By cj_hoang, 7 December, 2022

1. Tìm customer ID 

2. Tìm wishlist ID

SELECT * FROM wishlist where customer_id=46597 

3. Tìm wishlist items, và xóa hết items đi

SELECT * FROM wishlist_item where wishlist_id=46597