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
| /api/checkout/pub/orders/?customerEmail=${email} |
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
| $.ajax('/api/catalog_system/pub/products/search?fq=productId:' + skuJson.productId) | |
| .done(function(product) { | |
| product = product[0]; | |
| if (!product['Desconto progressivo'][0]) return; | |
| /** | |
| * Pega a porcentagem de desconto, de acordo com a descrição da promoção | |
| * Ex.: "<b>GANHE 10% DE DESCONTO</b> COLOCANDO <b>12 UNIDADES</b> OU MAIS NO CARRINHO." | |
| */ | |
| var discountBase = +product['Desconto progressivo'][0].match(/\d+\%/g)[0].replace('%',''); | |
| // Pega o preço do SKU |
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
| { | |
| "recommendations": [ | |
| "thisismanta.stylus-supremacy" | |
| ] | |
| } |
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
| https://instagram.com/oauth/authorize/?client_id=e4e2e067732640baa760eb82d0a624a8&redirect_uri=http://guilhermemarconi.me/instagram/&response_type=token |
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
| body.on('click', '.js-add-to-cart', function(event) { | |
| var sizeSelected = $('.size-selected').find(':selected'), | |
| skuId = parseInt($('.size-selection').val()), | |
| skuQty = parseInt($('.qty-selection').val()), | |
| skuName = sizeSelected.text(), | |
| skuPrice = sizeSelected.data('sku-price'), | |
| skuCache = $('.size-selection').data('cache-version'), | |
| requestUrl = '/checkout/cart/add?sku=' + skuId + '&qty=' + skuQty + '&price=' + skuPrice + '&seller=1&cv=' + skuCache + '&sc=1'; | |
| event.preventDefault(); |
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 | |
| /** | |
| * Optimize WooCommerce Scripts | |
| * Remove WooCommerce Generator tag, styles, and scripts from non WooCommerce pages. | |
| */ | |
| add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 ); | |
| function child_manage_woocommerce_styles() { | |
| //remove generator meta tag |
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 | |
| if ( has_term( array( 'cat-slug-1', 'cat-slug-2' ), 'product_cat' ) ) { | |
| return true; | |
| } |
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
| /** | |
| * Be sure to include library scripts in this order. Can be placed either | |
| * in the header or footer. | |
| */ | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-infinitescroll/2.0b2.120519/jquery.infinitescroll.min.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/masonry/3.1.2/masonry.pkgd.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/3.0.4/jquery.imagesloaded.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
| #301 Redirect Local Images to Live | |
| RedirectMatch 301 ^/wp-content/uploads/(.*) http://livewebsite.com/wp-content/uploads/$1 |
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 // do not include leading php tag | |
| /** | |
| * For developers: WordPress debugging mode. | |
| * | |
| * Change this to true to enable the display of notices during development. | |
| * It is strongly recommended that plugin and theme developers use WP_DEBUG | |
| * in their development environments. | |
| */ | |
| define('WP_DEBUG', true); |