Omniva Shipping Extension for OpenCart 2.x

OpenCart extension documentation

Short Description

This shipping extension allows to define shipping to self-service post terminals “Omniva”. Customer can select “Omniva” station’s address from list for Latvia, Estonia and Lithuania.

Installation And Setup

  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 the installation package.

  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:

saveOmniva: function (confirm) {

this.error = {};

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

$('#omniva').attr('value', $('#shipping_method_address_omniva').val());

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

this.$data.order_data['shipping_code'] = $('#shipping_method_address_omniva').val();

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:

saveOmniva: function (confirm) {

this.error = {};

if (window['_QuickCheckoutAjaxSave']) {

window['_QuickCheckoutAjaxSave'].abort();

}

if (confirm) {

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

}

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

$('#omniva').attr('value', $('#shipping_method_address_omniva').val());

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

this.$data.order_data['shipping_code'] = $('#shipping_method_address_omniva').val();

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)

});

},

  1. Go to admin Extensions -> Shipping, find “Omniva” and click “Install”.

  2. Find “Omniva” and click “Edit”.

  3. 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 “Omniva” 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(➎).

    • 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(➌);

    • Status - select status “Enabled” (➍);

    • “Omniva addresses” - after successful import there will be a list with “Omniva” addresses (➎).

  4. Save changes by clicking “Save” (➏).

Now you can use the module!

Update “Omniva” destination addresses

  1. Go to admin Extensions -> Shipping, find “Omniva” and click “Edit”.

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

Extension upgrade

  1. Go to admin Extensions -> Modifications and delete extension “Omniva Shipping Method”;

  2. Refresh your modifications on the same page;

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

Support

If you need support, click here.

Release history

  • 2.4.0: Apr 25, 2018: Added new feature to show the price depending on weight.

  • 2.4.0: Dec 23, 2016: Added support for Opencart 2.3.x

  • 2.3.1: Sep 06, 2016: Added sort by alphabet for select dropdown; Fixed bug in backend Order -> Edit; Fixed bug in Journal Quickcheckout.

  • 2.3.0: Apr 05, 2016: Added support for Opencart 2.2.x; Fixed bug with tax.

  • 2.2.0: Jan 04, 2016: Created universal extension that should work on any theme, with any checkout.

  • 2.1.0: Jul 29, 2015: Added dropdown in Estimate shipping and taxes, full Journal2 support including Journal2 Quick Checkout, code refactored in line with other Partneris’s shipping extensions.

  • 2.0.3: Mai 29, 2015: Added support for Journal2 theme

  • 2.0.2: Mai 15, 2015: Improved user experience for Installation and setup, improved look at checkout for OC2.x

  • 2.0.1: Mai 15, 2015: Updated omniva station addresses downloading from Omniva to download latest addresses.

  • 2.0.0: Mai 11, 2015: Initial version for Opencart 2.x

Last updated