Jump to content

Prestashop and Endicia for Mac Integration


Recommended Posts

Here is a quick hack I thought I'd share, on PrestaShop 1.5.2

 

edit adminXXXX/themes/default/template/controllers/orders/helpers/view/view.tpl

At line 534 Create a new empty line under the google maps link, paste the following in:

 

<a href="endicia://newShipment2/?ToAddress={$customer->firstname|escape: 'url'}%20{$customer->lastname|escape:'url'}%0D%0A{$addresses.delivery->address1|escape:'url'}%0D%0A{$addresses.delivery->address2|escape:'url'}%0D%0A{$addresses.delivery->city|escape:'url'}%20{if ($addresses.delivery->id_state)}{$addresses.deliveryState->name|escape: 'url'}{/if}%20{$addresses.delivery->postcode|escape:'url'}%0D%0A{$addresses.delivery->country|escape:'url'};ReferenceID={$invoice->getInvoiceNumberFormatted($current_id_lang)|escape:'url'};ToEMail={$customer->email|escape:'url'};Value={$order->total_paid_tax_incl};MailClass=FIRST"><img src="../img/admin/label.png" height="16" alt="Export Shipping Label" class="middle" /></a>

 

download this image and put it in /img/admin

http://uaviation.net...admin/label.png

 

and thats it, you will have a shipping label icon in the shipping address area, press the icon and Endicia for mac should pre-populate.. Edit the link as needed.

post-211637-0-78207200-1353837236_thumb.png

 

 

Very simple, not horribly robust but hell.. its something.

 

Cheers,

-Ryan

Edited by nayr (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 1 year later...

Here is a quick hack I thought I'd share, on PrestaShop 1.5.2

 

edit adminXXXX/themes/default/template/controllers/orders/helpers/view/view.tpl

At line 534 Create a new empty line under the google maps link, paste the following in:

 

download this image and put it in /img/admin

http://uaviation.net...admin/label.png

 

and thats it, you will have a shipping label icon in the shipping address area, press the icon and Endicia for mac should pre-populate.. Edit the link as needed.

attachicon.gifScreen Shot 2012-11-25 at 2.57.39 AM.png

 

 

Very simple, not horribly robust but hell.. its something.

 

Cheers,

-Ryan

 

 

Does this still work with 1.6?

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...