Merge branch 'development' of https://github.com/PrestaShop/PrestaShop into development
This commit is contained in:
@@ -267,6 +267,9 @@ class ToolsCore
|
|||||||
// $_SERVER['SSL'] exists only in some specific configuration
|
// $_SERVER['SSL'] exists only in some specific configuration
|
||||||
if (isset($_SERVER['SSL']))
|
if (isset($_SERVER['SSL']))
|
||||||
return ($_SERVER['SSL'] == 1 || strtolower($_SERVER['SSL']) == 'on');
|
return ($_SERVER['SSL'] == 1 || strtolower($_SERVER['SSL']) == 'on');
|
||||||
|
// $_SERVER['REDIRECT_HTTPS'] exists only in some specific configuration
|
||||||
|
if (isset($_SERVER['REDIRECT_HTTPS']))
|
||||||
|
return ($_SERVER['REDIRECT_HTTPS'] == 1 || strtolower($_SERVER['REDIRECT_HTTPS']) == 'on');
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -211,6 +211,8 @@ class HTMLTemplateOrderSlipCore extends HTMLTemplateInvoice
|
|||||||
if ($ecotax)
|
if ($ecotax)
|
||||||
foreach ($tmp_tax_infos as $rate => &$row)
|
foreach ($tmp_tax_infos as $rate => &$row)
|
||||||
{
|
{
|
||||||
|
if (!isset($ecotax[$rate]))
|
||||||
|
continue
|
||||||
$row['total_price_tax_excl'] -= $ecotax[$rate]['ecotax_tax_excl'];
|
$row['total_price_tax_excl'] -= $ecotax[$rate]['ecotax_tax_excl'];
|
||||||
$row['total_amount'] -= ($ecotax[$rate]['ecotax_tax_incl'] - $ecotax[$rate]['ecotax_tax_excl']);
|
$row['total_amount'] -= ($ecotax[$rate]['ecotax_tax_incl'] - $ecotax[$rate]['ecotax_tax_excl']);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user