Author Topic: My First Custom Shipping Module  (Read 931 times)

veeco

  • Jr. Member
  • **
  • Posts: 98
  • Joomla, Seblod, and Virtuemart is my Arsenal
    • Doxadigital Web Development Indonesia
  • VirtueMart Version: 2.0.20b
My First Custom Shipping Module
« on: November 17, 2010, 19:03:52 pm »
Hello,
i'm building my first custom shipping module, so far i understand little bit here and there by tweak and read some available code.

at this time of writing i'm still on build the back-end.. would like to ask about something:

"Apply Button".. as i aware apply button will trigger write_configuration function.
after configuration has been write.. i wonder why the screen only goes blank, with a notification box "Info: The configuration details have been updated!"

how to set display shipping configuration form instead of blank screen (just as default apply button)?

more question will follow... thanks
Work On Doxa Web Developer Indonesia - http://doxadigital.com |

zanardi

  • Contributing Developer
  • Full Member
  • *
  • Posts: 878
    • GiBiLogic
Re: My First Custom Shipping Module
« Reply #1 on: November 17, 2010, 20:20:01 pm »
"store.shipping_module_form" goes blank when "shipping_module" is not set. You should check that your shipping method form name is in the correct format, take a look at other modules.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

veeco

  • Jr. Member
  • **
  • Posts: 98
  • Joomla, Seblod, and Virtuemart is my Arsenal
    • Doxadigital Web Development Indonesia
  • VirtueMart Version: 2.0.20b
Re: My First Custom Shipping Module
« Reply #2 on: November 17, 2010, 20:49:59 pm »
i don't use store.shipping_module_form... i only use the module's file (ship_myship.php)

i  build the form in show_configuration() function.

Any more idea ?


My Second Question (as i'm on front end editing right now)... how to get shipto data ? my custom module calculate the shipping fee based on the state.

As for step 1, user need to define their shipping address (which can be same as their main account)... i would like to get those data to extract the state information...

how do i accomplish this ?
Work On Doxa Web Developer Indonesia - http://doxadigital.com |

zanardi

  • Contributing Developer
  • Full Member
  • *
  • Posts: 878
    • GiBiLogic
Re: My First Custom Shipping Module
« Reply #3 on: November 18, 2010, 15:23:56 pm »
Quote
i don't use store.shipping_module_form...

You should. If you don't you cannot expect the same behaviour of other modules.

Second question, activate "debug" in VirtueMart configuration and look at all variables availabel.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter