Adapt Basket

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!
rasch
Posts: 22
Joined: 02 Sep 2019, 11:51

Adapt Basket

Post by rasch » 27 Feb 2020, 09:40

Hi,

How can I hide the voucher code and the order option in the basket?

Thank your for your help.
--
aimeos: 2019.10
ai-site extension
symfony: 4.4
php: 7.2
ubuntu: 18

SaurabhSharma
Posts: 12
Joined: 23 Feb 2020, 10:32

Re: Adapt Basket

Post by SaurabhSharma » 27 Feb 2020, 13:39

You need to create an extension (Read here https://aimeos.org/docs/Developers/Create_an_extension)

Then copy standard file from
ai-client-html/client/html/templates/basket/standard/body-standard.php to
yourextension/client/html/templates/basket/standard directory. Modify the content there.

rasch
Posts: 22
Joined: 02 Sep 2019, 11:51

Re: Adapt Basket

Post by rasch » 28 Feb 2020, 07:58

Thanks for your help. It works.

By deleting the complete <div class="basket-standard-coupon"> section in myextension/client/html/templates/basket/standard/body-standard.php file, the voucher was remove completely.

By deleting the {{ aibody['basket/bulk']|raw }} row in myProject/templates/bundles/AimeosShopBundle/Basket/index.html.twig file, the order section in my basket was remove completly, too.

Post Reply