Shipping Labels

Open to all! Ask other shopowners for help.
AsTecModels
Member
Posts: 99
Joined: Wed Mar 18, 2026 6:20 pm
Phoenix Version: v1.1.0.6
Has thanked: 6 times
Been thanked: 3 times

Shipping Labels

Post 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.


Join The Code Co-op to get access to your library in the Code Co-op Forum
frankl
Builder
Posts: 159
Joined: Tue Feb 23, 2021 8:39 pm
Phoenix Version: v1.1.0.4
Has thanked: 17 times
Been thanked: 25 times

Re: Shipping Labels

Post by frankl »

What are you presently using?
AsTecModels
Member
Posts: 99
Joined: Wed Mar 18, 2026 6:20 pm
Phoenix Version: v1.1.0.6
Has thanked: 6 times
Been thanked: 3 times

Re: Shipping Labels

Post 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.
BrockleyJohn
Certified Developer
Posts: 173
Joined: Mon Mar 01, 2021 5:37 pm
Phoenix Version:
Has thanked: 2 times
Been thanked: 30 times

Re: Shipping Labels

Post by BrockleyJohn »

Are you talking about address labels or carrier labels?
AsTecModels
Member
Posts: 99
Joined: Wed Mar 18, 2026 6:20 pm
Phoenix Version: v1.1.0.6
Has thanked: 6 times
Been thanked: 3 times

Re: Shipping Labels

Post 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.
AsTecModels
Member
Posts: 99
Joined: Wed Mar 18, 2026 6:20 pm
Phoenix Version: v1.1.0.6
Has thanked: 6 times
Been thanked: 3 times

Re: Shipping Labels

Post 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?
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Shipping Labels

Post 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.
AsTecModels
Member
Posts: 99
Joined: Wed Mar 18, 2026 6:20 pm
Phoenix Version: v1.1.0.6
Has thanked: 6 times
Been thanked: 3 times

Re: Shipping Labels

Post by AsTecModels »

That did not work, all I get is the text appear on the screen when I click orders.
Dan Cole
Senior Contributor
Posts: 498
Joined: Fri Oct 25, 2019 2:14 pm
Phoenix Version: 1.0.8.21
Has thanked: 67 times
Been thanked: 61 times

Re: Shipping Labels

Post by Dan Cole »

You probably need to add the beginning php code at the top of your hook. ie <?php

Dan
AsTecModels
Member
Posts: 99
Joined: Wed Mar 18, 2026 6:20 pm
Phoenix Version: v1.1.0.6
Has thanked: 6 times
Been thanked: 3 times

Re: Shipping Labels

Post 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
You do not have the required permissions to view the files attached to this post.
Last edited by AsTecModels on Thu Mar 26, 2026 10:14 pm, edited 1 time in total.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply