/home/blestasite/public_html/vendors/monolog/monolog/src/Monolog/ErrorHandler.php
array(5) {
[0]=>
int(2)
[1]=>
string(39) "Attempt to read property "code" on bool"
[2]=>
string(68) "/home/blestasite/public_html/plugins/order/order_form_controller.php"
[3]=>
int(693)
[4]=>
array(0) {
}
}
/home/blestasite/public_html/plugins/order/order_form_controller.php
array(4) {
[0]=>
int(2)
[1]=>
string(39) "Attempt to read property "code" on bool"
[2]=>
string(68) "/home/blestasite/public_html/plugins/order/order_form_controller.php"
[3]=>
int(693)
}
/home/blestasite/public_html/plugins/order/order_form_controller.php
array(2) {
[0]=>
NULL
[1]=>
array(2) {
["items"]=>
array(0) {
}
["display_items"]=>
array(0) {
}
}
}
/home/blestasite/public_html/plugins/order/controllers/cart.php
/home/blestasite/public_html/vendors/minphp/bridge/src/Lib/Dispatcher.php
/home/blestasite/public_html/index.php
array(1) {
[0]=>
string(25) "/order/cart/index/domains"
}
$display_item['index'] = $item['index'];
$display_item['type'] = ($i++ == 0 ? $type : 'config_fee');
if (isset($item['transfer'])) {
$display_item['transfer'] = $item['transfer'];
}
$cart['display_items'][] = $display_item;
}
};
foreach ($cart['items'] as $item) {
// Update the items in the cart
$format_service_item($item, 'service', $options);
if (isset($item['addons'])) {
// Get the parent service's pricing info
$pricing = $this->Services->getPackagePricing($item['pricing_id']);
foreach ($item['addons'] as $addon_item) {
// Synchronize this addon with the parent service if set to do so and it is not
// already being prorated
$addon_pricing = $this->Services->getPackagePricing($addon_item['pricing_id']);
if ($pricing
&& !$recurring
&& $addon_pricing
&& ($sync_date = $this->Services->getChildRenewDate(
$addon_pricing,
$pricing,
$this->order_form->client_group_id
))
) {
// Set the prorate date to the parent service's renew date
$options['prorateEndDate'] = $sync_date;
}
$format_service_item($addon_item, 'addon', $options);
unset($options['prorateEndDate']);
}
}
}
// Format totals and discount
$total_keys = ['subtotal', 'total', 'total_without_exclusive_tax', 'discount'];
foreach ($total_keys as $total_key) {
if (isset($line_totals[$total_key])) {
$line_totals[$total_key] = [
'amount' => round($line_totals[$total_key], $currency->precision ?? 4),
'amount_formatted' => $this->CurrencyFormat->format($line_totals[$total_key], $currency->code)
];
}
}
foreach ($line_totals['tax'] as &$tax) {
// Format each tax total
$tax = [
'amount' => round($tax, $currency->precision ?? 4),
'amount_formatted' => $this->CurrencyFormat->format($tax, $currency->code)
];
}
return $line_totals;
}
/**
* Checks if the domain being configured is eligible for bundling
*
* @param array $item A list of item details
* @return boolean True if the domain is eligible for bundling, false otherwise
*/
protected function isItemBundlableDomain($item) {
$bundlable_domain = false;
if (!empty($item['domain']) && !empty($this->order_form->meta['tlds'])) {
$package = $this->Packages->getByPricingId($item['pricing_id'] ?? null);
if ($package && !empty(array_intersect($package->meta->tlds ?? [], $this->order_form->meta['tlds']))) {
$bundlable_domain = true;
}
}
return $bundlable_domain;
}
/**
* Checks if the item being configured is eligible for bundling
*
* @param array $item A list of item details
* @return boolean True if the item is eligible for bundling, false otherwise
*/
protected function isItemBundlablePackage($item) {
return !empty($this->order_form->meta['package_groups'])
&& in_array($item['group_id'], $this->order_form->meta['package_groups']);
}
/**
* Checks if there is a bundle eligible domain in the cart
*
* @return True if the cart contains a bundle eligible domain, false otherwise