Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order total shipping class errors when product are virtuals #660

Open
tgely opened this issue May 31, 2020 · 0 comments
Open

Order total shipping class errors when product are virtuals #660

tgely opened this issue May 31, 2020 · 0 comments

Comments

@tgely
Copy link
Contributor

tgely commented May 31, 2020

if (strpos($_SESSION['shipping']['id'], '\\') !== false) {
list($vendor, $app, $module) = explode('\\', $_SESSION['shipping']['id']);
list($module, $method) = explode('_', $module);
$module = $vendor . '\\' . $app . '\\' . $module;
$code = 'Shipping_' . str_replace('\\', '_', $module);
if (Registry::exists($code)) {
$OSCOM_SM = Registry::get($code);
}
} else {
list($module, $method) = explode('_', $_SESSION['shipping']['id']);
if (is_object($GLOBALS[$module])) {
$OSCOM_SM = $GLOBALS[$module];
}
}

PHP Notice:  Undefined offset: 1 in \includes\modules\order_total\ot_shipping.php on line 60
PHP Stack trace:
PHP   1. {main}() \checkout_confirmation.php:0
PHP   2. order_total->process() \checkout_confirmation.php:96
PHP   3. ot_shipping->process() \includes\classes\order_total.php:54
PHP Notice:  Undefined index:  in \includes\modules\order_total\ot_shipping.php on line 62
PHP Stack trace:
PHP   1. {main}() \website\checkout_confirmation.php:0
PHP   2. order_total->process() \website\checkout_confirmation.php:96
PHP   3. ot_shipping->process() \website\includes\classes\order_total.php:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant