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

Virtuemart Quotation Component

VMQuote , the online Quotation / Invoice system assists the virtuemart shop in preparation, issue, and tracking of customer quotations.
VMQuote ?allows users to quickly and accurately prepare a customer quotation by accessing the products in virtuemart store. with the powerful component, you can create any quotations for any customers, even for unregister customers, it will create a new account for them when you finish creating the quotation, and email the customers the account and quotation with pdf format document. After the new customer login in your website and ?accept the quotation, it will create a new order automatically and wait for customer finishing the payment.
It also provide the invoice function, you can generate ?the invoice of pdf format at the backend, if? you want to track the quotations and analysis the statistic, you can export all kind of tables about quotation,invoices,unpaid order.
It is a Stardand joomla component for virtuemart, so don’t worry about the edition of your virtuemart, the installation is absolutely simple, the usage is absolutely easy.

Feature Summary

  • Integrate with all VM products listed on website.
  • Auto create new customer (registration) if not existing customer ( included login details in email with quotation)
  • Quotation – Send to customer in HTML email? with attached PDF
  • Quotation – Customer are able to accept or reject quotation in the frontend
  • Quotation –? If accepted auto generate purchase order , If rejected ask why
  • Export data to CSV
  • Statements with line item invoices marked paid or unpaid
  • help Service —Help clients use this tool correctly at first time