Project

General

Profile

Plugin system » History » Version 29

Valérie Isaksen, 06/26/2011 06:31 PM

1 10 Oscar van Eijk
{{>toc}}
2
3 1 Oscar van Eijk
h1. Plugin system
4
5 5 Oscar van Eijk
Since VirtueMart v2, the Joomla! plugin system is used form payment and shipper plugins.
6 1 Oscar van Eijk
7
h2. Installing plugins
8
9
During development the the VM2 branch, the plugins are not available as Joomla install packages, so for test environments, they must be installed manually.
10
11
h3. Payment plugins
12
13
At the time of writing, only 2 of the former payment plugins have been converted to the new plugin system. Others should follow soon, all help is appreciated!!
14
15
Use the SQL query below to add the plugins to your database (assuming the table prefix is "jos_"):
16
17 12 Christopher Roussel
J1.5:
18 1 Oscar van Eijk
<pre>
19 4 Devendra Kumar Shukla
INSERT INTO `jos_plugins` (`id`, `name`, `element`, `folder`, `access`, `ordering`
20 1 Oscar van Eijk
  , `published`, `iscore`, `client_id`, `checked_out`, `checked_out_time`, `params`)
21
VALUES
22
 (NULL, 'VMPayment - Authorize', 'authorize', 'vmpayment', 0, 0, 1, 0, 0, 0, '0000-00-00 00:00:00', '')
23 12 Christopher Roussel
,(NULL, 'VMPayment - Cash on delivery', 'cashondel', 'vmpayment', 0, 0, 1, 0, 0, 0, '0000-00-00 00:00:00','');
24 1 Oscar van Eijk
</pre>
25 12 Christopher Roussel
J1.6:
26
<pre>
27
INSERT INTO `jos_extensions` (`extension_id`,  `type`, `name`, `element`, `folder`, `access`, `ordering`
28
  , `enabled`, `protected`, `client_id`, `checked_out`, `checked_out_time`, `params`)
29
VALUES
30
 (NULL, 'plugin', 'plg_vmpayment_authorize', 'authorize', 'vmpayment', 1, 0, 1, 0, 0, 0, '0000-00-00 00:00:00', '')
31
,(NULL, 'plugin', 'plg_vmpayment_cashondel', 'cashondel', 'vmpayment', 1, 0, 1, 0, 0, 0, '0000-00-00 00:00:00','');
32
</pre>
33 1 Oscar van Eijk
34 13 Max Milbers
Next, when you did not use the svn checkout, copy the plugin files (authorize.php, authorize.xml, cashondel.php and cashondel.xml), located in the folder /plugins/vmpayment, to the Joomla plugin directory. If that doesn't exist, it must be created first.
35 1 Oscar van Eijk
36 19 Valérie Isaksen
Now, in the store maintenance, you can add payment methods based on one of these plugins, then click Apply button to display the appropriate parameters in the configuration tab. Note at this moment it is required to select a vendor!
37 1 Oscar van Eijk
38
h3. Shipper plugins
39 3 Oscar van Eijk
40 1 Oscar van Eijk
This is very similar to the payment plugins. Only 1 plugin has been created (again: all help is appreciated!); 'standard', which provides a basic shipping option for postal services.
41
*Note:* Installing the sample data does _NOT_ provide shipping rates anymore!
42
43
Use the SQL query below to add the plugins to your database (assuming the table prefix is "jos_"):
44
45 12 Christopher Roussel
J1.5:
46 1 Oscar van Eijk
<pre>
47
INSERT INTO `jos_plugins` (`id`, `name`, `element`, `folder`, `access`, `ordering`
48
  , `published`, `iscore`, `client_id`, `checked_out`, `checked_out_time`, `params`)
49
VALUES
50 17 Valérie Isaksen
 (NULL, 'By weight, ZIP and countries', 'weight_countries', 'vmshipper', 0, 0, 1, 0, 0, 0, '0000-00-00 00:00:00', '')
51 14 Valérie Isaksen
;
52 1 Oscar van Eijk
</pre>
53
54 12 Christopher Roussel
J1.6: 
55
<pre>
56
INSERT INTO `jos_extensions` (`extension_id`, `type`, `name`, `element`, `folder`, `access`, `ordering`
57 1 Oscar van Eijk
  , `enabled`, `protected`, `client_id`, `checked_out`, `checked_out_time`, `params`)
