Magento Forum

   
Page 1 of 2
Making new module from magento ? 
 
alkarim
Guru
 
Total Posts:  368
Joined:  2008-04-10
 

hi bro, I’m wondering how to make new module from magento ?

I need to change shipping module of magento.... where I can find them....

thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
lotusseedsD
Mentor
 
Avatar
Total Posts:  1144
Joined:  2007-08-31
 
alkarim - 20 May 2008 10:10 PM

hi bro, I’m wondering how to make new module from magento ?

I need to change shipping module of magento.... where I can find them....

thanks

There is a tutorial in the WIKI.

 
Magento Community Magento Community
Magento Community
Magento Community
 
alkarim
Guru
 
Total Posts:  368
Joined:  2008-04-10
 

thanks, nice catch

 
Magento Community Magento Community
Magento Community
Magento Community
 
alkarim
Guru
 
Total Posts:  368
Joined:  2008-04-10
 

hi again… I’ve wrote the code that is given on WIKI....

at backend, is Okay… but somehow at frontend is not show. Is anyone ever try this before ? thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
alkarim
Guru
 
Total Posts:  368
Joined:  2008-04-10
 

hello, I’ve got the problem here… that the module doesn’t appear at frontend.. is anybody does the shipping module before ? help me… thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
alkarim
Guru
 
Total Posts:  368
Joined:  2008-04-10
 

hi, I need to crate very simple shipping method like flat rate shipping module, could anybody give me some advice or tutorial about what should I do, or what the file should I create in what folder....

because at magento WIKI , I got the problem that can not appear at frontend…

thanks for anything..

 
Magento Community Magento Community
Magento Community
Magento Community
 
lotusseedsD
Mentor
 
Avatar
Total Posts:  1144
Joined:  2007-08-31
 

Hi Alkarim, for flat rate shipping, I think a better option is using table rates CVS.  There is a tutorial in the Knowledge Base I think.

I see that the shipping module is good for FedEx, UPS and other countries’ shipping carriers, so if you don’t let your customers choose which shipping carrier to use, then table rate setup works better. Anyway, this is what I thought it should be smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
alkarim
Guru
 
Total Posts:  368
Joined:  2008-04-10
 

thanks chinesedream for your suggestion but we actually have our own shipping method, so we need to make our own shipping method…

Hm, I try it first,… thanks anyway.....

 
Magento Community Magento Community
Magento Community
Magento Community
 
alkarim
Guru
 
Total Posts:  368
Joined:  2008-04-10
 

hi chinesedream, i need to make 3 shipping method : standard shipping , 2 days shipping, and next day shipping. Can I just use table rates ?

because at table rates => condition, doesn’t have => shipping_day VS price,

what is your suggestion ? thanks again

one more thing, actually I need shipping method like this :

shipping---------------------------------weight ------------------------------------
- standard shipping : $1 --------------0------------------------------------------
- 2 days shipping : $2 --------------- 0 -------------------------------------------
- next_day shipping : $3 ------------- >20 (charge $1 per pound)---------

any idea ? thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
lotusseedsD
Mentor
 
Avatar
Total Posts:  1144
Joined:  2007-08-31
 

Hi Alkarim,

I thought I knew the answer, but after spending last two hours trying to setup my flat rate shipping table rate, I couldn’t get it to work either. Sorry about that!

I had the USPS and FedEx shipping rates setup properly last month, but client had a change of heart, he wanted flat rates shipping for each shipping option (standard ground/first class; 3rd days/USPS priority, express), and he doesn’t want customer to choose which carrier to use, however he isn’t decide pricing for those options yet, as a result I have not worked on it, but I thought it’s a piece of cake since I got the USPS and FedEx shipping rate working properly.

Now I am as worried as you because the site will be launch soon.

So I paid a visit to the User guide: http://www.magentocommerce.com/wiki/welcome_to_the_magento_user_s_guide/chapter_4#shipping_methods
It’s not very flexible, as shipping method only work with Carriers enabled.

This won’t work for me, and I am afraid it won’t work for many people, because as my client put it, “there are benefit to not let customers choose which carrier to use when I offer flat rate shipping. For instance, if a customer chooses a third day shipping and she is in the same state, then the USPS priority is more economic for me that FedEx 2nd or third day shipping; and if a customer chooses a free shipping and is from the East Cost, then USPS priority is more economical for me to ship, but if he is from the same state, a FedEx Ground is cheaper as it takes about the same days for the package to arrive “.

With the gas price soaring, store owner needs to watch over the cost of shipping when they offer free shipping. I understand my client does not want to have the customer pick the carrier.

I just paid a visit to Amazon, and as I remember it correctly, it doesn’t offer which carrier but shipping method only. We need this please Magento team, we need this be easily setup in the flat rate shipping option in the admin. Please show us how to set it up before the next release?

Image Attachments
cc.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
alkarim
Guru
 
Total Posts:  368
Joined:  2008-04-10
 

yes, that is what I need… Hm, I’ve done using flat_rate and table_rate combination…

- Standard Shipping use Flat_rate
- Expedited Shipping use Table_rate

But I need One more.... So , I just create another Table_rate but I failed.... yet I need to know if Table rate or Flat rate could be possible use more than 1 option ....

I just try to find it out… but still confusing me…

 
Magento Community Magento Community
Magento Community
Magento Community
 
lotusseedsD
Mentor
 
Avatar
Total Posts:  1144
Joined:  2007-08-31
 

Hi alkarim, where are you located?

I ask this as I have figured a way to make it work (not pretty though) however it maybe just a workaround for US stores.

Since I already have the USPS account setup, so I come out with these:

