Uncategorized

Setting up CircleCI Continuous Integration with Laravel – Then deploy Forge or Fortrabbit

Including Continuous Integration is great, but there are many providers to choose from. CircleCI has a pretty decent free plan, but using it for your Laravel app might be a bit confusing. Instructions for deploying Laravel 5.5 with Circle CI: This site has a nice boilerplate script: https://medium.com/@wesmahler/circleci-2-0-configuration-for-laravel-5-5-with-laravel-dusk-ab1cc9b9d4a7 But if you found a better script, […]

Setting up CircleCI Continuous Integration with Laravel – Then deploy Forge or Fortrabbit Read More »

Laravel Add List-Unsubscribe Header to Mail (e.g. Mailgun & Hotmail)

When using e.g. Mailgun for Laravel Mail, sometimes it could happen that mails end up in spamfolders. One of the reasons for this is that default a List-Unsubscribe header is not set. That is a link that you send to your unsubscribe mail. Add this code in you mail closure: $message->getSwiftMessage() ->getHeaders() ->addTextHeader(‘List-Unsubscribe’, ”); So

Laravel Add List-Unsubscribe Header to Mail (e.g. Mailgun & Hotmail) 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 »

SSH import sql database with host syntax (if not localhost)

How to import a .sql.gz file when the host is not localhost? Use this syntax: $ mysql -h db365838511.db.1and1.com -u dbun1234 -p db365838511 < 1and1help.com-Joomla-Apr.05.2010.sql Explanation: mysql: This is the MySQL command to access your databases -h db365838511.db.1and1.com: This is the Host Name where your database is located (available from the 1&1 Control Panel). -u

SSH import sql database with host syntax (if not localhost) Read More »

Magento Show Poll Results

Add this code in order to show the poll results in de poll block (using this article): In addition for the result add in poll.phtml: if ($poll->isVoted($poll->getId()) == TRUE) { //Template Block echo $this->getLayout()->createBlock(‘core/template’)->setTemplate(‘poll/result.phtml’)->setAttribute(‘my_poll_id’, $poll->getId())->toHtml(); } else { // add the rest of the poll script here } Further open results.phtml and add on top:

Magento Show Poll Results Read More »

Magento import multiple images in dataflow csv/xml

Sometimes it’s really annoying that Magento only supports one image per product. On the Magento Commerce forum a solution is found: Now, what you need to do is open the file app/code/core/Mage/Catalog/Model/Convert/Adapter/Product.php and go to around line 773 and find $addedFilesCorrespondence = $mediaGalleryBackendModel->addImagesWithDifferentMediaAttributes( $product, $arrayToMassAdd, Mage::getBaseDir(‘media’) . DS . ‘import’, false, false ); and paste the following code right after it if (isset($importData[‘media_gallery’]) && !empty($importData[‘media_gallery’])) {

Magento import multiple images in dataflow csv/xml Read More »

Magento place order slow [FIXED]

The Magento “place order” step can take up to a minute. With thanks to this site I figured out how to fix slow checkouts. Step 1 Find the file app/code/core/Mage/Rss/etc/config.xml and uncomment/remove: <sales_order_save_after> <observers> <notifystock> <class>rss/observer</class> <method>salesOrderItemSaveAfterNotifyStock</method> </notifystock> </observers> </sales_order_save_after> <sales_order_save_after> <observers> <ordernew> <class>rss/observer</class> <method>salesOrderItemSaveAfterOrderNew</method> </ordernew> </observers> </sales_order_save_after> Step 2 Find the file app/code/core/Mage/Downloadable/etc/config.xml and uncomment/remove: <!–sales_order_item_save_commit_after> <observers>

Magento place order slow [FIXED] Read More »

Scroll to Top