Getting Ngix to work with OS X server can be kind of tricky and in this tutorial I will go over how to set it up so Nginx will be a reverse proxy for your OS X Server Apache and Node.js applications. Most people will recommend that you just switch to Nginx for your php applications instead of Apache but if you are like me everything is setup to run through apache so I say let it continue to run on Apache.
READ MORE »
Installing Nginx with OS X Server 10.8 Mountain Lion
Parent Child Theming in Yii
I recently had a project that we were doing in Yii and we had the issue where we had multiple websites pointing to the same Yii installation and we needed to make minor changes but because of the way theming worked we had to maintain multiple of the same theme just with some slight modifications. As you can tell any changes made to one need to be made to the others and at one point we had 15 different themes. I thought to myself about how WordPress allows you to have parent and child theming and that were i borrowed the flow for our sites.
READ MORE »
How to Create a jQuery Extendable Plugin
In this post I am going to go over how to setup your plugins so they can be easily extended to add future features without compromising the original plugin. It’s actually pretty easy to do but there doesn’t seem to be a lot of info on it. Now I will assume you know the basics of setting up a jQuery plugin. If you don’t go read the jQuery docs here and then come back.
READ MORE »
The Best WordPress Starter Theme
It’s been a while since I have posted anything. Things have been busy at work as well as starting to put together some basic IOS tutorials to fill in some of the gaps and the experiences I have been having with IOS but I recently had to build a Wordpress site for a client of mine and I noticed I always started from scratch myself. I realized how much of a time suck this is for me and decided to do some research and find the best starter theme.
The requirements for the theme were the following
- Could not be a framework – I was looking for something simple and i didn’t want to have somebody else’s structure that did not fit what I was trying to do.
- HTML5 – I figured if I was looking for something it might as well be the latest
- Has a basic functions.php file already setup – Adds all the basics like menus and features like that, that I would typically have to do myself
- Little to no html in the files – I didn’t want to have to take somebody else’s html and make it look the way I needed it to look for the project
After doing some searching and trying many different ones I finally came across html5blank. This was perfect and fit everything I needed. I saved many many hours with this because I do not do WordPress sites very often anymore and I always have to go re-lookup the basic structure and all of the things that need to go into the functions.php file.
You can grab the latest version and play with it yourself by clicking here or go check out there website here.
If you have any other suggestions please leave me a comment with a link and I will check it out.
Magento – Ajax Add to Cart from Product Page Using jQuery
This is just going to be a quick snippet. One thing I get asked a lot is how to add a product to the cart using ajax and its actually quite easy to do. Now I’m not going to go over how to use jQuery with Magento because there are plenty of tutorials on how to do that. I am going to assume you have jQuery setup in Magento.
<script type="text/javascript">
(function($)
{
$(document).ready(function()
{
// Setup the click event
$('#product_addtocart_form').submit(addToCart);
});
function addToCart(e)
{
e.preventDefault();
// Here You Should Validate Your Information.
// For example if you have options that need to be selected like shirt size
// Now get the forms data
var formData = $('#product_addtocart_form').serialize();
// Now because we are adding the cart through ajax you need to add this so the controller knows that it is ajax and can pass back json if there is an error
formData += '&isAjax=1';
// Send the form data over
$.ajax({
url:$('#product_addtocart_form').attr('action'),
type:'POST',
data:formData,
dataType:'json',
success:function(data)
{
// Do what you want. You have added a product to your cart
// I Like to show my persistant cart popup here
}
});
}
})(jQuery);
</script>
Magento Server Setup
One thing that has been the topic of discussion lately is what type of server works best for Magento. The to this is that there is no one solution but there are a few things that can help. Especially when it comes to multi store setups.
READ MORE »
Magento 2
So lately I have been doing a lot of work in Magento and I feel it’s been a while since anyone has mentioned Magento 2. It has been mentioned that it will be launching late this year which is great but what I bet a lot of people do not know is that you can start playing with it now. As with Magento 1, there is a way you can checkout the community version now off of GitHub. You can grab it by going here https://github.com/magento/magento2 or clone the git repository with this link git://github.com/magento/magento2.git
READ MORE »
Coda 2 Released Today
Today at midnight Coda 2 was released along with Diet Coda for the IPad and best of all today they are 50% off which means Coda 2 is $49.99 and Diet Coda is $9.99 but it is only for today. I have been waiting a long time for this release but the wait has been worth it. Coda has been my IDE of choice ever since I switched to a Mac 5 Years ago. I have always been a fan of it’s interface and how everything is tied together. The update greatly improves on everything I loved about coda and today I am going to show you some of the features that have been added that I like.
READ MORE »
An Easy Way to Backup and or Move Magento
First of all I cant take credit for this. I came across it randomly and I thought the scripts were amazing and thought I would share them here.
READ MORE »
How to Create an Ajax Coupon / Discount Code Box in Magento
Today I am going to show you how to create an ajax coupon / discount code box for your cart page. The first thing you are going to want to do is follow this tutorial. Basically this will set you up with the new extension you are going to create. The only thing in the tutorial that you do not need to do is putting any information in the controller file. Ares is going to look a little different then theirs. READ MORE »









Recent Comments