How to Let Customers Never Skip to Fill Information

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
ryankim
Posts: 17
Joined: 24 Jul 2020, 18:43

How to Let Customers Never Skip to Fill Information

Post by ryankim » 08 Dec 2021, 17:08

Hello Aimeos,

I am not sure if I can ask you about this..
but I just don't want my customers to skip to fill in the information when they make a purchase.
For example, my website has Shopping Cart, Address, Delivery, Payment, and Summary section.
Once a customer goes through all steps, he doesn't need to go through Address, Delivery, and Payment steps next time.
I think it happens because of Cache, but I don't know where to edit this..
Please help me

Thank you

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: How to Let Customers Never Skip to Fill Information

Post by aimeos » 09 Dec 2021, 18:01

There's currently no way to reconfigure this behavior because the checkout subparts check if there's the required data available or not and stop at that point or let it pass to the next step:
https://github.com/aimeos/ai-client-htm ... #L265-L270

You can change that only be extending the subparts and overwrite the process() methods.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

3hpart
Posts: 4
Joined: 30 Nov 2021, 19:30

Re: How to Let Customers Never Skip to Fill Information

Post by 3hpart » 03 Jan 2022, 07:12

Perfect, thanks. Will start developing this way.

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: How to Let Customers Never Skip to Fill Information

Post by aimeos » 03 Jan 2022, 08:29

In latest dev-master and the upcoming 2022.01, you can overwrite the behavior by adding a isAvailable() macro:
https://github.com/aimeos/ai-client-htm ... d.php#L264

For example:

Code: Select all

\Aimeos\Client\Html\Checkout\Standard\Address\Standard::macro( 'isAvailable', function( $basket ) {
	return false;
}
Same for all other checkout/standard subparts.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply