How to show only Visible/Active Products in Product Count
|

How to show only Visible/Active Products in Product Count

Magento’s integrated function getProductCount() also counts invisible/inactive products. If your theme displays product counts next to each category (e.g. in the top menu or category blocks), this can be very confusing for your customer. If your category product count shows 10 products, but 6 are set to invisible. Your customer wil end up very disappointed…

Return total number of items in Cart
|

Return total number of items in Cart

Sometimes you run into tiny idiosyncracies in Magento templates. It makes you question many things. Such as: why would a theme developer choose to only show the total amount of different types of products in the minicart.phtml? Today I’m showing you different ways to return the total amount of items in your customer’s shopping cart…

How to add Social Share Buttons to WordPress without Plugins
| |

How to add Social Share Buttons to WordPress without Plugins

There are plenty of plugins for WordPress that allow you to add social share buttons to your Posts and Pages. Usually, these plugins are bloated. They require a lot of CSS-overrides to make it fit with your theme’s design. Some even slow your site down, because they’re not coded well or are packed with a…

Redirect Simple Products to Configurable Parents with Options Preselected
| |

Redirect Simple Products to Configurable Parents with Options Preselected

Recently I met quite a challenge while building an extension for Magento. By default, the urls of simple child products whom belong to a configurable parent are answered with a 404. This behaviour can be easily overridden with a small extension. Our client wanted to take it a step further. Today we will build an…

Get Total Price of Cart Including/Excluding VAT/Tax in Magento Minicart Widget

Get Total Price of Cart Including/Excluding VAT/Tax in Magento Minicart Widget

A quick post here, which is more of a note to myself, because I’ve just spent one hour digging through methods for this. If you want to display the total price including or excluding VAT in Magento, using strictly methods already integrated in Magento, use the below code to call these in a pre-formatted way….

How to get a 100/100 Score on Pingdom & Google Pagespeed Insights
|

How to get a 100/100 Score on Pingdom & Google Pagespeed Insights

Choosing the right host to serve your website can be such a pain. If you’re a small business owner or a startup, you usually don’t have the funds to invest in “fancy” WordPress-hosting. Luckily this doesn’t mean you’re site has to load sluggish. With the right tools you can give these “fancy” WordPress-hosts using Varnish…