58
VALUES
59 16 Valérie Isaksen
 (NULL, 'plugin', 'plg_vmshipper_weight_countries', 'weight_countries', 'vmshipper', 1, 0, 1, 0, 0, 0, '0000-00-00 00:00:00', '')
60 14 Valérie Isaksen
;
61 12 Christopher Roussel
</pre>
62 19 Valérie Isaksen
Next, when you did not use the svn checkout, copy the plugin files (weight_countries.php, weight_countries.xml, products_countries.php and products_countries.XML), located in the folder /plugins/vmshipper, to the Joomla plugin directory. If that doesn't exist, it must be created first.
63 1 Oscar van Eijk
64 19 Valérie Isaksen
Now use the 'Shipping methods' menu item in the backend to add 1 or more shipping methods. Give a shipping method name, select the shipping method,and click Apply button to display the appropriate parameters in the configuration tab. All you need to do here is give the shipper a name and select a vendor (this is optional; when no vendor is selected, this carrier is valid for all vendors).
65
Make sure a there's always a valid shipping rate: the plugin must be able to find a matching rate based on the shipto address!
66 1 Oscar van Eijk
67 5 Oscar van Eijk
h2. Plugin Development
68 1 Oscar van Eijk
69 5 Oscar van Eijk
All plugins for VirtueMart should be developed confirming the Joomla! plugin development methods. Refer to http://docs.joomla.org/Tutorial:Plugins for developers documentation for Joomla! plugins.
70
71
h3. Payment Plugins
72
73 7 Oscar van Eijk
Payment plugins are used both in the front-end and the backend. They must be created as classes deriving from the base class *vmPaymentPlugin*:
74 9 Oscar van Eijk
<pre><code class="php">
75 7 Oscar van Eijk
class plgVmPayment<myPlugin> extends vmPaymentPlugin {
76
	function plgVmPayment<myPlugin>(&$subject, $config) {
77
		$this->_pelement = basename(__FILE__, '.php');	// Required!
78
		$this->_createTable();				// Required, see below
79
		parent::__construct($subject, $config);
80
	}
81
}
82 9 Oscar van Eijk
</code></pre>
83 7 Oscar van Eijk
84
Below is the list with events and a description on what moment they are fired.
85 6 Oscar van Eijk
* *plgVmOnSelectPayment()* - This event is fired during the checkout process. It allows the shopper to select one of the available payment methods.
86 5 Oscar van Eijk
It should display a radio button (name: paym_id) to select the payment method. Other information (like credit card info) might be selected as well, depending on the plugin.
87
+Return:+
88
It must return the HTML code for displaying the form (radio button and optional extra selections).
89
+Parameters:+
90
# (VirtueMartCart object) The cart object 
91
# (integer, default 0) ID of an already selected payment method ID, if any
92
93 6 Oscar van Eijk
* *plgVmOnPaymentSelectCheck()* - This event is fired after the payment method has been selected. It can be used to store
94 5 Oscar van Eijk
additional payment info in the cart.
95
+Return:+
96
Plugins that were not selected must return null, otherwise True of False must be returned indicating Success or Failure.
97
+Parameters:+
98
# (VirtueMartCart object) The cart object 
99
100 10 Oscar van Eijk
101
102 6 Oscar van Eijk
* *plgVmOnCheckoutCheckPaymentData()* - This event is fired during the checkout process. It can be used to validate the payment data as entered by the user.
103 5 Oscar van Eijk
+Return:+
104
Plugins that were not selected must return null, otherwise True of False must be returned indicating Success or Failure.
105
+Parameters:+
106
None
107
108 6 Oscar van Eijk
* *plgVmOnConfirmedOrderStorePaymentData()* - This event is fired after the payment has been processed; it stores the payment method-specific data.
109 5 Oscar van Eijk
All plugins _must_ reimplement this method.
110
+Return:+
111
If the plugin is NOT actually executed (not the selected payment method), this method must return NULL
112
If this plugin IS executed, it MUST return the order status code that the order should get. This triggers the stock updates if required
113
+Parameters:+
114
# (integer) The ordernumber being processed
115
# (object) Data from the cart
116
# (array) Price information for this order
117
	
