Engine23

Development

How to Create and Use Your Own Custom Font Icons for Web

Easily make your own icon fonts through a few simple steps

When you have finished creating your icons, export each one to its own separate SVG file.

The process is pretty simple, but it could be really confusing if you’re just starting out. Here’s a quick synopsis: You start by creating your own set of icons as SVGs using your favorite vector-editing software, and then you import your SVGs to the coveted Icomoon App! I’ll even show you a couple of different ways. Let’s get started.

Read more

10 eCommerce Experts Give Their Secrets on How They Optimized Their Business in [2016]

Insider trading may be illegal. But sharing optimization secrets is a no holds barred tactic that we here at Engine23 are exploiting.

We know the stress you go through trying to find the right solutions to help you achieve your company's growth goals. So we did a little reconnaissance for you and found ideas that you can take to your next brainstorming session.

We asked eCommerce experts “What were the three most impactful changes you made to your business in the last year?”

Find out what business lessons the eCommerce experts spilled in their responses..

Read more

Magento - How to add to the topMenu using xml

When looking at the template files for Magneto, things can seem very confusing.  Especially when your talking about the navigation.  For example if you try to add a menu option to the top menu, you would expect to find an array or some sort of call to the database.  However, in app/design/frontend/default/YOURTHEME/template/page/html/header.phtml there is only a php code <?php echo $this->getChildHtml('topMenu') ?>.

Unless your savvy enough to understand whats happening, that is a reference to some xml.  This xml is what sets the values for that menu. 

So, how are we supposed to add things to that menu?  There are lots of bad advise out there saying you can just write your own, or get that list of values and hard code your own...but its so much easier than all of that.

The best way is to create or edit your local.xml

Read more

Magento - Fixing Database server does not support the InnoDB storage engine

Magento version 1.7 and up seem to have an issue with MySQL version 5.6 in determining if InnoDB is available. 

To fix this issue, you need to modify an install file ( and yes its in the core! ).  So do not yell at me for editing a core file, its only executed on a new installation! 

The file in question is:

app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php

We need to modify a function to allow for the install to take place:

 

Find the existing code that we need to change:

Read more

Magento - get the rating

How to get the rating of a product using the review id

$ratingCollection = Mage::getModel('rating/rating_option_vote')->
getResourceCollection()->
setReviewFilter($review->getId())->
setStoreFilter(Mage::app()->getStore()->getId())->
addRatingInfo(Mage::app()->
getStore()->
getId())->
load()->
getItems();
$ratings = array(); foreach($ratingCollection as $item){ $ratings[]=$item->getValue(); }

Magento - get the rating of product using review id

How to get the rating of a product using the review id

$ratingCollection = Mage::getModel('rating/rating_option_vote') ->getResourceCollection() ->setReviewFilter($review->getId()) ->setStoreFilter(Mage::app()->getStore()->getId()) ->addRatingInfo(Mage::app()->getStore()->getId()) ->load() ->getItems(); $ratings = array(); foreach($ratingCollection as $item){ $ratings[]=$item->getValue(); }

Server emails and forwarding to outside email address

If you have a server that is sending emails, and you are curious when emails "bounce" and where do they go? Well, you can have them forward to an another email account. Via command line you need to edit /etc/aliases and change the section at the bottom to wherever you want it to go, here is an example of this page: At the very bottom I changed to: # trap decode to catch security attacks decode: root # Person who should get root's mail #root: russell root: whatever@company.com backup: usersnamegoeshere

Magento - get the total value in dollars for reward points

When designing a page in magento and you want to display the Reward Dollars for a customer by using their id number here is how:

$customer = Mage::getModel('customer/customer')->load($customer_id);
 $balance = Mage::getModel('enterprise_reward/reward')
 ->setCustomer($customer)
 ->setWebsiteId(Mage::app()->getWebsite()->getId())
 ->loadByCustomer()
 ->getCurrencyAmount();

Magento - Show reward balance using the user id

When designing a page in magento and you want to display the Reward Dollars for a customer by using their id number here is how:

$customer = Mage::getModel('customer/customer')->load($customer_id);
 $balance = Mage::getModel('enterprise_reward/reward')
 ->setCustomer($customer)
 ->setWebsiteId(Mage::app()->getWebsite()->getId())
 ->loadByCustomer()
 ->getCurrencyAmount();