CMXX - Language selection
This commit is contained in:
@@ -136,7 +136,7 @@ function populate_categories($categories, $selected = 0, $parent_id = 0, $n = 0)
|
||||
|
||||
// Send order details email function
|
||||
function send_order_details_email($email, $products, $first_name, $last_name, $address_street, $address_city, $address_state, $address_zip, $address_country, $subtotal, $discounttotal,$shippingtotal,$taxtotal,$total, $order_id) {
|
||||
include './custom/translations/translations_'.strtoupper(language_code).'.php';
|
||||
include './custom/translations/translations_'.strtoupper($_SESSION['country_code']).'.php';
|
||||
// Send payment notification to webmaster
|
||||
$address_name = htmlspecialchars($first_name ?? '', ENT_QUOTES).' '.htmlspecialchars($last_name ?? '', ENT_QUOTES);
|
||||
if (email_notifications) {
|
||||
@@ -160,7 +160,7 @@ function send_order_details_email($email, $products, $first_name, $last_name, $a
|
||||
|
||||
//Send email to administrator for out of stock notification // only for registered users
|
||||
function send_product_notification_email($email,$product_details){
|
||||
include './custom/translations/translations_'.strtoupper(language_code).'.php';
|
||||
include './custom/translations/translations_'.strtoupper($_SESSION['country_code']).'.php';
|
||||
|
||||
$subject = $subject_out_of_stock.' - '.$product_details;
|
||||
$headers = 'From: ' . mail_from . "\r\n" . 'Reply-To: ' . $email . "\r\n" . 'Return-Path: ' . mail_from . "\r\n" . 'X-Mailer: PHP/' . phpversion() . "\r\n" . 'MIME-Version: 1.0' . "\r\n" . 'Content-Type: text/html; charset=UTF-8' . "\r\n";
|
||||
@@ -316,7 +316,7 @@ function format_bytes($bytes) {
|
||||
|
||||
function getAccessoiries($clientsecret, $categoryID){
|
||||
|
||||
include './custom/translations/translations_'.strtoupper(language_code).'.php';
|
||||
include './custom/translations/translations_'.strtoupper($_SESSION['country_code']).'.php';
|
||||
|
||||
//GET CATALOG DATA
|
||||
$additional_products = ioAPIv2('/v2/catalog/category='.$categoryID,'',$clientsecret);
|
||||
@@ -366,7 +366,7 @@ function getAccessoiries($clientsecret, $categoryID){
|
||||
|
||||
function getSamples($clientsecret, $categoryID){
|
||||
|
||||
include './custom/translations/translations_'.strtoupper(language_code).'.php';
|
||||
include './custom/translations/translations_'.strtoupper($_SESSION['country_code']).'.php';
|
||||
|
||||
//GET CATALOG DATA
|
||||
$additional_products = ioAPIv2('/v2/catalog/category='.$categoryID,'',$clientsecret);
|
||||
@@ -522,7 +522,7 @@ function generateInvoice($invoice,$orderID){
|
||||
|
||||
function freeShipment($price, $type){
|
||||
|
||||
include './custom/translations/translations_'.strtoupper(language_code).'.php';
|
||||
include './custom/translations/translations_'.strtoupper($_SESSION['country_code']).'.php';
|
||||
|
||||
//Free delivery indicator
|
||||
$delivery_status = ($price >= free_shipment_price) ? $free_delivery : $non_free_delivery.currency_code.free_shipment_price.',-';
|
||||
@@ -538,7 +538,7 @@ function freeShipment($price, $type){
|
||||
|
||||
function consent()
|
||||
{
|
||||
include './custom/translations/translations_'.strtoupper(language_code).'.php';
|
||||
include './custom/translations/translations_'.strtoupper($_SESSION['country_code']).'.php';
|
||||
|
||||
$age_consent = '
|
||||
<div id="simple-cookie-consent">
|
||||
@@ -564,7 +564,7 @@ function consent()
|
||||
|
||||
function banner()
|
||||
{
|
||||
include './custom/translations/translations_'.strtoupper(language_code).'.php';
|
||||
include './custom/translations/translations_'.strtoupper($_SESSION['country_code']).'.php';
|
||||
|
||||
$banner = '
|
||||
<div id="banner">
|
||||
@@ -589,7 +589,7 @@ function consent()
|
||||
|
||||
function maintenanceMode()
|
||||
{
|
||||
include './custom/translations/translations_'.strtoupper(language_code).'.php';
|
||||
include './custom/translations/translations_'.strtoupper($_SESSION['country_code']).'.php';
|
||||
|
||||
$maintenanceMode = '
|
||||
<div id="simple-cookie-consent">
|
||||
@@ -635,7 +635,7 @@ function getPictureID($pdo,$id,$config){
|
||||
//++++++++++++++++++++++++++++++++++++++++
|
||||
function highlightedProducts($clientsecret,$categoryID,$range){
|
||||
|
||||
include './custom/translations/translations_'.strtoupper(language_code).'.php';
|
||||
include './custom/translations/translations_'.strtoupper($_SESSION['country_code']).'.php';
|
||||
|
||||
//GET CATALOG DATA
|
||||
$products = ioAPIv2('/v2/catalog/category='.$categoryID,'',$clientsecret);
|
||||
|
||||
Reference in New Issue
Block a user