Author Topic: Regarding Shipping  (Read 1633 times)

sivaprakashcg

  • Jr. Member
  • **
  • Posts: 31
    • View Profile
Regarding Shipping
« on: October 10, 2007, 02:01:06 AM »
Hi,
       Is it possible to add the shipping methods to particular product .Not for all the products.


paolo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 119
    • View Profile
Re: Regarding Shipping
« Reply #1 on: October 10, 2007, 02:37:59 AM »
Absolutely. You only have to implement one method :

public ShippingQuote getQuote(Order order, ShippingInfo info)

The order is passed in as a parameter and so you know which products are being ordered and can make decisions based on that.

-Paolo

sivaprakashcg

  • Jr. Member
  • **
  • Posts: 31
    • View Profile
Re: Regarding Shipping
« Reply #2 on: October 10, 2007, 04:16:30 AM »
Thanks....
       Now i can check using getQuote method.
 
      My doubt.. How can i specify.. Particular product has specified shipping... where i have to specify....

paolo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 119
    • View Profile
Re: Regarding Shipping
« Reply #3 on: October 10, 2007, 04:19:55 AM »
You can use one of the 5 custom fields of the product object for this.

-Paolo

sivaprakashcg

  • Jr. Member
  • **
  • Posts: 31
    • View Profile
Re: Regarding Shipping
« Reply #4 on: October 10, 2007, 05:10:33 AM »
wat i have to specify in that field.. can u tell me...

paolo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 119
    • View Profile
Re: Regarding Shipping
« Reply #5 on: October 10, 2007, 05:14:25 AM »
You need to add some custom data that gives you details about how the product should be shipped. Then in the shipping module you read this data and act accordingly.

sivaprakashcg

  • Jr. Member
  • **
  • Posts: 31
    • View Profile
Re: Regarding Shipping
« Reply #6 on: October 10, 2007, 06:02:39 AM »
Ok.. How can i get from db in shipping module.. whether there is any method to get the custom1,,, in shipping program