Skip to content

Instantly share code, notes, and snippets.

View albertobraschi's full-sized avatar

Alberto Braschi albertobraschi

View GitHub Profile
#START FOR ub-tool APP CONFIG
set $yii_bootstrap "index.php";
#charset utf-8;
location /pub/ub-tool {
index index.html $yii_bootstrap;
try_files $uri $uri/ /$yii_bootstrap?$args;
}
location ~ ^/pub/ub-tool/(protected|framework|themes/\w+/views) {
deny all;
https://www.aicasa.com.br/ambiente/varanda2/jogos-de-mesas/jogo-de-mesa-de-aluminio-e-fibra-sintetica-cravo.html?amp=1
https://www.aicasa.com.br/ambiente/varanda2/jogos-de-mesas/jogo-de-mesa-de-aluminio-e-fibra-sintetica-girassol.html?amp=1
https://www.aicasa.com.br/ambiente/varanda2/espreguicadeiras/espreguicadeira-de-aluminio-e-fibra-sintetica-petunia.html?amp=1
https://www.aicasa.com.br/ambiente/varanda2/chaises/chaise-de-aluminio-e-fibra-sintetica-girassol.html?amp=1
https://www.aicasa.com.br/ambiente/varanda2/espreguicadeiras/espreguicadeira-de-aluminio-e-fibra-sintetica-caracol.html?amp=1
https://www.aicasa.com.br/linha-pet-shop/caminha-pet-aluminio-e-fibra-sintetica-azul-estofado-rosa.html?amp=1
<root>
<blocks>
<cms_item>
<title>Porto - Homepage Slider 1</title>
<identifier>porto_homeslider_1</identifier>
<content><![CDATA[<div class="full-screen-slider">
<div id="banner-slider-demo-3" class="owl-carousel owl-bottomright-narrow owl-banner-carousel">
<div class="item" style="background:#f0f0f0;background-image:linear-gradient(#e8e8e8,#f0f0f0);position:relative;">
<div style="width:100%;height:100%;width:100vw;height:100vh;background:url({{media url="wysiwyg/smartwave/porto/homepage/03/slider/slide3.jpg"}}) 70% top no-repeat; background-size:cover;"></div>
<div class="slide3-content" style="width:100%;height:100%;position:absolute;left:0;top:0;">
2019-04-17T18:06:42+00:00 DEBUG (7): id pedido: \<pre>string(7) "1029899"
\</pre>
2019-04-17T18:06:42+00:00 DEBUG (7): shipments: \<pre>array(1) {
[0] => array(12) {
["shipping_method"] => string(31) " - Econômico (12 dias úteis):"
["track_url"] => string(59) "https://status.ondeestameupedido.com/tracking/10911/1029899"
["shipping_company"] => string(21) "Mandaê Econômico 1 "
["track_code"] => string(12) "QUART1029899"
["nfe_number"] => string(5) "37590"
["nfe_serie"] => string(1) "1"
@albertobraschi
albertobraschi / README.md
Created April 17, 2019 12:07 — forked from leek/_Magento2_DeleteTestData.md
Magento 2 - Delete All Test Data

These set of scripts are for Magento 2. For Magento 1, see this Gist.

@albertobraschi
albertobraschi / debugging-tips-tricks-magento-1x.md
Created March 8, 2019 13:30 — forked from molotovbliss/debugging-tips-tricks-magento-1x.md
Debugging tips & tricks with Magento 1.x Commerce
@albertobraschi
albertobraschi / debugging-tips-tricks-magento-1x.md
Created March 8, 2019 13:30 — forked from molotovbliss/debugging-tips-tricks-magento-1x.md
Debugging tips & tricks with Magento 1.x Commerce
#!/bin/bash
PROGNAME=${0##*/}
INPUT=''
QUIET='0'
NOSTATS='0'
max_input_size=0
max_output_size=0
usage()
Track product impressions by position in the Category Page
Track product clicks by position in the Category Page
Track product impressions by position in the Search Result Page
Track product clicks by position in the Search Result Page
Track product impressions by position in the Related, Up-sell and Cross-sell section
Track product clicks by position in the Related, Up-sell and Cross-sell section
Track the number of times a product was added to the shopping cart
Track the number of times a product was removed from the shopping cart
Track the number of times a product was included into the checkout process
Track each Checkout Step (billing address, shipping address, shipping options, payment options)
<?php
$_configHelper = Mage::helper('searchautocomplete/config');
$_product = $this->getItem();
?>
<!-- li data-url="<?php echo $_product->getProductUrl() ?>" -->
<li>
<?php if ($_configHelper->isShowImage()): ?>
<div class="searchautocomlete-image">
<img src="<?php echo $this->helper('mstcore/image')->init($_product, 'thumbnail', 'catalog/product')->resize($_configHelper->getImageWidth(), $_configHelper->getImageHeight()) ?>" width="<?php echo $_configHelper->getImageWidth() ?>px" height="<?php echo $_configHelper->getImageHeight() ?>px"/>
</div>