This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select.custom-select { | |
background: #fff url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMyIgaGVpZ2h0PSI2Ij48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiM4QjhCOEIiIGQ9Ik02LjQ5IDUuOTk5YS43NzguNzc4IDAgMCAxLS41NDEtLjIxNkwuMjE1IDEuMjU5YS43MTcuNzE3IDAgMCAxIDAtMS4wNDIuNzg0Ljc4NCAwIDAgMSAxLjA4MSAwTDYuNDkgNC4yMjEgMTEuNjgzLjIxN2EuNzg2Ljc4NiAwIDAgMSAxLjA4MiAwIC43MTkuNzE5IDAgMCAxIDAgMS4wNDJMNy4wMyA1Ljc4M2EuNzczLjc3MyAwIDAgMS0uNTQuMjE2eiIvPjwvc3ZnPg== ') no-repeat 95% center; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
try { | |
/* @var $installer Mage_Catalog_Model_Resource_Setup */ | |
$installer = new Mage_Catalog_Model_Resource_Setup('core_setup'); | |
$installer->startSetup(); | |
$attribute = 'attribute_code'; | |
$groupName = 'General'; // Or other | |
$entityTypeId = $installer->getEntityTypeId('catalog_product'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ================================================ | |
# PHP 7.2 | |
# | |
# See https://www.colinodell.com/blog/201711/installing-php-72 | |
# ================================================ | |
apt-get install -y apt-transport-https lsb-release ca-certificates | |
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg | |
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list | |
apt-get update | |
apt-get install -y php7.2-cli php7.2-gd php7.2-mbstring php7.2-curl php7.2-xml php7.2-zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Criado tar.gz | |
tar -cvzf <nome-arquivo>.tar.gz <pasta-ou-arquivo> | |
# Criando tar.gz excluindo pastas ou arquivos | |
tar -cvzf <nome-arquivo>.tar.gz <pasta-ou-arquivo> --exclude="<pasta-ou-arquivo>/<pasta-ou-arquivo-excluido>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
window.smartlook||(function(d) { | |
var o=smartlook=function(){ o.api.push(arguments)},h=d.getElementsByTagName('head')[0]; | |
var c=d.createElement('script');o.api=new Array();c.async=true;c.type='text/javascript'; | |
c.charset='utf-8';c.src='https://rec.smartlook.com/recorder.js';h.appendChild(c); | |
})(document); | |
smartlook('init', '573bd7636e777ef3eeafd21b04ee8fe3af74317b'); | |
</script> | |
<meta class="netreviewsWidget" id="netreviewsWidgetNum3535" data-jsurl="//cl.avis-verifies.com/br/cache/2/5/f/25feafe6-83c3-39e4-c1c9-a32df374dadd/widget4/widget20-3535_script.js"/><script src="//cl.avis-verifies.com/br/widget4/widget20_FB3.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get Customers taxvat | |
SELECT ce.*, ea.attribute_code, cev.value | |
FROM customer_entity AS ce | |
LEFT JOIN eav_attribute AS ea ON ce.entity_type_id = ea.entity_type_id AND ea.backend_type = 'varchar' | |
LEFT JOIN customer_entity_varchar AS cev ON ce.entity_id = cev.entity_id AND ea.attribute_id = cev.attribute_id | |
WHERE ea.attribute_code = 'taxvat'; | |
# Get Customer Data from orders | |
SELECT `increment_id`, `customer_id`, `customer_firstname`, `customer_email`, `customer_taxvat` FROM `sales_flat_order`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/***************/ | |
.wp-block-columns { | |
display: flex; | |
margin: 20px 0; | |
} | |
.wp-block-column { | |
flex: 1; | |
margin: 0 20px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/***************/ | |
.wp-block-columns { | |
display: flex; | |
margin: 20px 0; | |
} | |
.wp-block-column { | |
flex: 1; | |
margin: 0 20px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$whatsDefaultText = urlencode($this->__('Hello, I need help for...')); | |
$sendTo = '5547992027755'; | |
$apiUrl = 'https://web.whatsapp.com/send?phone=' . $sendTo . '&text=' . $whatsDefaultText; | |
if(preg_match('/(Chrome|CriOS)\//i',$_SERVER['HTTP_USER_AGENT']) | |
&& !preg_match('/(Aviator|ChromePlus|coc_|Dragon|Edge|Flock|Iron|Kinza|Maxthon|MxNitro|Nichrome|OPR|Perk|Rockmelt|Seznam|Sleipnir|Spark|UBrowser|Vivaldi|WebExplorer|YaBrowser)/i',$_SERVER['HTTP_USER_AGENT'])){ | |
// Browser might be Google Chrome | |
$apiUrl = 'https://wa.me/' . $sendTo . '?text=' . $whatsDefaultText; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- | |
/** | |
* Copyright © 2013-2017 Magento, Inc. All rights reserved. | |
* See COPYING.txt for license details. | |
*/ | |
--> | |
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> | |
<preference for="Psr\Log\LoggerInterface" type="Magento\Framework\Logger\Monolog" /> | |
<preference for="Magento\Framework\EntityManager\EntityMetadataInterface" type="Magento\Framework\EntityManager\EntityMetadata" /> |