Magento price rounding issues, wrong price displayed on grid and product view

So, we spent a while to figure out, why Magento (magento version 1.6.0) don’t show the right calculated price in some cases:

i.e. product price 119,00 is displayed as 119,01.

It’s a rounding problem in the core functions.

In this way you can fix it:

Open this file:

app/code/core/Mage/Tax/Model/Calculation.php Line 466

and change the rounding parameter:
FROM

public function calcTaxAmount($price, $taxRate, $priceIncludeTax=false, $round=true)

TO

public function calcTaxAmount($price, $taxRate, $priceIncludeTax=false, $round=false)

How can you add an order by sku option to product listing pages?

If you like store products to be displayed in SKU (ascending) order by default when looking at the category product listing pages.

Here is the How to:

You’ll need to modify the attribute on the backend.

  1. Go to Catalog >> Attributes >> Manage Attributes.
  2. Click on your SKU attribute.
  3. Under Frontend Properties (on the first screen, at the very bottom) change Used for sorting in product listing to “Yes.”
  4. Go to Catalog >> Manage Categories.
  5. Click on the category you want to sort by SKU.
  6. Click on the Display Settings tab.
  7. Under Default Product Listing Sort by, uncheck the “Use Config Settings” and then select SKU from the dropdown. (Obviously if you want this to be the default for the entire site, you can change it in System >> Configuration >> Sales >> Catalog instead.)

Sorting products

How to Disable / Remove WordPress Admin Bar

How to Disable / Remove WordPress Admin Bar

How can you disable or remove WordPress Admin bar? WordPress 3.1 has launched this obtrusive WordPress Admin Bar to help WordPress bloggers easily access common blogging tasks via an easy drop down menu.
WordPress Admin Bar

Wordpress admin bar

This is how it looks like when live on our site. I browsed around many WordPress  menus, but could eventually find a way to disable the WordPress admin bar.

Disable / Remove WordPress Admin Bar

I found the options are built in. Go to Users > Your Profile > Show Admin Bar

Admin bar

Magento SSL Settings

The private SSL certificate is an important upgrade to your website. The basic function of an SSL is to encrypt all communication between the browser and the server, ensuring that all data goes through a secure (HTTPS) connection. An SSL certificate is a necessity when you want to operate an online shop and process the sensitive customers data through your software. It helps you gain your clients’ trust and increase your web site’s search engines rank.

The certificate could be easily enabled through the Magento Admin area -> System -> Configuration -> Web. There you can define the insecure (non-SSL) and secure (SSL) URLs:

In the Base URL fields you should enter the unsecure (regular) web site URL and the web site URL for the SSL connections. You can leave the other values unchanged, as they will be set automatically by the script after you enter the Base URL. Basically the other fields define the URLs of the main Magento store page and the URLs of the skin, media and JavaScript folders. The drop-down menus allow you to enable and disable the SSL support for the web site’s frontend and backend.

Bear in mind that the SSL connection over HTTPS is slower than the HTTP, thus secured connection should be applied only to the pages that contain and process sensitive information. Also, it is recommended to run the admin interface through an SSL. In this way you will increase the security of the script’s backend.



Nice jquery slider

Here you can find a list of nice and innovative jquery slider.

Have a look @codrops

Play around and you will find one you like. Nice work.

30 Beautiful and Creative Blog Designs

30 Beautiful and Creative Blog Designs to get new impressions

Have a look @designinstruct.com

We like it!

Ideas for Landing Pages

Here are some ideas for the layout of your Landing Pages.

Read the article @kissmetrics.com

CSS background image hacks

CSS is always in development.

Background image hacks are an important way to go in the driection of the “goodlooking” web.

Have a look @nicolasgallagher.com

You will need it ;-)

Kindle Digital Text Platform starts today

Amazon’s Kindle Digital Text Platform (DTP) is no more, at least not by that name. Starting today, the self-publishing program will be known as Kindle Direct Publishing.

Have a look @kindle

The Year of The Cloud

Some good reflection and important point to think about when using software as a service (SAAS).

Think about!

Have a look @mattaboutbusiness