S05e01 - Batch Actions QUESTIONS/SUPPORT

Open to all! Ask other shopowners for help.
14Steve14
Senior Contributor
Posts: 920
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: S05e01 - Batch Actions

Post by 14Steve14 »

ecartz wrote: Wed Dec 21, 2022 9:23 am 1. It should be able to work with customer data. I don't see why it would not. At worst, you might have to call it as Guarantor::ensure_global('customer_data') the first time that it is used.
2. In this specific case, you have to ask for country_name rather than country, as country is an array of things. Something like $order->delivery['country']['title'] might work too. But using country_name with the customer_data global is more reliable.

Using customer data is preferred because it knows how to load missing data. So you don't have to rely on another process to load the data first. It should be able to find it from what's already there.
Thanks for the explanation. Much appreciated.

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: S05e01 - Batch Actions

Post by heatherbell »

Just sharing in case it helps others.
We use the Pick & Pack list a lot but, by default, it generates the orders in descending order of Order Id#
For us, it is better that the list is in ascending Order Id# order, so the last order in the list is the last order received.
So, in /admin/ext/batcher/batch_pick_pack.php
After (Line 20)

Code: Select all

  $oIDs = explode(',', $_GET['invoices']);
add

Code: Select all

  $oIDsReversed = array_reverse($oIDs);
and change Line 40 to

Code: Select all

        foreach ($oIDsReversed as $key) {
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

Re: S05e01 - Batch Actions

Post by Xpajun »

ecartz wrote: Mon Aug 22, 2022 9:54 am Maybe

Code: Select all

        'name' => TABLE_HEADING_ORDER_ID . new Tickable('select_all', ['value' => $row['orders_id'], 'onchange' => 'select_all()'], 'checkbox'),

Code: Select all

  <script>
  function select_all() {
    $.each($("input[name='actions_multi[]']"), function(){ $(this).val($("input[name='select_all']").val()); });
  }

  function batcher(file, where) {
One line modified; four lines added; two lines listed unchanged for context.

If that's not it, I'm sure someone could tweak something together.
@14Steve14 did you manage to get this working - trying tho do the same but having no luck
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18
14Steve14
Senior Contributor
Posts: 920
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: S05e01 - Batch Actions

Post by 14Steve14 »

Xpajun wrote: Mon Feb 26, 2024 4:52 pm @14Steve14 did you manage to get this working - trying tho do the same but having no luck
@Xpajun
No I didn't. I gave up in the end. I did contact Gary about coding this and he came up with something for my 1.0.8.20 test site which works, but I could not get it to work on my older version. Not too sure whether it has been included in the core supporters files or not.
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

Re: S05e01 - Batch Actions

Post by Xpajun »

14Steve14 wrote: Tue Feb 27, 2024 1:11 pm
Xpajun wrote: Mon Feb 26, 2024 4:52 pm @14Steve14 did you manage to get this working - trying tho do the same but having no luck
@Xpajun
No I didn't. I gave up in the end. I did contact Gary about coding this and he came up with something for my 1.0.8.20 test site which works, but I could not get it to work on my older version. Not too sure whether it has been included in the core supporters files or not.
Thanks for your input Steve I was currently trying it on my 1.0.8.20 and had no luck - hopefully @burt might be along with an answer as to whether is has been or will be included in the file or not
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: S05e01 - Batch Actions

Post by burt »

What is it you're after Juls ?

An "all" tickbox ?
14Steve14
Senior Contributor
Posts: 920
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: S05e01 - Batch Actions

Post by 14Steve14 »

burt wrote: Tue Feb 27, 2024 6:10 pm What is it you're after Juls ?

An "all" tickbox ?
Gary you may not remember but you coded a select all button for me for this pro module for my latest 1.0.8.20 test store.
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: S05e01 - Batch Actions

Post by burt »

I'll find it, cheers
I am not here to build for you.
I am here to build with you. Let's help each other.
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

Re: S05e01 - Batch Actions

Post by Xpajun »

burt wrote: Tue Feb 27, 2024 6:10 pm What is it you're after Juls ?

An "all" tickbox ?
Hi Gary - I've added the all tick box as per Matt's post above but the script he suggested doesn't work any help would be apreciated
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: S05e01 - Batch Actions

Post by burt »

Check your PM inbox.
I am not here to build for you.
I am here to build with you. Let's help each other.


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