Magento shipping charge based on specific zip code and weight range - php

I need to calculate the shipping charge based on following to criteria.
I have fixed specific pin codes available for shipment.
The weight of the product.
Condition: If the weight of the product is within 500gms then free shipping otherwise on every 500gms additional price of Rs 50 will be added as shipping charge.
Kindly guide me as to how to achieve this in magento 1.9

Please use the Google drive link for the solution of this question and first disable all other shipping methods except this shipping then it will work properly.
Download the customised code according to the requirement.
https://drive.google.com/file/d/0B5RZxA4F3j3KWmo2WUFJWXE0ejQ/view

Related

How can I add a checkbox on a product page in WooCommerce that adds a fixed fee when checked?

Here is the trouble I'm having. I'm creating a custom kitchen cabinet doors and drawers website with Woocommerce. There are a lot of variations going into the project that alters the price (Wood type, thickness etc.) per square foot. The customer also has to provide credentials (L x W) to calculate the total cost of the product. We found that using the Measurement Price Calculator plugin works the best as it also calculated the weight of the product which can be used for shipping.
However, we want to add an option (preferably checkbox) that adds a fixed fee to the product if checked. Using WooCommerce itself and having "Boring" as a variable attribute doesn't work because adding a charge here will only add to the price per square foot and will not be fixed regardless of the dimensions.
I'm not a master at PHP and have only found ways to add a surcharge in the checkout but I need the fee to be conditional to the checkbox being checked and be replicated based on quantity. If there are any functions or hooks that you think could help me please let me know.
What you are looking for is a part of WooCommerce that was separated and turned into a paid plugin called WooCommerce Product Add-Ons.
Koda

magento coupon code for free shipping

I need to generate coupon code which allow customer "Free Shipping". I have generated one with following options:
Promotions -> Shopping Cart Price Rules
All Customer Groups
Specific Coupon
Coupon Code
no condition
Free Shipping - For matching items only
I am getting all shipping methods with price $0 where I want Free Shipping option included with all shipping method with their actual price. There is setting in System -> Configuration, free shipping is available for price > 100, but I want to give free shipping option to some customers using coupon. I am getting following options:
Any suggestions?
This is the way Magento rules generally work.
To implement this change, you need to either write your own extension or get a ready-to-use solution.
E.g. our Magento shipping extension is capable of doing that: http://www.mageworx.com/shipping-suite-magento-extension.html

Creating Custom Shipping Method In Magento, Weight vs Destination and Zones?

am just switching from my e-commerce shopping basket website to a Magento implementation.
Currently we have different Shipping Zones for different countries, and the weight of the final shopping basket determines the Shipping Price for the selected country. We therefore just have one shipping method, i.e. "Standard Shipping".
What I would like to do is use the Country Code to carry out a lookup and locate the Postal Zone and use that Postal Zone to lookup/calculate the Shipping Price of the basket based on it's weight.
Have seen a few examples of Flat Rates, but not too sure if they are applicable?
I don't have the finances to buy an extension as yet.
Thank you for any help or advice,
Barton.
This extension does exactly what you need and its free.
Matrixrate
All you have to do is export the CSV file and map all your shipping methods accordingly to the location, weight and price. It also allows you to create custom free deliveries over an amount.

Adding discounts to shipping in magento

I was wondering if anyone here has ever added an automatic discount to a shipping method in magento before. FedEx is the only company I ship with, but I have 3 different methods of FedEx. I want to add a discount to 2 of the 3 methods, and display these discounts at the method selection screen automatically at checkout(to make it seem like they are getting a deal with the higher priority shipping I suppose?). I found which file displays the methods, but I don't think this is the file I need:
template/checkout/onepage/shipping_method.phtml
Does anyone know which file these are displayed in so that I can slash out the real price, and add the discounted price bellow it? I suppose I could change the shipping price by just subtracting from the variable price, correct?
I suggest this thread for adding custom discount price but its not related to any of shipping method price calculation, its might helpful, as its helped me well..
http://www.excellencemagentoblog.com/magento-add-fee-discount-order-total

Magento Free shipping and Coupon discount

I have a free shipping price rule which is configured like this:
All customer groups
No coupon
uses per customer: 0
Conditions: Cart total >= 100, Shipping country == NL or BE or DE
Free shipment: for shipment with matching items.
When I enter a coupon with a fixed discount amount however, the free shipment disappears.
Both price rules have Stop Further Rule Processing set to NO
This behaviour of Magento is driving me insane
Apparently Magento does not care about other shopping cart price rules if there is a valid coupon code entered in the Front-end.
Fix for this issue is in the comments of the following website:
http://magentoexpert.com/issue-with-cart-price-rules-coupon-code-discard-promotion-without-coupon-code/
As suggested in one of the comments it's best that you try and convert the current rule into a "Shopping Cart Price Rule".
In a Shopping Cart Price rule you can also set conditions that depend on the subtotal of the cart, the shipping region, shipping country, ...
In the action tab you can easily Free shipping option to "For shipment with matching items"
This should solve it ;)
Go through all your other rules which might be triggered as well (make sure they have "further rule processing" on "no").
Set the priority to "1"
Try again if the rule is applied and let us know.
If we are talking for Magento CE 1.9 and above, the code is corrected as long as the database is concerned but you might encounter the same problem! If so, then there is another cause.
One also usual bug is * user not being able to update the cart quantities* or users not able to login. This has to do with formKey and the answer that was given here.
Apparently, the same solution fixes the problem of vanished shipment or payment method after applying a coupon, that we are discussing here.
Hope this helps users of newer versions...
so be it - manemoi

Categories