Tiny little optimisations - tell me what you need

Open to all! Ask other shopowners for help.
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Tiny little optimisations - tell me what you need

Post by heatherbell »

14Steve14 wrote: Thu Jul 25, 2024 10:36 am I preferred the pagination as I found it easier to use.
Us too.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Fiber
Contributor
Posts: 173
Joined: Mon Oct 26, 2020 12:16 pm
Phoenix Version: v1.1.0.6
Has thanked: 17 times
Been thanked: 27 times

Re: Tiny little optimisations - tell me what you need

Post by Fiber »

What I do myself is add autofocus attribute in admin>login.php so that the cursor is in the first inputfield.
I also do the same for create account>customer_data in my case on the field cd_firstname.php

admin>login.php

Code: Select all

<li class="list-group-item border-top"><?= new Input('username', $input_parameters + ['placeholder' => TEXT_USERNAME, 'autocomplete' => 'username', 'autofocus' => 'autofocus']) ?></li>
includes/modules/customer_data/cd_firstname.php

Code: Select all

$input = new Input('firstname', [
        'id' => $input_id,
	'autofocus' => 'autofocus',
        'autocomplete' => 'given-name',
        'placeholder' => ENTRY_FIRST_NAME_TEXT,
        'minlength' => ENTRY_FIRST_NAME_MIN_LENGTH,
      ]);
Turn up the Max
User avatar
burt
Core Team
Posts: 4550
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 »

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?
Yes, this is fairly simple to add in the install procedure.

Where should the inputted ID be shown in the shop side?
Ditto for the admin side..
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
burt
Core Team
Posts: 4550
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 »

Please see https://www.boia.org/blog/accessibility ... -autofocus
Fiber wrote: Thu Jul 25, 2024 11:21 am What I do myself is add autofocus attribute in admin>login.php
In the admin side on the login page is OK.
On the shop side I am fairly sure we can leave that up to individuals to change as they want it.
I am not here to build for you.
I am here to build with you. Let's help each other.
Fiber
Contributor
Posts: 173
Joined: Mon Oct 26, 2020 12:16 pm
Phoenix Version: v1.1.0.6
Has thanked: 17 times
Been thanked: 27 times

Re: Tiny little optimisations - tell me what you need

Post by Fiber »

burt wrote: Thu Jul 25, 2024 1:12 pm Please see https://www.boia.org/blog/accessibility ... -autofocus
Okay, I didn't know that...
Turn up the Max
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Tiny little optimisations - tell me what you need

Post by heatherbell »

burt wrote: Thu Jul 25, 2024 1:00 pmStore Tax ID (VAT Number)
Where should the inputted ID be shown in the shop side?
Ditto for the admin side..
It is a legal requirement in the U.K. that the VAT Number be displayed permanently on a website and also on invoices.
Therefore, perhaps, an addition to /includes/modules/content/footer/templates/tpl_cm_footer_contact_us.php,
with a conditional check for STORE_TAX_ID being set, after Line 7

Code: Select all

<?php
  if (!Text::is_empty(STORE_TAX_ID)) {
    echo MODULE_CONTENT_FOOTER_CONTACT_US_TAX_ID . STORE_TAX_ID
  }
?>
and similarly in /admin/invoice.php after Line 35

BTW, maybe there should be a conditional check for STORE_PHONE being set on https://github.com/CE-PhoenixCart/Phoen ... _us.php#L6
MyGamesShop
Contributor
Posts: 131
Joined: Wed Mar 10, 2021 3:02 am
Phoenix Version: v1.1.0.6
Has thanked: 8 times
Been thanked: 5 times

Re: Tiny little optimisations - tell me what you need

Post by MyGamesShop »

The IP address from the connected user who sends an email from the sites forms, so I can ban the ones that slip throu the maths capture.
MyGamesShop
Contributor
Posts: 131
Joined: Wed Mar 10, 2021 3:02 am
Phoenix Version: v1.1.0.6
Has thanked: 8 times
Been thanked: 5 times

Re: Tiny little optimisations - tell me what you need

Post by MyGamesShop »

It sound tiny but its not..

I would like to be able to sort the customers with last login or last purchase.

The hope is that I would like to delete old non returning customers and all transactions linked. (with out effecting current stock levels)

This would be useful for privacy requests to remove data or just to clean up the database.

Its currently difficult to comply with legislation as the database records the sales information with the customers names and address, making just deleting the customer non-compliant as the information could be reconstructed using other database entries.
MyGamesShop
Contributor
Posts: 131
Joined: Wed Mar 10, 2021 3:02 am
Phoenix Version: v1.1.0.6
Has thanked: 8 times
Been thanked: 5 times

Re: Tiny little optimisations - tell me what you need

Post by MyGamesShop »

My manufactures list is long.
Maybe break it up from pages 1-100 to Alpha, or allow a key press to jump to a page?
User avatar
burt
Core Team
Posts: 4550
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 »

MyGamesShop wrote: Fri Jul 26, 2024 2:52 am My manufactures list is long.
Maybe break it up from pages 1-100 to Alpha, or allow a key press to jump to a page?
What manufacturers list?
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