VirtueMart
3.2.14.9808
|
Public Member Functions | |
__construct (&$subject, $config) | |
getVarsToPush () | |
setConvertable ($toConvert) | |
selectedThisType ($psType) | |
onStoreInstallPluginTable ($jplugin_id, $name=FALSE) | |
onSelectCheck (VirtueMartCart $cart) | |
displayListFE (VirtueMartCart $cart, $selected=0, &$htmlIn) | |
onSelectedCalculatePrice (VirtueMartCart $cart, array &$cart_prices, &$cart_prices_name) | |
onCheckAutomaticSelected (VirtueMartCart $cart, array $cart_prices=array(), &$methodCounter=0) | |
selectedThisElement ($element) | |
onShowOrderBE ($_virtuemart_order_id, $_method_id) | |
onShowOrderPrint ($order_number, $method_id) | |
onUpdateOrder ($formData) | |
onUpdateOrderLine ($formData) | |
onEditOrderLineBE ($orderId, $lineId) | |
onShowOrderLineFE ($orderId, $lineId) | |
onNotification () | |
onResponseReceived (&$virtuemart_order_id, &$html) | |
getDebug () | |
setDebug ($params) | |
decryptFields ($method) | |
getHtmlRowBE ($key, $value) | |
getSelectable (VirtueMartCart $cart, &$method_id, $cart_prices) | |
convert_condition_amount (&$method) | |
getEmailCurrency (&$method) | |
displayTaxRule ($tax_id) | |
getCosts (VirtueMartCart $cart, $method, $cart_prices) | |
getCartAmount ($cart_prices) | |
convertToVendorCurrency (&$method) | |
setCartPrices (VirtueMartCart $cart, &$cart_prices, $method, $progressive=true) | |
setInConfirmOrder ($cart) | |
processConfirmedOrderPaymentResponse ($returnValue, $cart, $order, $html, $payment_name, $new_status= '') | |
emptyCart ($session_id=NULL, $order_number=NULL) | |
emptyCartFromStorageSession ($session_id, $order_number) | |
_emptyCartFromStorageSession ($data) | |
handlePaymentUserCancel ($virtuemart_order_id) | |
getLogFileName () | |
debugLog ($message, $title='', $type= 'message', $doDebug=true) | |
Public Member Functions inherited from vmPlugin | |
__construct (&$subject, $config) | |
setConvertDecimal ($toConvert) | |
convertDec (&$data) | |
loadJLangThis ($fname, $type=0, $name=0) | |
setPluginLoggable ($set=TRUE) | |
setCryptedFields ($fieldNames) | |
getOwnUrl () | |
display3rdInfo ($intro, $developer, $contactlink, $manlink) | |
selectedThisByMethodId ($id= 'type') | |
onStoreInstallPluginTable ($psType, $name=FALSE) | |
getTableSQLLoggablefields () | |
getTableSQLFields () | |
setConfigParameterable ($paramsFieldName, $varsToPushParam) | |
renderByLayout ($layout= 'default', $viewData=NULL, $name=NULL, $psType=NULL) | |
getTemplatePath ($pluginName, $group, $layout= 'default') | |
Static Public Member Functions | |
static | getPaymentCurrency (&$method, $getCurrency=FALSE) |
static | getAmountInCurrency ($amount, $currencyId) |
static | getAmountValueInCurrency ($amount, $currencyId) |
Static Public Member Functions inherited from vmPlugin | |
static | loadJLang ($fname, $type, $name) |
static | getVarsToPushFromForm ($form) |
static | getVarsToPushByXML ($xmlFile, $name) |
Public Attributes | |
$methods = null | |
Protected Member Functions | |
onShowOrderFE ($virtuemart_order_id, $virtuemart_method_id, &$method_info) | |
getPluginMethod ($method_id) | |
getPluginMethods ($vendorId) | |
getDataByOrderId ($virtuemart_order_id) | |
getDatasByOrderId ($virtuemart_order_id) | |
getDataByOrderNumber ($order_number) | |
getDatasByOrderNumber ($order_number) | |
getOrderWeight (VirtueMartCart $cart, $to_weight_unit) | |
getThisName ($virtuemart_method_id) | |
storePSPluginInternalData ($values, $primaryKey=0, $preload=FALSE) | |
sendEmailToVendorAndAdmins ($subject=NULL, $message=NULL) | |
displayLogos ($logo_list) | |
renderPluginName ($plugin) | |
getPluginHtml ($plugin, $selectedPlugin, $pluginSalesPrice) | |
getHtmlHeaderBE () | |
getHtmlRow ($key, $value, $class= '') | |
checkConditions ($cart, $method, $cart_prices) | |
calculateSalesPrice ($cart, $method, $cart_prices) | |
logInfo ($text, $type= 'message', $doLog=false) | |
Protected Member Functions inherited from vmPlugin | |
selectedThis ($psType, $name=0, $jid=null) | |
selectedThisByJPluginId ($jplugin_id= 'type') | |
getJoomlaPluginId () | |
createTableSQL ($tableComment, $tablesFields=0) | |
getTablePluginParams ($psType, $name, $id, &$xParams, &$varsToPush) | |
setOnTablePluginParams ($name, $id, &$table) | |
declarePluginParams ($psType, &$data, $blind=0, $blind2=0) | |
getVmPluginMethod ($int, $cache=true) | |
storePluginInternalData (&$values, $primaryKey=0, $id=0, $preload=FALSE) | |
getPluginInternalData ($id, $primaryKey=0) | |
createPluginTableObject ($tableName, $tableFields, $primaryKey, $tableId, $loggable=FALSE) | |
removePluginInternalData ($id, $primaryKey=0) | |
Protected Attributes | |
$_toConvert = false | |
Protected Attributes inherited from vmPlugin | |
$_psType = 0 | |
$_jid = 0 | |
$_vmpItable = 0 | |
$_tablename = 0 | |
$_tableId = 'id' | |
$_tablepkey = 0 | |
$_vmpCtable = 0 | |
$_configTable = 0 | |
$_configTableFileName = 0 | |
$_configTableClassName = 0 | |
$_xParams = 0 | |
$_varsToPushParam = array() | |
$_idName = 0 | |
$_configTableFieldName = 0 | |
$_debug = FALSE | |
$_loggable = FALSE | |
$_cryptedFields = false | |
$_toConvertDec = false | |
Private Member Functions | |
getOrderMethodNamebyOrderId ($virtuemart_order_id) | |
getOrderPluginName ($order_number, $pluginmethod_id) | |
Static Private Member Functions | |
static | session_decode ($session_data) |
static | session_encode ($session_data_array) |
vmPSPlugin::__construct | ( | & | $subject, |
$config | |||
) |
vmPSPlugin::_emptyCartFromStorageSession | ( | $data | ) |
|
protected |
calculateSalesPrice
$value | |
$tax_id | tax id |
|
protected |
Enter description here ...
VirtueMartCart | $cart | |
int | $method | |
array | $cart_prices |
vmPSPlugin::convert_condition_amount | ( | & | $method | ) |
$method |
vmPSPlugin::convertToVendorCurrency | ( | & | $method | ) |
vmPSPlugin::debugLog | ( | $message, | |
$title = '' , |
|||
$type = 'message' , |
|||
$doDebug = true |
|||
) |
log all messages of type ERROR log in case the debug option is on, and the log option is on
string | $message | the message to write |
string | $title | |
string | $type | message, deb-ug, info, error |
boolean | $doDebug | in payment notification, we don't want to use vmdebug even if the debug option is on |
vmPSPlugin::decryptFields | ( | $method | ) |
vmPSPlugin::displayListFE | ( | VirtueMartCart | $cart, |
$selected = 0 , |
|||
& | $htmlIn | ||
) |
displayListFE This event is fired to display the pluginmethods in the cart (edit shipment/payment) for example
object | $cart | Cart object |
integer | $selected | ID of the method selected |
|
protected |
vmPSPlugin::displayTaxRule | ( | $tax_id | ) |
displayTaxRule
int | $tax_id |
vmPSPlugin::emptyCart | ( | $session_id = NULL , |
|
$order_number = NULL |
|||
) |
vmPSPlugin::emptyCartFromStorageSession | ( | $session_id, | |
$order_number | |||
) |
|
static |
$amount | |
$currencyId |
|
static |
$amount | |
$currencyId |
vmPSPlugin::getCartAmount | ( | $cart_prices | ) |
Get the cart amount for checking conditions if the payment conditions are fullfilled
$cart_prices |
vmPSPlugin::getCosts | ( | VirtueMartCart | $cart, |
$method, | |||
$cart_prices | |||
) |
|
finalprotected |
Get Method Data for a given Payment ID
int | $virtuemart_order_id | The order ID |
|
finalprotected |
Get Method Data for a given Payment ID
int | $order_number | The order Number |
|
finalprotected |
Get Method Datas for a given Payment ID
int | $virtuemart_order_id | The order ID |
|
finalprotected |
Get Method Datas for a given Payment ID
int | $order_number | The order Number |
vmPSPlugin::getDebug | ( | ) |
vmPSPlugin::getEmailCurrency | ( | & | $method | ) |
|
protected |
|
protected |
vmPSPlugin::getHtmlRowBE | ( | $key, | |
$value | |||
) |
vmPSPlugin::getLogFileName | ( | ) |
|
private |
int | $virtuemart_order_id |
|
private |
|
protected |
Get the total weight for the order, based on which the proper shipping rate can be selected.
object | $cart | Cart object |
|
static |
$method | ||
bool | $getCurrency |
|
protected |
|
finalprotected |
Get Plugin Data for a go given plugin ID
int | $pluginmethod_id | The method ID |
|
protected |
Fill the array with all plugins found with this plugin for the current vendor Todo it would be nicer to use here the correct vmtable methods
vmPSPlugin::getSelectable | ( | VirtueMartCart | $cart, |
& | $method_id, | ||
$cart_prices | |||
) |
getSelectable This method returns the number of valid methods
VirtueMartCart | cart: the cart object |
$method_id | eg $virtuemart_shipmentmethod_id |
|
finalprotected |
getThisName Get the name of the method
int | $id | The method ID |
vmPSPlugin::getVarsToPush | ( | ) |
vmPSPlugin::handlePaymentUserCancel | ( | $virtuemart_order_id | ) |
integer | $virtuemart_order_id | the id of the order |
|
protected |
logInfo to help debugging Payment notification for example Keep it for compatibilty
vmPSPlugin::onCheckAutomaticSelected | ( | VirtueMartCart | $cart, |
array | $cart_prices = array() , |
||
& | $methodCounter = 0 |
||
) |
onCheckAutomaticSelected Checks how many plugins are available. If only one, the user will not have the choice. Enter edit_xxx page The plugin must check first if it is the correct type
VirtueMartCart | cart: the cart object |
vmPSPlugin::onEditOrderLineBE | ( | $orderId, | |
$lineId | |||
) |
OnEditOrderLineBE This method is fired when editing the order line details in the backend. It can be used to add line specific package codes
integer | $_orderId | The order ID |
integer | $_lineId |
vmPSPlugin::onNotification | ( | ) |
This event is fired when the method notifies you when an event occurs that affects the order. Typically, the events represents for payment authorizations, Fraud Management Filter actions and other actions, such as refunds, disputes, and chargebacks.
NOTE for Plugin developers: If the plugin is NOT actually executed (not the selected payment method), this method must return NULL
$return_context | it was given and sent in the payment form. The notification should return it back. Used to know which cart should be emptied, in case it is still in the session. | |
int | $virtuemart_order_id | : payment order id |
char | $new_status | : new_status for this order id. |
vmPSPlugin::onResponseReceived | ( | & | $virtuemart_order_id, |
& | $html | ||
) |
OnResponseReceived This event is fired when the method returns to the shop after the transaction
the method itself should send in the URL the parameters needed NOTE for Plugin developers: If the plugin is NOT actually executed (not the selected payment method), this method must return NULL
int | $virtuemart_order_id | : should return the virtuemart_order_id |
text | $html, | the html to display |
vmPSPlugin::onSelectCheck | ( | VirtueMartCart | $cart | ) |
This event is fired after the payment method has been selected. It can be used to store additional payment info in the cart.
VirtueMartCart | $cart, | the actual cart |
vmPSPlugin::onSelectedCalculatePrice | ( | VirtueMartCart | $cart, |
array & | $cart_prices, | ||
& | $cart_prices_name | ||
) |
vmPSPlugin::onShowOrderBE | ( | $_virtuemart_order_id, | |
$_method_id | |||
) |
This method is fired when showing the order details in the backend. It displays the the payment method-specific data. All plugins must reimplement this method.
integer | $_virtuemart_order_id | The order ID |
integer | $_paymethod_id | Payment method used for this order |
|
protected |
This method is fired when showing the order details in the frontend. It displays the method-specific data.
integer | $order_id | The order ID |
vmPSPlugin::onShowOrderLineFE | ( | $orderId, | |
$lineId | |||
) |
This method is fired when showing the order details in the frontend, for every orderline. It can be used to display line specific package codes, e.g. with a link to external tracking and tracing systems
integer | $_orderId | The order ID |
integer | $_lineId |
vmPSPlugin::onShowOrderPrint | ( | $order_number, | |
$method_id | |||
) |
This method is fired when showing when priting an Order It displays the the payment method-specific data.
integer | $_virtuemart_order_id | The order ID |
integer | $method_id | method used for this order |
vmPSPlugin::onStoreInstallPluginTable | ( | $jplugin_id, | |
$name = FALSE |
|||
) |
Create the table for this plugin if it does not yet exist. This functions checks if the called plugin is active one. When yes it is calling the standard method to create the tables
vmPSPlugin::onUpdateOrder | ( | $formData | ) |
Save updated order data to the method specific table
array | $_formData | Form data |
vmPSPlugin::onUpdateOrderLine | ( | $formData | ) |
Save updated orderline data to the method specific table
array | $_formData | Form data |
vmPSPlugin::processConfirmedOrderPaymentResponse | ( | $returnValue, | |
$cart, | |||
$order, | |||
$html, | |||
$payment_name, | |||
$new_status = '' |
|||
) |
|
protected |
vmPSPlugin::selectedThisElement | ( | $element | ) |
check if it is the correct element
string | $element | either standard or paypal |
vmPSPlugin::selectedThisType | ( | $psType | ) |
check if it is the correct type
string | $psType | either payment or shipment |
|
protected |
Something went wrong, Send notification to all administrators
string | subject of the mail |
string | message |
|
staticprivate |
|
staticprivate |
vmPSPlugin::setCartPrices | ( | VirtueMartCart | $cart, |
& | $cart_prices, | ||
$method, | |||
$progressive = true |
|||
) |
VirtueMartCart | $cart | |
$cart_prices | ||
$method | ||
bool | $progressive |
vmPSPlugin::setConvertable | ( | $toConvert | ) |
vmPSPlugin::setDebug | ( | $params | ) |
vmPSPlugin::setInConfirmOrder | ( | $cart | ) |
setInConfirmOrder In VM 2.6.7, we introduced a double order checking. Now plugin itself can define if it should be possible to use the same trigger more than one time. this should be done at the begin of the trigger
$cart |
|
protected |
Extends the standard function in vmplugin. Extendst the input data by virtuemart_order_id Calls the parent to execute the write operation
array | $_values | |
string | $_table |
|
protected |
vmPSPlugin::$methods = null |