These set of scripts are for Magento 2. For Magento 1, see this Gist.
This file contains 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
#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; |
This file contains 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
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 |
This file contains 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
<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;"> |
This file contains 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
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" |
Originally posted from https://web.archive.org/web/20171207214530/http://www.molotovbliss.com/debugging-tips-and-tricks-with-magento-commerce
Zend_Debug::dump
Use Zend_Debug::dump($foo);
instead of using var_dump($foo);
or print_r($foo);
it is essentially the same, just a wrapper with pre HTML tag for formatting and escaping of special characters.
Originally posted from https://web.archive.org/web/20171207214530/http://www.molotovbliss.com/debugging-tips-and-tricks-with-magento-commerce
Zend_Debug::dump
Use Zend_Debug::dump($foo);
instead of using var_dump($foo);
or print_r($foo);
it is essentially the same, just a wrapper with pre HTML tag for formatting and escaping of special characters.
This file contains 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
#!/bin/bash | |
PROGNAME=${0##*/} | |
INPUT='' | |
QUIET='0' | |
NOSTATS='0' | |
max_input_size=0 | |
max_output_size=0 | |
usage() |
This file contains 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
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) |
This file contains 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 | |
$_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> |