Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Out sick

Christopher Dosin ChristopherDosin

:octocat:
Out sick
View GitHub Profile
@ChristopherDosin
ChristopherDosin / index.tpl
Created Jul 31, 2015
Append Suppliername after Article Numer
View index.tpl
{extends file='frontend/detail/index.tpl'}
{block name='frontend_detail_index_buy_container_base_info' append}
{if $sArticle.supplierName}
<p>{$sArticle.supplierName}</p>
{/if}
{/block}
View webfonts.less
@font-face {
font-family: 'Oswald';
src: url('../../fonts/Oswald.eot');
src: url('../../fonts/Oswald.eot?#iefix') format('embedded-opentype'),
url('../../fonts/Oswald.woff2') format('woff2'),
url('../../fonts/Oswald.woff') format('woff'),
url('../../fonts/Oswald.ttf') format('truetype');
}
View main-navigation.tpl
{extends file='parent:frontend/index/main-navigation.tpl'}
{block name='frontend_index_navigation_categories_top_home'}{/block}
View header.less
.header-main {
// Logo
.logo-main {
.logo--link {
.unitize-height(45, 16); // Anpassen der Höhe, Angabe in px
}
// Smaller logo for mobile viewports
.logo--shop {
View shop-navigation.tpl
<nav class="shop--navigation block-group">{* Menu (Off canvas left) trigger *}
{block name='frontend_index_offcanvas_left_trigger'}</nav>
<ul class="navigation--list block-group">
<ul class="navigation--list block-group">
<li class="navigation--entry entry--menu-left"><a class="entry--link entry--trigger btn is--icon-left" href="#offcanvas--left" data-offcanvas="true" data-offcanvasselector=".sidebar-main">
<i class="icon--menu"></i> {s namespace='frontend/index/menu_left' name="IndexLinkMenu"}{/s}
</a></li>
</ul>
</ul>
{/block}
View shop-navigation.tpl
<nav class="shop--navigation block-group">{* Menu (Off canvas left) trigger *}
{block name='frontend_index_offcanvas_left_trigger'}</nav>
<ul class="navigation--list block-group">
<ul class="navigation--list block-group">
<li class="navigation--entry entry--menu-left"><a class="entry--link entry--trigger btn is--icon-left" href="#offcanvas--left" data-offcanvas="true" data-offcanvasselector=".sidebar-main">
<i class="icon--menu"></i> {s namespace='frontend/index/menu_left' name="IndexLinkMenu"}{/s}
</a></li>
</ul>
</ul>
{/block}
View geo-inline
$('#zipcode').bind('keyup change', function(e) {
if ($(this).val().length > 4) {
var ort = $('#city');
$.getJSON('http://www.geonames.org/postalCodeLookupJSON?&country=DE&callback=?', {postalcode: this.value }, function(response) {
if (response && response.postalcodes.length && response.postalcodes[0].placeName) {
ort.val(response.postalcodes[0].placeName);
}
})
} else {
$('#city').val('');
View autocity.js
protected $javascript = array(
'src/js/autocity.js'
);
View gist:59402cde63464bcd5b45
$().ready(function () {
$(".lineData:contains('Garantie')").attr('id', 'garantie');
$("#garantie").remove();
});
View tab2.tpl
{extends file="parent:frontend/detail/tabs.tpl"}
{* New tab *}
{block name="frontend_detail_tabs_description" append}
{if $sArticle.attr4}
<a class="tab--link" title="{s name='NewTabsDescription'}{/s}" href="#">{s name='NewTabsDescription'}{/s}</a>
{/if}
{if $sArticle.attr5}
<a class="tab--link" title="{s name='Tab2TabsDescription'}{/s}" href="#">{s name='Tab2TabsDescription'}{/s}</a>
{/if}
You can’t perform that action at this time.