[Solved]How to fetch total Basket amount on payment page
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 40
- Joined: 02 Dec 2021, 17:18
[Solved]How to fetch total Basket amount on payment page
I need to display total amount of all products / basket value / order amount on payment page just above a form where we enter payment credentials; kindly help me get this digit on payment page.
TIA
TIA
Last edited by kartikbhat on 16 May 2022, 16:14, edited 1 time in total.
Re: How to fetch total Basket amount on payment page
In the checkout templates, the basket is always available with "standardBasket" key, so you can get the price using:
See: https://github.com/aimeos/ai-client-htm ... d.php#L219
Code: Select all
$this->standardBasket->getPrice()->getValue();
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
-
- Posts: 40
- Joined: 02 Dec 2021, 17:18
Re: How to fetch total Basket amount on payment page
Yes; Its resolved; Thank you