118 6 Oscar van Eijk
* *plgVmOnShowOrderPaymentBE()* - This method is fired when showing the order details in the backend. It displays the the payment method-specific data.
119 5 Oscar van Eijk
All plugins _must_ reimplement this method.
120
+Return:+
121
Null when for payment methods that were not selected, text (HTML) otherwise
122
+Parameters:+
123
# (integer) The order ID
124
# (integer) Payment method used for this order
125
126 6 Oscar van Eijk
* *plgVmOnCancelPayment()* - This event is fired each time the status of an order is changed to Cancelled. It can be used to refund payments, void authorization etc.
127 5 Oscar van Eijk
When reimplementing this methis, the body _must_ start with this code:
128 9 Oscar van Eijk
<pre><code class="php">$_paymethodID = $this->getPaymentMethodForOrder($_orderID);
129 5 Oscar van Eijk
if (!$this->selectedThisMethod($this->_pelement, $_paymethodID)) {
130
	return;
131 9 Oscar van Eijk
}</code></pre>
132 5 Oscar van Eijk
+Parameters:+
133
 (integer The order ID
134
 (char) Previous order status
135
 (char) New order status
136
137 6 Oscar van Eijk
* *plgVmOnShipOrderPayment()* - This event is fired when the status of an order is changed to Shipped. It can be used to confirm or capture payments
138 5 Oscar van Eijk
When reimplementing this methis, the body _must_ start with this code:
139 9 Oscar van Eijk
<pre><code class="php">$_paymethodID = $this->getPaymentMethodForOrder($_orderID);
140 5 Oscar van Eijk
if (!$this->selectedThisMethod($this->_pelement, $_paymethodID)) {
141
	return;
142 9 Oscar van Eijk
}</code></pre>
143 5 Oscar van Eijk
+Return:+
144
True on success, False on failure, Null if this plugin was not activated
145
+Parameters:+
146 1 Oscar van Eijk
# (integer) Order ID
147 7 Oscar van Eijk
148
Other helper functions inherited from the base class:
149
150 9 Oscar van Eijk
* *_ createTable()* - This method is used to create and maintain the plugin specific database table(s).
151 7 Oscar van Eijk
It _must_ be reimplemented by all plugins.
152 1 Oscar van Eijk
+Example:+
153 8 Oscar van Eijk
<pre><code class="php">
154 7 Oscar van Eijk
$_scheme = DbScheme::get_instance();
155
$_scheme->create_scheme('#__vm_order_payment_'.$this->_pelement);
156
$_schemeCols = array(
157
	 'id' => array (
158
			 'type' => 'int'
159
			,'length' => 11
160
			,'auto_inc' => true
161
			,'null' => false
162
	)
163
	,'order_id' => array (
164
			 'type' => 'int'
165
			,'length' => 11
166
			,'null' => false
167
	)
168
	,'payment_method_id' => array (
169
			 'type' => 'text'
170
			,'null' => false
171
	)
172
);
173
$_schemeIdx = array(
174
	 'idx_order_payment' => array(
175
			 'columns' => array ('order_id')
176
			,'primary' => false
177
			,'unique' => false
178
			,'type' => null
179
	)
180
);
181
$_scheme->define_scheme($_schemeCols);
182
$_scheme->define_index($_schemeIdx);
183
if (!$_scheme->scheme()) {
184
	JError::raiseWarning(500, $_scheme->get_db_error());
185
}
186
$_scheme->reset();
187 8 Oscar van Eijk
</code></pre>
188 7 Oscar van Eijk
189 8 Oscar van Eijk
* *getPaymentMethodForOrder()* - Get the order payment ID for a given order number
190 7 Oscar van Eijk
+Return:+
191
The payment method ID, or -1 when not found 
192
+Parameters:+
193
# (integer) The order ID
194
195 8 Oscar van Eijk
* *getThisMethodName()* - Get the name of the payment method.
196 7 Oscar van Eijk
This method can _not_ be reimplemented
197
+Return:+
198
Paymenent method name
199
+Parameters:+
200
# (integer) The payment method ID
201
202 8 Oscar van Eijk
* *selectedThisMethod()* - This method checks if the selected payment method matches the current plugin
203 7 Oscar van Eijk
+Return:+
204
True if the calling plugin has the given payment ID, False otherwise.
205
+Parameters:+
206
# (string) Element name, taken from the plugin filename
207
# (integer) The payment method ID
208
209 8 Oscar van Eijk
* *writePaymentData()* - This method writes all payment plugin specific data to the plugin's table
210 7 Oscar van Eijk
+Return:+
211
True if the calling plugin has the given payment ID, False otherwise.
212
+Parameters:+
213
# (array) Indexed array in the format 'column_name' => 'value'
214
# (string) Table name
215 10 Oscar van Eijk
216
h3. Shipper Plugins
217
218
Shipper plugins are used both in the front-end and the backend. They must be created as classes deriving from the base class *vmShipperPlugin*:
219
<pre><code class="php">
220
class plgVmShipper<myPlugin> extends vmShipperPlugin {
221
	function plgVmPayment<myPlugin>(&$subject, $config) {
222
		$this->_pelement = basename(__FILE__, '.php');	// Required!
223
		$this->_createTable();				// Required, see below
224
		parent::__construct($subject, $config);
225
	}
226
}
227
</code></pre>
228
229
Here's a short overview of the events:
230
* When a shopper selects a shipper, *plgOnSelectShipper()* is fired. It displays the shipper and can be used for collecting extra - shipper specific - info.
231
* After selecting, *plgVmShipperSelected()* can be used to store extra shipper info in the cart. The selected shipper ID will be stored in the cart by the checkout process before this method is fired.
232
* *plgOnConfirmShipper()* is fired when the order is confirmed and stored to the database. It is called before the rest of the order or stored, when reimplemented, it _must_ include a call to parent::plgOnConfirmShipper() (or execute the same steps to put all data in the cart)
233
234
When a stored order is displayed in the backend, the following events are used:
235
* *plgVmOnShowOrderShipperBE()* displays specific data about (a) shipment(s) (NOTE: this plugin is _OUTSIDE_ any form!)
236
* *plgVmOnShowOrderLineShipperBE()*) can be used to show information about a single orderline, e.g. display a package code at line level when more packages are shipped.
237
* *plgVmOnEditOrderLineShipperBE() can be used add a package code for an order line when more packages are shipped.
238
* *plgVmOnUpdateOrderShipperBE()* is fired inside a form. It can be used to add shipper data, like package code.
239
* *plgVmOnSaveOrderShipperBE()* is fired from the backend after the order has been saved. If one of the show methods above have to option to add or edit info, this method must be used to save the data.
240
* *plgVmOnUpdateOrderLine()* is fired from the backend after an order line has been saved. This method must be reimplemented if plgVmOnEditOrderLineShipperBE() is used.
241 22 Valérie Isaksen
* *plgVmOnShipperSelectedCalculatePrice()* is fired before the order is saved, and used to calculate the cart prices. 
242
* *plgVmOnConfirmedOrderStoreShipperData()* This event is fired after the order has been stored; it gets the shipping method specific data.
243 10 Oscar van Eijk
244
The frontend 1 show method:
245
* plgVmOnShowOrderShipperFE() collects and displays specific data about (a) shipment(s)
246
247
Below is the list with events and a description on what moment they are fired.
248
249
* *plgVmOnSelectShipper()* - This event is fired during the checkout process. It allows the shopper to select one of the available shippers.
250
It should display a radio button (name: shipper_id) to select the shipper. In the description, the shipping cost can also be displayed, based on the total order weight and the shipto country (this wil be calculated again during order confirmation)
251
+Return:+
252
HTML code to display the form
253
+Parameters:+
254
# (VirtueMartCart object)  Cart object
255
# (integer, default 0) ID of the currently shipper selected
256
257
* *plgVmOnShipperSelected()* - This event is fired after the shipping method has been selected. It can be used to store additional shipper info in the cart.
258
+Return:+
259
True on succes, false on failures, null when this plugin was not selected.
260 1 Oscar van Eijk
On errors, JError::raiseWarning (or JError::raiseError) must be used to set a message.
261
+Parameters:+
262
# (VirtueMartCart object)  Cart object
263
# (integer, default 0) ID of the shipper selected
264 16 Valérie Isaksen
265 21 Valérie Isaksen
* *plgVmOnShipperSelectedCalculatePrice()* - This event is fired before the order is saved, and used to calculate the cart prices.  
266 16 Valérie Isaksen
+Return:+
267 28 Valérie Isaksen
True on success, false on failures, null when this plugin was not selected.
268 16 Valérie Isaksen
On errors, JError::raiseWarning (or JError::raiseError) must be used to set a message.
269
+Parameters:+
270
# (VirtueMartCart object)  Cart object
271 28 Valérie Isaksen
# (array )  Shipping array containing: shipping_name, shipping_value, shipping_rate_vat_id 
272 16 Valérie Isaksen
273
274 10 Oscar van Eijk
275 20 Valérie Isaksen
* *plgVmOnConfirmShipper()* - This event is fired after the payment has been processed; it selects the actual shipping rate  and/or order weight, and optionally writes extra info to the database (in which case this method must be reimplemented).
276 10 Oscar van Eijk
Reimplementation is not required, but when done, the following check MUST be made:
277
<pre><code class="php">
278
if (!$this->selectedThisShipper($this->_selement, $_cart->shipper_id)) {
279
	return null;
280
}</code></pre>
281
+Return:+
282
The shipping rate ID
283
Do _not_ return parent::plgVmOnConfirmShipper($_cart); it is valid but will produce extra overhead!
284
+Parameters:+
285 1 Oscar van Eijk
# (VirtueMartCart object) Cart object
286 21 Valérie Isaksen
287 20 Valérie Isaksen
288
* *plgVmOnConfirmedOrderStoreShipperData()* This event is fired after the order has been stored; it gets the shipping method specific data.
289
+Return:+mixed Null when this method was not selected, otherwise true
290
#(integer) The order_id being processed
291
#(object) the cart
292
#array Price information for this order
293
294
295 10 Oscar van Eijk
296
* *plgVmOnShowOrderShipperBE()* - This method is fired when showing the order details in the backend. It displays the shipper-specific data.
297
NOTE, this plugin should NOT be used to display form fields, since it's called outside a form! Use *plgVmOnUpdateOrderBE()( instead!
298
+Return:+
299
Null for shippers that aren't active, text (HTML) otherwise
300
+Parameters:+
301
# (integer) The order ID
302
# (integer) Vendor ID
303
# (object) Object with 2 properties 'carrier' and 'name' 
304
305
* *plgVmOnEditOrderLineShipperBE()* - This method is fired when editing the order line details in the backend. It can be used to add line specific package codes
306
+Return:+
307
Null for shippers that aren't active, text (HTML) otherwise
308
+Parameters:+
309
# (integer) The order ID
310
# (integer) The order Line ID
311
312
* *plgVmOnUpdateOrderShipper()* - Save updated order data to the shipper specific table
313
+Return:+
314
True on success, false on failures (the rest of the save-process will be skipped!), or null when this shipper is not actived.
315
+Parameters:+
316
# (array) Form data
317
318
* *plgVmOnUpdateOrderLineShipper()* - Save updated orderline data to the shipper specific table
319
+Return:+
320
True on success, false on failures (the rest of the save-process will be skipped!), or null when this shipper is not actived.
321
+Parameters:+
322
# (array) Form data
323
324
* *plgVmOnShowOrderShipperFE()* - This method is fired when showing the order details in the frontend.  It displays the shipper-specific data.
325
+Return:+
326
Null for shippers that aren't active, text (HTML) otherwise
327
+Parameters:+
328
# (integer) The order ID
329
330
* *plgVmOnShowOrderLineShipperFE()* - 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
331
+Return:+
332
Null for shippers that aren't active, text (HTML) otherwise
333
+Parameters:+
334
# (integer) The order ID
335
# (integer) The order LineID
336
337
Other helper functions inherited from the base class:
338
339
* *_ createTable()* - This method is used to create and maintain the plugin specific database table(s).
340
It _must_ be reimplemented by all plugins.
341
+Example:+
342
<pre><code class="php">$_scheme = DbScheme::get_instance();
343
$_scheme->create_scheme('#__vm_order_shipper_'.$this->_selement);
344
$_schemeCols = array(
345
	 'id' => array (
346
			 'type' => 'int'
347
			,'length' => 11
348
			,'auto_inc' => true
349
			,'null' => false
350
	)
351
	,'order_id' => array (
352
			 'type' => 'int'
353
			,'length' => 11
354
			,'null' => false
355
	)
356
	,'shipper_id' => array (
357
			 'type' => 'text'
358
			,'null' => false
359
	)
360
);
361
$_schemeIdx = array(
362
	 'idx_order_payment' => array(
363
			 'columns' => array ('order_id')
364
			,'primary' => false
365
			,'unique' => false
366
			,'type' => null
367
	)
368
);
369
$_scheme->define_scheme($_schemeCols);
370
$_scheme->define_index($_schemeIdx);
371
if (!$_scheme->scheme()) {
372
	JError::raiseWarning(500, $_scheme->get_db_error());
373
}
374
$_scheme->reset();
375
</code></pre>
376
377
* *getThisShipperName()* -  Get the name of the shipper
378
+Return:+
379
Shipper name
380
+Parameters:+
381
# (integer) The Shipper ID
382
	final protected function ($_sid)
