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 to see only 4 products in the product list. Today I will show you how to display only visible/active products in your Magento theme’s category product count.
Within this category I will regularly post snippets of PHP that might come in handy with the development of your own (Wordpress) site. Subscribe to my newsletter to receive weekly updates with the latest tips & trics in PHP and other coding languages.
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 for usage anywhere within your store’s template.
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 bunch of options you don’t need. Well, to hell with code-bloat! I want your site to be fast. Today I’m going to show you a really simple way to add your own social share buttons to your WordPress blog.