Laravel 5 socialite with Facebook integration

Would you like to offer a Facebook login functionality next to a regular e-mail based login? This is a tutorial to achieve that with Laravel 5 and the Socialite plugin. This tutorial is based on Matt Stauffer’s tutorial. First of all pull in Laravel Socialite via composer: composer require laravel/socialite Create the users and password_remember […]

Laravel 5 socialite with Facebook integration Read More »

Validating meta title and meta description with jQuery

Would you like to auto-display validation hints when a meta_title field is longer than 55 chars and a meta_description field is longer than 155 chars? Then you can use this package: jQuery Meta Title and Description Validation. Setup 1. Have at least one input field named meta_title or meta_description E.g. 2. Initialize by including jquery-meta-validation.js

Validating meta title and meta description with jQuery Read More »

Magento sales transactional email – highlight if billing address equals shipping address

Insert this code on the desired place in the .html transactional email (deepter in the locale folder): {{block type=’core/template’ area=’frontend’ template=’email/shippingcheck.phtml’ order=$order}} Then create the file in the template you’re using (app/design/frontend/default/default/template/email/shippingcheck.phtml) for example. Insert the following content:

Magento sales transactional email – highlight if billing address equals shipping address Read More »

Backup Ubuntu site / Laravel Forge server with Tarsnap

Would you like to backup your Ubuntu server with Tarsnap and also backup your Mysql database? Then follow this steps: Install Tarsnap 1. Install dependencies sudo apt-get install build-essential ext2fs-dev zlib1g-dev libssl-dev 2. Install Tarsnap Download Tarsnap with this wget: wget –no-check-certificate https://www.tarsnap.com/download/tarsnap-autoconf-1.0.35.tgz Now we need to extract, configure, and compile Tarsnap. tar xfz tarsnap-autoconf-1.0.35.tgz

Backup Ubuntu site / Laravel Forge server with Tarsnap Read More »

Laravel 5: simple multi-tenant/multi-site model setup (many-to-many relation covered as well)

Laravel 5 is a brand new version of the popular framework. Unfortunately, there are no good multi-tenant setups for Laravel 5 yet. That’s why I’d decided to create my own simple version as well, based on Eloquent Global Scopes. In my case I wanted a sites table, with categories that have a many to many

Laravel 5: simple multi-tenant/multi-site model setup (many-to-many relation covered as well) Read More »

Magento remove images of deleted products

Clean up not used Magento images Magento unfortunately does not remove images of a product unfortunately if the product is removed. The following script checks all the images and checks if it’s still present in the database of Magento. If not, it deletes the image. Use the following code: Clean up Magento space: could save

Magento remove images of deleted products Read More »

Load normal product price instead of indexed product price

Would you like to ignore the indexed product price in the templates (for example in catalog/product/list.phtml where the indexed price is used)? Then go to: catalog/product/list.phtml Change: With: There are two occurrences in list.phtml, so don’t forget to replace it twice. Only do this when it’s the only solution of displaying right prices, since loading

Load normal product price instead of indexed product price Read More »

Magento Contact Form Attachment Functionality

Would you like to have attachments in your contact form in Magento? Do the following: Clone the zip of this github: https://github.com/yogisfunda/magento-contact-form-attachment Upload (merge) the files into the public_html directory Recompile/flush cache Go to your-site.com/contacts If the form does not changes or there’s a blank page, move the contents of the frontend/default part to frontend/base. You

Magento Contact Form Attachment Functionality Read More »

Magento admin category tree shows no sub categories

Ever had that the category tree does not show specific subcategories that are present though? Than follow these steps: 1. Make a backup for if anything goes wrong (running all the steps is on your own risk of course). 2. Run this query SELECT c.entity_id, c.children_count as original_children_count, COUNT(c2.children_count) as `children_count`, c.level as original_level, (LENGTH(c.path)-LENGTH(REPLACE(c.path,’/’,”))) as

Magento admin category tree shows no sub categories Read More »

en_USEnglish
Scroll to Top