383
384
* *writeShipperData()* - This method writes all shipper plugin specific data to the plugin's table
385
+Parameters:+
386
# (array) Indexed array in the format 'column_name' => 'value'
387
# (string) Table name
388
389
* *getShippingRateIDForOrder()* - Get the shipping rate ID for a given order number
390
+Return:+
391
The shipping rate ID, or -1 when not found 
392
+Parameters:+
393
# (integer) The order ID
394
395
* *getShippingRate()* -  Get the total price for a shipping rate
396
+Return:+
397
Price in display format
398
+Parameters:+
399
# (integer) Shipping rate ID
400
	
401
* *getShipperIDForOrder()* - Get the shipper ID for a given order number
402
+Return:+
403
The shipper ID, or -1 when not found 
404
+Parameters:+
405
# (integer) The order ID
406
407
* *selectShippingRate()* - Select the shipping rate ID, based on the selected shipper in combination with the shipto address (country and zipcode) and the total order weight.
408
+Return:+
409
Shipping rate ID, -1 when no match is found. Only 1 selected ID will be returned; if more ID's match, the cheapest will be selected.
410
+Parameters:+
411
# (VirtueMartCart object) Cart object
412
# (integer, default 0) Shipper ID, by default taken from the cart
413
414
* *selectedThisShipper()* - This method checks if the selected shipper matches the current plugin
415
+Return:+
416
True if the calling plugin has the given payment ID
417
+Parameters:+
418
# (string) Element name, taken from the plugin filename
419
# (integer) The shipper ID
420
421
* *getOrderWeight()* - Get the total weight for the order, based on which the proper shipping rate can be selected.
422
+Return:+
423
Total weight for the order
424
+Parameters:+
425
# (VirtueMartCart object) Cart object
426
427 18 Valérie Isaksen
* *getShippers()* - Fill an array with all shippers found with this plugin for the current vendor
428 10 Oscar van Eijk
+Return:+
429 23 Valérie Isaksen
True when shipper(s) was (were) found for this vendor, false otherwise
430 10 Oscar van Eijk
+Parameters:+
431
# (integer) The vendor ID taken from the cart.
432
433
* *validateVendor()* - Check if this shipper has carriers for the current vendor.
434
+Return:+
435
True when a shipper_id was found for this vendor, false otherwise
436
+Parameters:+
437
# (integer) The vendor ID taken from the cart.
438 26 Valérie Isaksen
439 27 Valérie Isaksen
* *getShippingHtml* - returns the HTML code to display the form, based on the $shipper_name, $shipper_id, $selectedShipper, $shipper_logo, $shipping_value, $tax_id, $currency_id. To be used by the function plgVmOnSelectShipper().
440 26 Valérie Isaksen
+Return:+
441
returns HTML code to display the form
442
+Parameters:+
443 1 Oscar van Eijk
# (string)  shipper_name
444 26 Valérie Isaksen
# (integer) shipper_id
445 1 Oscar van Eijk
# (integer) selectedShipper id
446 28 Valérie Isaksen
# (string)  shipper_logo to be displayed
447 26 Valérie Isaksen
# (integer) shipping_value to use to calculate the SalesPriceShipping
448
# (integer) tax_id to use to calculate the SalesPriceShipping
449 28 Valérie Isaksen
450 26 Valérie Isaksen
451
* *calculateSalesPriceShipping()* - Returns the 'salesPriceShipping' for a given shipping value, tax id, and currency id.
452
+Return:+
453
returns salesPriceShipping
454
+Parameters:+
455
# (integer) shipping_value 
456
# (integer) tax_id
457
# (integer) currency_id
458
459
* *getShipperLogo()* - Returns the shipper logo image html.
460
+Return:+
461
returns the html code to display the image
462
+Parameters:+
463
# (string) logo image name
464
# (string) alt text to the image