Skip to content

Instantly share code, notes, and snippets.

View lukasfarina's full-sized avatar
💭
Working on

Lucas Farina lukasfarina

💭
Working on
  • Myself
  • São Paulo, SP, Brazil
View GitHub Profile
@luizventurote
luizventurote / override-product-price-template-in-magento.md
Last active April 4, 2017 17:38
Override Product Price Template In Magento

Use this:

<?php echo $this->getLayout()->createBlock('catalog/product_price')
            ->setTemplate('catalog/product/customprice.phtml')
            ->setProduct($_product)
            ->setDisplayMinimalPrice(true)
            ->setIdSuffix($idSuffix='amit')
            ->toHtml(); ?>

Instead of getPriceHtml($_product, true) ?&gt;

@lukasfarina
lukasfarina / functions.php
Last active September 18, 2018 12:10
PT-BR: Trocar o output do Breadcrumb do plugin Yoast para uma versão com microdata. | EN: Change output of your Yoast breadcrumbs to version with microdata
<?php
/*
* Plugin Name: Fix Microdata Yoast Breadcrumb
* Plugin URI: https://gist.github.com/lukasfarina/83cdb2e8c2661b2b8017/
* Author: Lucas Farina
* Author URI: lucasfarina.com.br
* */
// Change Wrap of Breadcrumb
@cirocosta
cirocosta / iframe.html
Last active January 6, 2024 23:02
Sending messages from child iframe to parent webpage
<!DOCTYPE html>
<html>
<head>
<title>My Iframe</title>
</head>
<body>
<button>Botão</button>
<script type="text/javascript">
@devluis
devluis / live-word-counter-jquery
Created December 6, 2013 05:35
Live Word and Character Counter using jQuery
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>Live Word and Character Counter using jQuery</title>
<style>
textarea{