Shopware: Define custom variables

With the following code-snippet you can define your own variables in your template-file. The only thing you need, is the Smarty-Tag {assign}. In this example I want to save in my custom variable „hasSubmenu“ if the current category has subcategories or not. {foreach $sMainCategories as $sCategory} {if !$sCategory.hideTop} {if $sCategory.flag} …

FirstSpirit: Execute Script with Menu-Item

In FirstSpirit there are different variants of executing your script/module Right-Click-Item on a file (Run Script->Choose Script) Menu-Item (Extras->Run Script->Choose Script) Toolbar-Item …

CSS: Hide IOS/Apple Button-Style

Do you know the default button style from apple devices? It’s not looking bad, but sometimes you want your own style, also …

JS: Samsung Galaxy S3 Remove-Bug

Before a few days I had a problem with the Samsung Galaxy S3. I used the „remove()“ function to remove some HTML-Elements …

JS: Create Key-Maps

In some cases it’s not enough to use Arrays because in an array you have your index (which is from 0 to …

jQuery: Scroll to Top

If you want a Scroll-To-Top function you can do this very simple with jQuery, so this blog entry will be a very …