Setup B2B shop

Help for integrating the Laravel package
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!
Mightrider
Posts: 15
Joined: 05 Apr 2018, 10:26

Setup B2B shop

Post by Mightrider » 25 Jul 2018, 13:46

Hey,

I try to setup the B2B shop with the vatcheck extension. I followed all the steps mentioned in the manual https://aimeos.org/docs/User_Manual/Setup_B2B_shop but if I buy something in the Store there is no VAT included for if no VAT ID is given or the VAT id is located in my country.

I set the taxflag to zero and added the decorator to the config as well.
Do you have any input why no VAT is applied?

Code: Select all

	'client' => [
		'html' => [
			'basket' => [
				'cache' => [
					// 'enable' => false, // Disable basket content caching
				],
			],
			'checkout' => [
				'standard' => [
					'address' => [
						'billing' => [
							'mandatory' => [
								'order.base.address.salutation',
						    'order.base.address.firstname',
						    'order.base.address.lastname',
						    'order.base.address.address1',
						    'order.base.address.postal',
						    'order.base.address.city',
						    'order.base.address.languageid',
								'order.base.address.countryid',
						    'order.base.address.email',
							],
							'optional' => [
								'order.base.address.company',
								'order.base.address.vatid',
							],
						],
						'delivery' => [
							'mandatory' => [
								'order.base.address.salutation',
						    'order.base.address.firstname',
						    'order.base.address.lastname',
						    'order.base.address.address1',
						    'order.base.address.postal',
						    'order.base.address.city',
						    'order.base.address.languageid',
								'order.base.address.countryid',
						    'order.base.address.email',
							],
							'optional' => [
								'order.base.address.company',
								'order.base.address.vatid',
							],
						],
						'decorators' => [
							'global' => [
								'VatCheck'
							],
						],
					],
				],
			],
		],
	],

	'mshop' => [
		'price' => [
			'taxflag' => 0
		],
	],
Thank you in advance for your support!

Local installation, MacOS High Sierra
php: 7.1.4,
laravel/framework: 5.4,
aimeos/aimeos-laravel: 2018.04
aimeoscom/ai-vatcheck: 2018.04.5
Attachments
AddVat config.
AddVat config.
Screen Shot 2018-07-25 at 15.42.14.png (66 KiB) Viewed 1245 times

nos3
Posts: 87
Joined: 01 Sep 2015, 13:26

Re: Setup B2B shop

Post by nos3 » 27 Jul 2018, 06:33

Mightrider wrote: I try to setup the B2B shop with the vatcheck extension. I followed all the steps mentioned in the manual https://aimeos.org/docs/User_Manual/Setup_B2B_shop but if I buy something in the Store there is no VAT included for if no VAT ID is given or the VAT id is located in my country.
Your configuration is correct and in my setup (Laravel 5.6, Aimeos 2018.07, ai-vatcheck 2018.07 because 2018.04 isn't supported any more), everything works fine. Do you have a publically available test installation where I can test myself?

Cheers

Norbert

Post Reply