JoomlaVM

  • Increase font size
  • Default font size
  • Decrease font size
Home Virtuemart development How to develop a shipping module for virtuemart

How to develop a shipping module for virtuemart

  The following is a list of all methods that must be implemented by a shipping module’s class file.

string list_rates( Array $d )
Lists all available shipping rates.

Attention : The array $d contains the values for the cart total weight ($d['weight']) and the ID for the shipping address the user has selected ($d['ship_to_info_id']). The ship_to_info_id refers to the field user_info_id in the tables jos_users OR jos_vm_user_info. Check both for a matching entry!
 
float get_rate( Array $d )
Returns the amount for the selected shipping rate by analyzing the parameter shipping_rate_id.
float get_tax_rate( Array $d )
Returns the tax rate for this shipping module (e.g. 0.19).
boolean validate( Array $d )
Validates the value for the parameter shipping_rate_id usually using isset( $_SESSION[$shipping_rate_id] ). Assumes you have set the value in the function list_rates for each returned shipping rate.

void write_configuration( Array )
Stores all configuration values for this shipping module in the configuration file.
string show_configuration( void )
Shows the configuration form for this shipping module in the shipping module form.
boolean configfile_writeable( void )
returns true if the configuration file for that module is writeable, false if not

Please always change names of configuration variables in both functions: show_configuration and write_configuration!  

 

 

 

VirtueMart Shopping Cart

VirtueMart
Your Cart is currently empty.

Newsletter


Newsflash

VMDL importing data instantly

(We just release a new version for Virtuemart 2.0 and Joomla 1.6/1.7 , Please check it here :VMDL for VM2.0 and Joomla 1.6/joomla 1.7)

Vmdl tool allows users to easily create virtuemart product item from data stored in excel and CSV files. When used with vmdl , the powerful functions and cutomer service that also allows for the creation of more complex structured product items,include all of attributes and product types,vmdl allows for the easy transfer of data from excel file into your virtuemart product catalogues, product listings, price listings, and more. With or without vmdl, products input is an essential time-saving tool for any Joomla and Virtuemart site. this new edtion is integrated into the VM backend,more convenient to use,less steps,adding check module,and more quick loading.

Feature Summary

  • Import format CSV file, regardless of size
  • auto-creates categories and auto-creating product item, then auto-loading product detail
  • Support remote host data loading,help you create data anywhere
  • help Service —Help clients use this tool and fill the excel file correctly at first time