Skip to content

Instantly share code, notes, and snippets.

View luancschmitz's full-sized avatar

Luan Carlos Schmitz luancschmitz

  • São Carlos, Santa Catarina
View GitHub Profile
@luancschmitz
luancschmitz / price-utils-magento2.js
Created September 27, 2022 12:15 — forked from cagartner/price-utils-magento2.js
Formating price on JS for Magento 2
define(
[
'jquery',
'Magento_Checkout/js/model/quote',
'Magento_Catalog/js/price-utils'
],
function ($,quote, priceUtils) {
"use strict";
......
formatedPrice = getFormattedPrice(price)
@luancschmitz
luancschmitz / customers.sql
Last active October 5, 2020 14:25 — forked from leek/_Magento2_DeleteTestData.md
Magento 2 - Delete All Test Data
SET FOREIGN_KEY_CHECKS=0;
-- Customers
TRUNCATE TABLE `customer_address_entity`;
TRUNCATE TABLE `customer_address_entity_datetime`;
TRUNCATE TABLE `customer_address_entity_decimal`;
TRUNCATE TABLE `customer_address_entity_int`;
TRUNCATE TABLE `customer_address_entity_text`;
TRUNCATE TABLE `customer_address_entity_varchar`;
TRUNCATE TABLE `customer_entity`;