Config shop.php different for each shop
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!
Config shop.php different for each shop
I have multi shop application.
I have defined validation fields for billing and delivery address in config/shop.php and I have defined decorators etc.. How to do another configuration for each shop/themes ?
I have defined validation fields for billing and delivery address in config/shop.php and I have defined decorators etc.. How to do another configuration for each shop/themes ?
Re: Config shop.php different for each shop
Add the configuration to the Option/Value table of the sites in the Locale > Site panel. This will apply the configuration to that site only. The option must be the configuration key with slashes, e.g. "client/html/checkout/standard/address/billing/..."
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: Config shop.php different for each shop
I added to config locale site below variable
Value is
In database is:
I have error:
Line where mandatory field are got;
Code: Select all
client/html/checkout/standard/address/billing/mandatory
Code: Select all
["order.base.address.firstname","order.base.address.lastname","order.base.address.address1","order.base.address.address2","order.base.address.postal","order.base.address.city","order.base.address.languageid","order.base.address.telephone","order.base.address.tel_prefix","order.base.address.email","order.base.regulations"]
Code: Select all
{"resource":{"email":{"from-email":"test@domain.com","from-name":"Test \/ SK"}},"client":{"html":{"checkout":{"standard":{"address":{"billing":{"mandatory":"[\"order.base.address.firstname\", \"order.base.address.lastname\", \"order.base.address.address1\", \"order.base.address.address2\", \"order.base.address.postal\", \"order.base.address.city\", \"order.base.address.languageid\", \"order.base.address.telephone\", \"order.base.address.tel_prefix\", \"order.base.address.email\",\"order.base.regulations\"]"}}}}}}}
Code: Select all
foreach() argument must be of type array|object, string given
#0 C:\xampp\htdocs\giftcard\vendor\aimeos-extensions\new-ext\client\html\src\Client\Html\Checkout\Standard\Address\Billing\Billing.php(301)
Code: Select all
$mandatory = $view->config('client/html/checkout/standard/address/billing/mandatory', $this->mandatory);
Re: Config shop.php different for each shop
Only scalar values are allowed (no arrays) so you have to add one line per value:
Code: Select all
client/html/checkout/standard/address/billing/mandatory/0 : order.base.address.firstname
client/html/checkout/standard/address/billing/mandatory/1 : order.base.address.lastname
...
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: Config shop.php different for each shop
Ok, thanks