Venipak Pickup Shipping Extension for OpenCart 2.x-3.x

OpenCart extension documentation

Short Description

This shipping extension allows you to define shipping to self-service post terminals "Venipak". Customers can select "Venipak" station's address from the list for Latvia, Estonia and Lithuania.

Pre-Installation for OpenCart version 3.0.3.6

Replace the system/modification.xml file with the modification file you can get here: https://github.com/kenfai/opencart/blob/d31b4ebe3fd29dcc8861725d4934c6e3dd68e019/upload/system/modification.xml

Installation And Setup for OpenCart 2.x and 3.x

  1. Make backup of store files and database before you install the module (just a healthy habit).

  2. Go to admin Extensions -> Extension Installer and upload file venipak-pickup-shipping-ocXx_v.x.x.x.ocmod.zip.

  3. If You have Journal 3:

    • open the file catalog/view/theme/journal3/js/checkout.js

    • find:

save: function (confirm) {

    • add before if you have Journal 3.0.x version:

saveVenipak: function (confirm) {

this.error = {};

$('#venipak').prop('checked', '');

if ($('#shipping_method_address_venipak').val()) { $('#venipak').attr('value', $('#shipping_method_address_venipak').val()); this.$data.order_data['shipping_code'] = $('#shipping_method_address_venipak').val();

} else {

this.$data.order_data['shipping_code'] = 'venipak.venipak_0'; } $('#venipak').prop('checked', 'checked');

this.ajax({

url: 'index.php?route=journal3/checkout/save' + (confirm ? '&confirm=true' : ''),

data: {

account: this.account,

order_data: this.order_data,

password: this.password,

password2: this.password2,

same_address: this.same_address,

newsletter: this.newsletter,

privacy: this.privacy,

agree: this.agree,

payment_address_type: this.payment_address_type,

shipping_address_type: this.shipping_address_type,

coupon: this.coupon,

voucher: this.voucher,

reward: this.reward

},

success: function (json) {

this.update(json, confirm);

}.bind(this)

});

},

    • add before if you have Journal 3.1.x version:

saveVenipak: function (confirm) {

this.error = {};

if (window['_QuickCheckoutAjaxSave']) {

window['_QuickCheckoutAjaxSave'].abort();

}

if (confirm) {

loader('.quick-checkout-wrapper', true);

}

//$('#venipak').prop('checked', '');

if ($('#shipping_method_address_venipak').val()) { $('#venipak').attr('value', $('#shipping_method_address_venipak').val()); this.$data.order_data['shipping_code'] = $('#shipping_method_address_venipak').val();

} else {

this.$data.order_data['shipping_code'] = 'venipak.venipak_0'; }

$('#venipak').prop('checked', 'checked');

window['_QuickCheckoutAjaxSave'] = this.ajax({

url: 'index.php?route=journal3/checkout/save' + (confirm ? '&confirm=true' : ''),

data: {

checkout_id: this.checkout_id,

account: this.account,

order_data: this.order_data,

password: this.password,

password2: this.password2,

same_address: this.same_address,

newsletter: this.newsletter,

privacy: this.privacy,

agree: this.agree,

payment_address_type: this.payment_address_type,

shipping_address_type: this.shipping_address_type,

coupon: this.coupon,

voucher: this.voucher,

reward: this.reward

},

success: function (json) {

window['_QuickCheckoutAjaxSave'] = null;

this.update(json, confirm);

}.bind(this)

});

},

4. Go to admin Extensions -> Extensions -> [Shipping] -> Venipak and click "Install" .

5. Find "Venipak" and click "Edit".

6. A page will open with a form you need to fill:

    • General:

      • Max. Dimensions (L x W x H) - write maximum allowed product dimensions (➊);

      • Max. Weight - write max allowed product weight(➋);

      • URL to CSV file for import addresses - there will be an URL to CSV file for import "Venipak" addresses in Latvia, Lithuania and Estonia; This url may change in future, so you can then change it here(➌).

      • Status - select status "Enabled"(➍);

        • Sort Order - enter sort order(➎).

    • After that you need to fill fields in the each of geo zones (Shipping Latvia, Shipping Lithuania and Shipping Estonia):

  • Geo Zone: Select the Geo Zone That represents the corresponding country (➊).

  • Tax Class: select tax class that will apply to cost(➋);

  • Cost: write cost for delivery(➌);

  • Free shipping after: define cart amount from which the shipping is free(➍);

  • Status - select status "Enabled" (➎);

  • "Venipak addresses"- after successful import there will be a list with "Venipak" addresses (➏) - only for OpenCart version 2.x.

  • Save changes by clicking "Save" or for OpenCart 2.x "Update addresses & Save"(7) .

Now you can use the extension!

Checkout Screenshot

Update "Venipak" destination addresses (only for OpenCart 3.x)

  1. Go to admin Extensions->Extensions->[Shipping]->Venipak and click "Edit".

  2. Click the button "Update addresses & Save". The list of available Venipak terminals will be updated from the link in URL to CSV file for import addresses (see Installation step 6).

Extension upgrade

  1. Install the new package following exactly the same steps described in the Installation And Setup section above.

Release history

  • 3.0.2.0: 2018-04-25: Compatibility with journal2 theme.

  • 3.0.0.0: 2017-11-15: Initial version for OpenCart 3.x

Last updated