1) Priority Flat Rate box (3 - 4 days to all states) as 3rd day shipping (This option will shows $9.80 I think, but if you need to charge more, you can add a handling fee)
2) Table Rate for Overnight Express (Can be FedEx Overnight or USPS Express)
3) Flat Rate for Standard Ground Shipping (this one likely will use FedEx Ground but client doesn’t want the rate pulled from FedEx database.
4) Free shipping for order of $XX

I guess I can select one more Express Mail option from the USPS for 2 days shipping option.
In the ‘title’ under USPS, I changed it to ‘3 - 4 days’ shipping instead of the standard United State Postal Service

For Table Rates, I use # of item vs destination, so my csv looks like this:
Country Region/State Zip/Postal Code flat rate # of Items (and above) Shipping Price
USA * * 2 24.99
USA * * 3 26.50
USA * * 5 28.99

Then in the product page, I have a ‘View Shipping Rate & Delivery Info’
You can see my example here:
http://74.52.59.43/bluetooth-accessories/jawbone-headset-black.html

They are not accurate as I haven’t received the final flat rates/methods from client.
Hope this helps!

 
Magento Community Magento Community
Magento Community
Magento Community
 
lotusseedsD
Mentor
 
Avatar
Total Posts:  1144
Joined:  2007-08-31
 

Hmmm, there is a technical difficulty to calculate Flat Rate Shipping. For instance,

1 - 2 items - $6.99
add extra $1.50 for every 1 - 2 additional items,

so for 3-4 items flat rate shipping will be $8.49

I’d been playing with the combination of per order vs per item with fixed and percentage, but can’t get anything close.
The per item is better but it double the base price ($6.99) when 2 products are in the cart.

Can people who have the shop up and running or have a vast experience building all kind of eCommerce shops share the wisdom of calculating/deciding flat rate shipping - I do not believe I am the only one needing this type of shipping configuration.

 
Magento Community Magento Community
Magento Community
Magento Community
 
alkarim
Guru
 
Total Posts:  368
Joined:  2008-04-10
 

hi @chinesedream, we work for client at US and he just need custom shipping method that I’ve mention above.

How do you make ‘Priority Flat Rate box ‘ ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
alkarim
Guru
 
Total Posts:  368
Joined:  2008-04-10
 

hi there, I’ve make a little movement by edit the source code to get what we want…

this is what I changed at app/code/core/Mage/Shipping/Model/Carrier/Flatrate.php

if ($shippingPrice{
            $method 
Mage::getModel('shipping/rate_result_method');

            
$method->setCarrier('flatrate');
            
$method->setCarrierTitle($this->getConfigData('title'));

            
$method->setMethod('flatrate');
            
$method->setMethodTitle($this->getConfigData('name'));

            
$method->setPrice($shippingPrice);
            
$method->setCost($shippingPrice);
            
            
$result->append($method);

            
// 2-Day Business Shipping
            
$hw2days Mage::getModel('shipping/rate_result_method');
            
            
$hw2days->setCarrier('flatrate');
            
$hw2days->setCarrierTitle($this->getConfigData('title'));

            
$hw2days->setMethod('2 Day Business Shipping');
            
$hw2days->setMethodTitle('2 Day Business Shipping');

            
$hw2days->setPrice(12.95);
            
$hw2days->setCost(12.95);

            
$result->append($hw2days);

            
// next-Day Business Shipping
            
$hwNextdays Mage::getModel('shipping/rate_result_method');
            
            
$hwNextdays->setCarrier('flatrate');
            
$hwNextdays->setCarrierTitle($this->getConfigData('title'));

            
$hwNextdays->setMethod('Next Day Business Shipping');
            
$hwNextdays->setMethodTitle('Next Day Business Shipping');

            
$hwNextdays->setPrice(29.95);
            
$hwNextdays->setCost(29.95);

            
$result->append($hwNextdays);
And this will become static (uncustomizeable) data of the Shipping Module

Still in develop.... Hope this would help others

 
Magento Community Magento Community
Magento Community
Magento Community
 
pengo
Jr. Member
 
Total Posts:  4
Joined:  2008-05-29
 

Hi @alkarim, I’m trying to do the same than you, but I’ve a problem when I try to checkout.

I’ve 3 shipping options with differents rates, but when I select one of there (in checkout process), always take the first one in the next step.

This is my code, I hope you can help me.

This is the \app\code\core\Mage\Shipping\Model\Carrier\flatrate2.php

$result Mage::getModel('shipping/rate_result');
            
        for(
$i 1$i <= 3$i++)
        
{
            $shippingPrice 
$this->getConfigData('price'.$i);
            
            if(
$shippingPrice)
            
{                
                $method 
Mage::getModel('shipping/rate_result_method');
                
$method->setCarrier('flatrate2');
                
$method->setCarrierTitle($this->getConfigData('title'));
                
$method->setMethod('flatrate2');
                
$method->setMethodTitle($this->getConfigData('name'.$i));
                
$method->setPrice($shippingPrice);
                
$method->setCost($shippingPrice);
                
                
$result->append($method);
            
}
        }
        
        
return $result;

The config.xml file.

...
<
carriers>
...
       <
flatrate2>
                <
active>1</active>
                <
sallowspecific>0</sallowspecific>
                <
model>shipping/carrier_flatrate2</model>
                <
name>Fixed</name>
                <
price>5.00</price>
                <
title>Flat Rate 2</title>
                <
type>I</type>
                <
specificerrmsg>This shipping method is currently unavailable. If you would like to ship using this shipping methodplease contact us.</specificerrmsg>
                <
handling_type>F</handling_type>
        </
flatrate2>
...
</
carriers>
...

continue on next post

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 1 of 2