Modify add to basket behavior
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Modify add to basket behavior
Hello,
PHP Version 8.2.12
Laravel version: 10
Aimeos version: 2023.10
Environment: windows (XAMPP cross-platform web server).
How i can change a behavior to procedure add product to basket .
I want when user click on button "add to basket".
The product will be add to basket without show checkout popup
PHP Version 8.2.12
Laravel version: 10
Aimeos version: 2023.10
Environment: windows (XAMPP cross-platform web server).
How i can change a behavior to procedure add product to basket .
I want when user click on button "add to basket".
The product will be add to basket without show checkout popup
Re: Modify add to basket behavior
Hi
Default implementation:
https://github.com/aimeos/ai-controller ... d.php#L330
You should overwrite this class.
Default implementation:
https://github.com/aimeos/ai-controller ... d.php#L330
You should overwrite this class.
Re: Modify add to basket behavior
If you only want to avoid the popup and pass the customer directly to the basket, overwrite this JS method and simply return "true":
https://github.com/aimeos/ai-client-htm ... #L362-L378
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Modify add to basket behavior
I dont need pass the customer directly to the basket when click on button add to basket .
I need him to continue shopping and when he finished the shopping press on basket button to checkout and payment.
I need him to continue shopping and when he finished the shopping press on basket button to checkout and payment.
Re: Modify add to basket behavior
Then just remove the createOverlay() and createContainer() from the mentioned onAddBasket() method
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Modify add to basket behavior
Thanks for this replies @aimeos
It worked.
It worked.