Tiny little optimisations - tell me what you need

Open to all! Ask other shopowners for help.
LeeFoster
Contributor
Posts: 263
Joined: Sun Feb 28, 2021 9:41 pm
Phoenix Version: v1.0.8.20
Has thanked: 1 time
Been thanked: 5 times

Re: Tiny little optimisations - tell me what you need

Post by LeeFoster »

bonbec wrote: Tue Aug 27, 2024 4:58 pm However, it lacks the possibility to uncheck or recheck everything at once.
By default, everything is checked. Which means that if I want to sell it only in one country or a small number of countries, I have to manually uncheck all the other countries, which is long to do (unless you know what you're doing and you do it in PhpMyAdmin for example, but not everyone knows how to do it).
Looking at the way countries work it's not as simple as a check box to turn them all on and off again. It's not a list of countries that can be enabled and disabled, you would need to remove them all then manually add the ones you want to use back in.

In order to to disable and enable all using a checkbox you would need to add a status to each county (active/inactive) then code the activate/deactivate all button. Then you would need to identify anywhere that the countries table is called and change the way it looks up countries for selling to. Instead of checking if the users country exists in the table it would need to check it exists and if it is active. Could this be done with a hook? Maybe, but most likely it will be a lot of core code changes for @burt and the team making it not so much of a tiny optimisation.


Join The Code Co-op to get access to your library in the Code Co-op Forum
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: Tiny little optimisations - tell me what you need

Post by burt »

The status was added I think a few versions ago, perhaps 1.0.9.2 or so;
Even so, this checkbox idea is not a tiny change, as you rightly say.
poiuy.jpg
Of course there are other options, one of which is this;
app.php/addons/supporters_code/s03e08_c ... e_selector

I *think* this HT module gives the ability to remove countries from the country dropdown, at least I vaguely remember coding it. Probably the older version which is downloadable.
You do not have the required permissions to view the files attached to this post.
I am not here to build for you.
I am here to build with you. Let's help each other.
LeeFoster
Contributor
Posts: 263
Joined: Sun Feb 28, 2021 9:41 pm
Phoenix Version: v1.0.8.20
Has thanked: 1 time
Been thanked: 5 times

Re: Tiny little optimisations - tell me what you need

Post by LeeFoster »

burt wrote: Wed Aug 28, 2024 2:08 pm The status was added I think a few versions ago, perhaps 1.0.9.2 or so;
My current test store is 1.0.8.20. Hence why I'm missing it.
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: Tiny little optimisations - tell me what you need

Post by Kofod95 »

Maybe a stupid suggestion, but could this maybe split the listing_sql into smaller bits to make it easier to manipulate the listings (fx with filters)? Maybe it should be done in split_page_results, but I would like it to still be seperated here so this hook could ask for $parameters['join'] and $parameters['where'].

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
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: Tiny little optimisations - tell me what you need

Post by burt »

Still open for suggestions of small changes that might make your shopowning life easier|better|more productive etc.

We're all ears.
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: Tiny little optimisations - tell me what you need

Post by Xpajun »

heatherbell wrote: Thu Jul 25, 2024 10:17 am Currently there is no where that a Store Tax ID (VAT Number) can be specifically saved in Admin.
We currently append to Store Address or Store Phone which is just a workaround.
Is it possible to add this to Admin>Configuration>My Store?
Added Company Nº and VAT ID to My Store many versions ago

I think (long ime ago) it was a combination of adding it to the database configuration table and configuration.php
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: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Tiny little optimisations - tell me what you need

Post by burt »

Many thanks to all who took time out to give suggestions in this thread. Here's what was coded up and is now in Core Code due to these suggestions;
every time I save an invoice to pdf format, I have to change the name from 'CE Phoenix Admin tool' to "Invoice nnn", if you could make it save as "INvoice 23" or "invoice 94643" or whatever ID that would be really helpful"
When searching the customers page using the search box, when you type in a name, postcode or what ever into the search box and hit the return on the keyboard the search term no longer displays. The search box goes blank
Its the same when searching the orders page for a particular order. You enter an order number hit the search and the search term does not show.
Searching for a customer with their phone number
Store Tax ID (VAT Number) can be specifically saved in Admin
when you click on an item in the Latest Addons box, the module is set up so it downloads the addon.
a search field to find a country (by name and/or iso codes) to select the country you want.
I am not here to build for you.
I am here to build with you. Let's help each other.
14Steve14
Senior Contributor
Posts: 922
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: Tiny little optimisations - tell me what you need

Post by 14Steve14 »

burt wrote: Sun Sep 29, 2024 9:41 am Many thanks to all who took time out to give suggestions in this thread. Here's what was coded up and is now in Core Code due to these suggestions;
Searching for a customer with their phone number
We also add the searchable bit of code to the Postcode module as that easily also finds a customer, so may be another idea.


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