Add link "to checkout" in mini basket
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!
Add link "to checkout" in mini basket
Hi Aimeos-Team,
how can I add a link in mini-basket "to checkout" to go directly to the checkout pages.
I overwrite the template for the mini basket:
but the link in href is "relative" to the page instead of "/checkout?ai%5Baction%5D=standard&ai%5Bcontroller%5D=Checkout"
It seems that "client/html/checkout/standard/url" only return "?ai%5Baction%5D=standard&ai%5Bcontroller%5D=Checkout"
Thank you!
Ralf
how can I add a link in mini-basket "to checkout" to go directly to the checkout pages.
I overwrite the template for the mini basket:
Code: Select all
<div class="to-checkout">
<a class="btn btn-primary" href="<?= $enc->attr( $this->link( 'client/html/checkout/standard/url' ) ) ?>">
<?= $enc->html( $this->translate( 'client', 'Checkout' ), $enc::TRUST ) ?>
</a>
</div>
It seems that "client/html/checkout/standard/url" only return "?ai%5Baction%5D=standard&ai%5Bcontroller%5D=Checkout"
Thank you!
Ralf
Thanks a lot!
Re: Add link "to checkout" in mini basket
Add "absoluteUri" as third parameter to the link view helper call:
Documentation: https://aimeos.org/docs/latest/infrastr ... view/#link
Code: Select all
$this->link( 'client/html/checkout/standard/url', [], ['absoluteUri' => 1] )
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Add link "to checkout" in mini basket
Documentation...it could be so easy
Thank you!
Thank you!
Thanks a lot!