Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0"
xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:wp="http://wordpress.org/export/1.2/"
>
<channel>
@tvlgiao
tvlgiao / wget download a single page & its internal assets
Last active November 20, 2016 17:42
wget command to download a single web page and all internal assets (css js images...)
wget -E -k -K -p "the-url-single-page-to-download"
function main()
{
// Bid Modifier on Off Work Hours
var LOW_BID = 0.3;
// Bid Modifier on Working Hours
var HIGH_BID = 1.2;
// retrieve campaign: TF-SP-Everything-US-Search
var campaignIterator = AdWordsApp.campaigns().withCondition('Name = "TF-SP-Everything-US-Search"').get();
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-55571446-1', 'auto');
ga('require', 'displayfeatures');
ga('send', 'pageview');
@tvlgiao
tvlgiao / bigcommerce-fix-qty-hit-enter.diff
Created June 5, 2017 17:41
[BigCommerce] Fix problem when it enter on quantity box it will decrease 1 unit
diff --git a/assets/js/theme/common/product-details.js b/assets/js/theme/common/product-details.js
index 7e97a13..e09f775 100644
--- a/assets/js/theme/common/product-details.js
+++ b/assets/js/theme/common/product-details.js
@@ -174,6 +174,20 @@ export default class Product {
// update text
viewModel.quantity.$text.text(qty);
});
+
+
@tvlgiao
tvlgiao / show-subcategory-imgs-on-category-page.diff
Created June 6, 2017 07:55
[BigCommerce] Add new category layout to show sub-category images on category page
diff --git a/templates/components/emthemes-modez/sections/section-categories-grid.html b/templates/components/emthemes-modez/sections/section-categories-grid.html
index 67a6e2a..61b12f9 100644
--- a/templates/components/emthemes-modez/sections/section-categories-grid.html
+++ b/templates/components/emthemes-modez/sections/section-categories-grid.html
@@ -20,10 +20,15 @@ Arguments:
{{/if}}
<div class="emthemesModez-categoriesGrid-body">
<h4 class="emthemesModez-categoriesGrid-name">
- {{name}}
+ <a href="{{url}}">{{name}}</a>
@tvlgiao
tvlgiao / navigation-page-list.html
Created June 9, 2017 08:26
[BC LaParis] navigation-page-list.html
{{#if children}}
<a class="navPages-action has-subMenu" href="{{url}}"
data-collapsible="navPages-page-{{@index}}"
data-collapsible-disabled-breakpoint="large"
data-collapsible-disabled-state="open"
data-collapsible-enabled-state="closed">
{{name}} <i class="icon navPages-action-moreIcon" aria-hidden="true"><svg><use xlink:href="#icon-chevron-down" /></svg></i>
{{> components/emthemes-modez/common/navigation-label}}
</a>
<div class="navPage-subMenu" id="navPages-page-{{@index}}" aria-hidden="true" tabindex="-1">
@tvlgiao
tvlgiao / bigcommerce-show-bulk-price-table-inline.diff
Created July 5, 2017 07:23
BigCommerce Show Bulk Pricing Table inline on the product details page
diff --git a/templates/components/products/product-view.html b/templates/components/products/product-view.html
index 768a46a..83379c8 100644
--- a/templates/components/products/product-view.html
+++ b/templates/components/products/product-view.html
@@ -109,6 +109,41 @@
{{/if}}
{{/if}}
{{/if}}
+ {{#if product.bulk_discount_rates.length}}
+ <dt class="productView-info-name">{{lang 'products.bulk_pricing.title'}}</dt>
@tvlgiao
tvlgiao / bigcommerce-product-images-uniform.scss
Created September 28, 2017 04:46
[BigCommerce] Make all product images uniform
// --------------------------------------------------------------------------------
// PRODUCT IMAGES FIXED HEIGHT ON GRID
// --------------------------------------------------------------------------------
.card-figure {
.productGrid & {
height: 200px;
}
@tvlgiao
tvlgiao / bc-supermarket-move-maintenance-box-to-top-page.css
Created January 13, 2018 07:42
BC Supermarket theme - Move maintenance notice box to top of page
body {
padding-top: 10rem;
}
.maintenanceNotice {
top: 55px;
left: 0;
right: 0;
width: auto;
display: flex;