Page 1 of 2

Shipping Labels

Posted: Wed Mar 25, 2026 11:04 pm
by AsTecModels
Hi All,

After all the help you have all give I am about ready to go live. The only thing I can not see how to do is to print shipping labels or envelopes.

Any help would be appreciated with this, either how to do it or an add on that will do it.

Re: Shipping Labels

Posted: Wed Mar 25, 2026 11:51 pm
by frankl
What are you presently using?

Re: Shipping Labels

Posted: Thu Mar 26, 2026 7:24 am
by AsTecModels
Currently use OsComm which I have a button to do the labels automatically.

I see the packing slips fairly ok but nothing for the label which means cutting and pasting each order.

Re: Shipping Labels

Posted: Thu Mar 26, 2026 7:36 am
by BrockleyJohn
Are you talking about address labels or carrier labels?

Re: Shipping Labels

Posted: Thu Mar 26, 2026 7:57 am
by AsTecModels
Address labels so I can take to the post office.

I can already do the courier ones, but postal ones I just need the address on.

Re: Shipping Labels

Posted: Thu Mar 26, 2026 8:45 pm
by AsTecModels
I have started to write a mod to do the labels as I want them but can not work how to put a button next to the "Invoice" and "packing slip" buttons. Can anyone help?

Re: Shipping Labels

Posted: Thu Mar 26, 2026 9:01 pm
by burt
Hook your Button, eg a file called /includes/hooks/admin/orders/labelMod.php

Code: Select all

class hook_admin_orders_labelMod {

  public function listen_extraButtons() {
    if (empty($_GET['action'])) {
      return $GLOBALS['Admin']->button('', 'fas fa-note-sticky', 'btn-warning me-2', $GLOBALS['Admin']->link('orders.php', ['action' => 'labels']));
    }
  }
  
}
Note I have not tested this, but it looks like it should work.

This will link to orders.php?action=labels so you are hopefully making this mod using a view called labels, see /admin/includes/actions/orders/views/
If not, just amend the link appropriately.

Re: Shipping Labels

Posted: Thu Mar 26, 2026 9:35 pm
by AsTecModels
That did not work, all I get is the text appear on the screen when I click orders.

Re: Shipping Labels

Posted: Thu Mar 26, 2026 9:48 pm
by Dan Cole
You probably need to add the beginning php code at the top of your hook. ie <?php

Dan

Re: Shipping Labels

Posted: Thu Mar 26, 2026 9:49 pm
by AsTecModels
Put "<?php" at the front and button appears, wrong place but appears. I want it to appear next to packing slip (see attachment)
Also need it to link to envelope.php which is in the same folder as packingslip.php