Shell Commands Cheat Sheet

Find files modified within last 10 minutes [crayon]find . -type f -mmin -10 -exec ls -al {} \;[/crayon] Find files modified within last 24 hours [crayon]find . -type f -mtime -1 -exec ls -al {} \;[/crayon] Run Siege Benchmark [crayon]siege -c10 -b -i -t15s http://www.yourstore.ch[/crayon] Convert multiple PSD files to JPG with ImageMagick [crayon]mogrify -format jpg […]

Read More

Datatrans Test Credit Cards

From Technical Implementation Guide 7.4. Test credit cards Card type Card number Exp. Date CVV Test rule Visa 4242424242424242 12/2021 123 With limit Visa 4900000000000003 12/2021 123 Without limit Mastercard 5404000000000001 12/2021 123 With limit Mastercard 5200000000000007 12/2021 123 Without limit Amex 375811111111115 12/2021 1234 With limit Amex 375000000000007 12/2021 1234 Without limit Diners 36168002586009 […]

Read More

Magento Multi Store Setup

In order to configure a multi store with different domains or sub domains  you need to follow these steps: Create store categories (Magento admin) Those can be either shared between the different domains or you can set up separate root category trees for each domain Go to Catalog -> Categories -> Manage Categories Store configuration […]

Read More

Magento Static Blocks in CMS Pages

You can add a static block to a CMS page by using the tag [crayon]{{block type=»cms/block» block_id=»home-page-promo»}} {{block type=»cms/block» block_id=»your_block_identifier» template=»cms/content.phtml»}}[/crayon] This is useful on Landing Pages, where the content of the page is determined via an HTML text field. If you want to add a static block to a .phtml file, use this code […]

Read More

Frequently Used Magento Connect Extension Keys

Der komplette Extension Key für Magento Connect 2.0 besteht aus dieser Basis URL http://connect20.magentocommerce.com/community/ und dem Extension Key. Locales/Language Packs German_LocalePack_de_CH Locale_Mage_community_de_DE Locale_Mage_community_fr_FR Locale_Mage_community_es_ES Locale_Mage_community_it_IT Für das Schweizer Sprachpaket wäre also der vollständige Extension Key: http://connect20.magentocommerce.com/community/German_LocalePack_de_CH Payment PostFinance BankPayment (Vorkasse) Shipping magento-community/Tarqis_Swisspost Themes magento-core/Interface_Frontend_Default_Modern magento-core/Interface_Frontend_Default_Iphone Misc magento-core/Mage_Compiler magento-community/CLS_ThemeEmails (Upgrade Proof E-Mail Templates) magento-community/Mxperts_CustomerAddress (Change default […]

Read More

Saferpay Testkarten

Nur mit dem Test Account bzw. im Testmodus kann mit diesen Karten eine erfolgreiche Zahlung simuliert werden. Im Livemodus erzeugen die Testkarten eine Ablehung! Unter folgendem Link gibt es die aktuellen Testkarten von Saferpay. CVV Code: 123 Expiry date: beliebig, irgendein Datum in der Zukunft Name: beliebig

Read More

Google Analytics Funnel Visualization for Magento Default Checkout

Find the file opcheckout.js, it should be in your ’skin/{interface}/{theme}/js/’ directory. Open it and look for: [crayon lang=»php»]gotoSection: function(section) { section = $(‹opc-‹+section); section.addClassName(‹allow›); this.accordion.openSection(section); }, [/crayon] Replace with: [crayon lang=»php»]gotoSection: function(section) { section = $(‹opc-‹+section); try { pageTracker._trackPageview(‹/checkout/› + section + ‹/›); } catch(err) {} section.addClassName(‹allow›); this.accordion.openSection(section); },[/crayon] Open your Google Analytics and add […]

Read More

TinyMCE Konfiguration

Unter extended_valid_elements muss folgendes ergänzt werden: map.search.ch erlauben script[type|src] iFrame erlauben iframe[width|height|frameborder|scrolling|marginheight|marginwidth|src] Facebook Widget erlauben fb:fan[profile_id|stream|connections|width] Image Map erlauben Look for extended_valid_elements param Add usemap attribute to img tag Add map[name|id],area[shape|coords|href|alt] at the end of the line

Read More

Dateirechte ändern

WordPress [crayon] cd path/to/wordpress find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; chmod 660 wp-config.php chmod 664 .htaccess find wp-content -type d -exec chmod 775 {} \; find wp-content -type f -exec chmod 664 {} \; [/crayon] osCommerce [crayon] find htdocs/ -type f -exec chmod 660 {} […]

Read More