Magento World

As a Magento parner, we are very honoured to offer you the best Magento Extensions, Magento Modules, Magento Themes and Magento Templates. You will get full support until you feel satisfied! View our Magento page to find what you need!
Hiển thị các bài đăng có nhãn Shipping. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn Shipping. Hiển thị tất cả bài đăng

Thứ Sáu, 23 tháng 3, 2012

Shipping Tax in Subtotal Bug 1.5

There’s a strange bug that exists in version 1.5 of Magento that not a lot of people would have noticed – basically when you have an order and you to invoice it – you will see a subtle change in the subtotal. This only happens when you have your tax settings set to display everything including and excluding tax.

As you can see the shipping tax gets added onto the subtotal.

Now within Magento 1.6 they have fixed this – and I’ve isolated the problem to possibly just the one function. So it might be possible to replace a few lines of code in your 1.5 core files.

Open up your app>code>core>Mage>Sales>Model>Order>Invoice>Total>Subtotal.php

look for the following lines starting at around 62 and replace so it looks like this:

$allowedSubtotal = $order->getSubtotal() - $order->getSubtotalInvoiced();$baseAllowedSubtotal = $order->getBaseSubtotal() -$order->getBaseSubtotalInvoiced();$allowedSubtotalInclTax = $allowedSubtotal + $order->getHiddenTaxAmount()+ $order->getTaxAmount() - $order->getTaxInvoiced() - $order->getShippingTaxAmount();$baseAllowedSubtotalInclTax = $baseAllowedSubtotal + $order->getBaseHiddenTaxAmount()+ $order->getBaseTaxAmount() - $order->getBaseTaxInvoiced() - $order->getBaseShippingTaxAmount();

As you can tell – the shipping gets deducted from the subtotal amount. As this is a bug I’d say update the core files as it shouldn’t have been broken any way :) .

Thanks for visiting the Magento Blog here at e-commerce web design, home of the Magento Fox!

Robert Kent Author Page


View the original article here

Thứ Năm, 22 tháng 3, 2012

New Extension: Free Shipping Incentive

Another Magento extension for you now – this one is pretty simple.

http://www.magentocommerce.com/magento-connect/EcommerceWD/extension/7889/creare_freeshippingincentive

Basically if you have free shipping enabled and a minimum shipping amount to qualify (say £25 or so) then you will see a new box appear at the top of your right/left column.

Something like this:

As you can see from the above image, the incentive changes depending on the quantity in your cart. The styling is easy to change as it is located in the template/freeshippingincentive/freeshippingincentive.phtml file.

To install simply download this file and upload the contents to your app folder. To check it is working make sure you have the following set up:

1. left or right bar is enabled and you have selected which to display the block in your layout/freeshippingincentive.xml file.

2. Free shipping is enabled

3. Minimum amount in cart for free shipping is set and is greater than 0.

As long as all 3 of the above are met your new block should appear!

This extension has been tried and tested in version 1.5.0.1 but may work on other versions however I have yet to test. You’ll also find this extension very soon on Magento Connect – as long as they get their upload feature working that is!

http://www.magentocommerce.com/magento-connect/EcommerceWD/extension/7889/creare_freeshippingincentive

(working now)

Any problems with it let me know and I’ll fix as soon as possible!

Thanks for visiting the Magento blog here at e-commerce web design, home of the Magento Fox!

Robert Kent Author Page


View the original article here