Thanks for the explanation. Much appreciated.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.
S05e01 - Batch Actions QUESTIONS/SUPPORT
-
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
Tags:
-
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
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)
add
and change Line 40 to
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']);Code: Select all
$oIDsReversed = array_reverse($oIDs);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
@14Steve14 did you manage to get this working - trying tho do the same but having no luckecartz wrote: ↑Mon Aug 22, 2022 9:54 am MaybeCode: Select all
'name' => TABLE_HEADING_ORDER_ID . new Tickable('select_all', ['value' => $row['orders_id'], 'onchange' => 'select_all()'], 'checkbox'),One line modified; four lines added; two lines listed unchanged for context.Code: Select all
<script> function select_all() { $.each($("input[name='actions_multi[]']"), function(){ $(this).val($("input[name='select_all']").val()); }); } function batcher(file, where) {
If that's not it, I'm sure someone could tweak something together.
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest
- php 8.2.18
Now working on taking a short rest
-
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
@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
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 not14Steve14 wrote: ↑Tue Feb 27, 2024 1:11 pm@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.
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest
- php 8.2.18
Now working on taking a short rest
- burt
- Core Team
- Posts: 4546
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
-
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
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.
- burt
- Core Team
- Posts: 4546
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: S05e01 - Batch Actions
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.
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
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
- php 8.2.18
Now working on taking a short rest
- burt
- Core Team
- Posts: 4546
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: S05e01 - Batch Actions
Check your PM inbox.
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.