Skip to content

Instantly share code, notes, and snippets.

View projoomexperts's full-sized avatar

projoomexperts

View GitHub Profile
@projoomexperts
projoomexperts / basefile.html
Created February 19, 2018 21:53
Bigcommerce stencil revamped menu
<div class="m_Nav">
<h3>Store Categories</h3>
<ul>
{{#each categories}}
<li>
<a href="{{url}}" alt="{{name}}" title="{{name}}">{{name}}</a>
</li>
{{/each}}
</ul>
$userinfo = array(
'RTRKey'=>'C4E035CE-FE51-40BD-89CF-00BF4CD4C039',
'Options'=>63
);
$wsdl_url = 'http://realtimerental.com/webservice/RTRWSAPI.asmx?wsdl';
$client = new SoapClient($wsdl_url, array('trace' => 1, "exception" => 0));
$res = $client->RTRPropertyCatalog($userinfo);
$RTRAllData = new SimpleXMLElement($res->RTRPropertyCatalogResult);
@projoomexperts
projoomexperts / bigcommerce cart number
Created December 15, 2017 20:16
Bigcommerce cart number only in span
<script type="text/javascript">
jQuery(document).ready(function(){
var carticon = jQuery('.TopMenu .CartLink span');
var carttext = carticon.text();
var cartnumber = carttext.replace(/\D/g,'');
carticon.text( cartnumber );
});
$( document ).ajaxComplete(function() {
var carticon = jQuery('.TopMenu .CartLink span');
{{#each brands}}
<a href="{{url}}">{{name}}</a>
{{/each}}
@import url('https://fonts.googleapis.com/css?family=Open+Sans');
span.item-metal, span.item-bid, span.item-ask, span.item-change.is-down, span.item-ask{
font-family: "Open Sans";
font-size: 13px;
line-height: 18px;
text-transform: uppercase;
}
span.item-metal{
color: #c2c2c2;
@projoomexperts
projoomexperts / collection list
Created August 6, 2017 07:31
Shopify collection list
{
"name": "Home Page - Collections",
"settings": [
{
"type": "header",
"content": "Collection 1"
},
{
"type": "collection",
"id": "col_1",
@projoomexperts
projoomexperts / specTable.html
Created August 2, 2017 19:40
Specification Table
<table class="specTable" border="0">
<thead>
<tr>
<th colspan="2">Specifications</th>
</tr>
</thead>
<tbody>
<tr>
<td>Specification #1</td>
<td>Lorem Ipsum Doller Sit</td>
@projoomexperts
projoomexperts / Shopify slider codes
Created July 28, 2017 17:56
Shopify slider codes
{% assign slider_enabled = true %}
<div class="clear full column separator" id="Slider">
<ul class="rslides">
{% for i in (1..6) %}
{% capture slide %}slide_{{ i }}{% endcapture %}
{% capture slide_link %}slide_{{ i }}_link{% endcapture %}
{% capture slide_img %}slide_{{ i }}.jpg{% endcapture %}
{% capture slide_alt %}slide_{{ i }}_alt{% endcapture %}
{% if settings[slide] %}
<li>
@projoomexperts
projoomexperts / gist:ef7fe6522c6989e611bca4b578f585aa
Created July 20, 2017 18:52
Bigcommerce left menu add active class
var url = window.location.href;
jQuery('.Left .sf-menu li a').each(function(){
var gthis = jQuery(this);
var furl = gthis.attr('href');
if (furl == url){
gthis.parent().addClass('active-ul');
}
})
{% if section.blocks.size > 0 %}
<div class="index-section">
<div class="collections" id="collections--{{ section.id }}" data-section-id="{{ section.id }}" data-section-type="collections-section">
<ul class="collection-grid">
{% for block in section.blocks %}
{% if block.settings.image != blank %}
<li id="collection--{{ block.id }}">
<a href="{{ block.settings.link }}">
{{ block.settings.image | img_url: '2048x' | img_tag: block.settings.image.alt }}
</a>