Engine23

Development - Engine23

blogBannerImage
By Engine23

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

blogBannerImage
By Engine23

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

blogBannerImage
By Engine23

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

blogBannerImage
By Engine23

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(); }
blogBannerImage
By Engine23

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(); }
blogBannerImage
By Engine23
blogBannerImage
By Engine23

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

blogBannerImage
By Engine23

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();
blogBannerImage
By Engine23

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();
blogBannerImage
By Engine23

Magento - using the backend store configuration for custom work

If you need to use the backend settings for Magento for example the General Email, here is how you do it. This is helpful so you do not have to adjust your custom code, its all managed through the admin section of Magento.


//General Contact

$name = Mage::getStoreConfig('trans_email/ident_general/name'); //sender name

$email = Mage::getStoreConfig('trans_email/ident_general/email'); //sender email

//Sales Representative

$name = Mage::getStoreConfig('trans_email/ident_sales/name'); //sender name

$email = Mage::getStoreConfig('trans_email/ident_sales/email'); //sender email

Read more