Problem z nagłówkiem - zmianą EN
This commit is contained in:
parent
d4277974fa
commit
b7781fccaa
30
config.php
Normal file
30
config.php
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
// Defines all configuration for the app.
|
||||||
|
// Generated by Gemini.
|
||||||
|
|
||||||
|
// Determine the base URL dynamically
|
||||||
|
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
|
||||||
|
$host = $_SERVER['HTTP_HOST'];
|
||||||
|
$script_name = $_SERVER['SCRIPT_NAME'];
|
||||||
|
|
||||||
|
// If the script is in a subdirectory, include it in the base URL
|
||||||
|
$path_parts = pathinfo($script_name);
|
||||||
|
$directory = $path_parts['dirname'];
|
||||||
|
|
||||||
|
// If the directory is the root, don't add a trailing slash
|
||||||
|
if ($directory === '/') {
|
||||||
|
$directory = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Construct the base URL, ensuring no double slashes if $directory is empty
|
||||||
|
$base_url = rtrim($protocol . $host . $directory, '/') . '/';
|
||||||
|
|
||||||
|
define('BASE_URL', $base_url);
|
||||||
|
|
||||||
|
|
||||||
|
// Database credentials
|
||||||
|
// Generated by setup_mariadb_project.sh — edit as needed.
|
||||||
|
define('DB_HOST', '127.0.0.1');
|
||||||
|
define('DB_NAME', 'app_36782');
|
||||||
|
define('DB_USER', 'app_36782');
|
||||||
|
define('DB_PASS', '20e376d2-5a05-4dbf-b7c6-b0ad2ea996d6');
|
||||||
@ -1,9 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
// Generated by setup_mariadb_project.sh — edit as needed.
|
require_once __DIR__ . '/../config.php';
|
||||||
define('DB_HOST', '127.0.0.1');
|
|
||||||
define('DB_NAME', 'app_36782');
|
|
||||||
define('DB_USER', 'app_36782');
|
|
||||||
define('DB_PASS', '20e376d2-5a05-4dbf-b7c6-b0ad2ea996d6');
|
|
||||||
|
|
||||||
function db() {
|
function db() {
|
||||||
static $pdo;
|
static $pdo;
|
||||||
@ -14,4 +10,4 @@ function db() {
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
return $pdo;
|
return $pdo;
|
||||||
}
|
}
|
||||||
700
debug_price.log
700
debug_price.log
@ -196,3 +196,703 @@ Product price query executed. Found: {"price_net":"233.20","price_gross":"286.84
|
|||||||
Found product price. Net: 233.2, Gross: 286.84
|
Found product price. Net: 233.2, Gross: 286.84
|
||||||
FINAL: Returning Net: 233.2, Gross: 286.84
|
FINAL: Returning Net: 233.2, Gross: 286.84
|
||||||
---
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 1, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"1111.00","price_gross":"1366.53"}
|
||||||
|
Found product price. Net: 1111, Gross: 1366.53
|
||||||
|
FINAL: Returning Net: 1111, Gross: 1366.53
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"1318.05","price_gross":"1621.20"}
|
||||||
|
Found product price. Net: 1318.05, Gross: 1621.2
|
||||||
|
FINAL: Returning Net: 1318.05, Gross: 1621.2
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 3, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"}
|
||||||
|
Found product price. Net: 9.95, Gross: 12.24
|
||||||
|
FINAL: Returning Net: 9.95, Gross: 12.24
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 4, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"}
|
||||||
|
Found product price. Net: 9.95, Gross: 12.24
|
||||||
|
FINAL: Returning Net: 9.95, Gross: 12.24
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 5, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"68.00","price_gross":"83.64"}
|
||||||
|
Found product price. Net: 68, Gross: 83.64
|
||||||
|
FINAL: Returning Net: 68, Gross: 83.64
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 6, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"171.60","price_gross":"211.07"}
|
||||||
|
Found product price. Net: 171.6, Gross: 211.07
|
||||||
|
FINAL: Returning Net: 171.6, Gross: 211.07
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 7, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"233.20","price_gross":"286.84"}
|
||||||
|
Found product price. Net: 233.2, Gross: 286.84
|
||||||
|
FINAL: Returning Net: 233.2, Gross: 286.84
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 1, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"894.31","price_gross":"1100.00"}
|
||||||
|
Found client price. Net: 894.31, Gross: 1100
|
||||||
|
FINAL: Returning Net: 894.31, Gross: 1100
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"1056.91","price_gross":"1300.00"}
|
||||||
|
Found client price. Net: 1056.91, Gross: 1300
|
||||||
|
FINAL: Returning Net: 1056.91, Gross: 1300
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 3, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"32.52","price_gross":"40.00"}
|
||||||
|
Found client price. Net: 32.52, Gross: 40
|
||||||
|
FINAL: Returning Net: 32.52, Gross: 40
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 4, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"}
|
||||||
|
Found product price. Net: 9.95, Gross: 12.24
|
||||||
|
FINAL: Returning Net: 9.95, Gross: 12.24
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 5, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"68.00","price_gross":"83.64"}
|
||||||
|
Found product price. Net: 68, Gross: 83.64
|
||||||
|
FINAL: Returning Net: 68, Gross: 83.64
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 6, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"171.60","price_gross":"211.07"}
|
||||||
|
Found product price. Net: 171.6, Gross: 211.07
|
||||||
|
FINAL: Returning Net: 171.6, Gross: 211.07
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 7, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"233.20","price_gross":"286.84"}
|
||||||
|
Found product price. Net: 233.2, Gross: 286.84
|
||||||
|
FINAL: Returning Net: 233.2, Gross: 286.84
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 1, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"1111.00","price_gross":"1366.53"}
|
||||||
|
Found product price. Net: 1111, Gross: 1366.53
|
||||||
|
FINAL: Returning Net: 1111, Gross: 1366.53
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"1318.05","price_gross":"1621.20"}
|
||||||
|
Found product price. Net: 1318.05, Gross: 1621.2
|
||||||
|
FINAL: Returning Net: 1318.05, Gross: 1621.2
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 3, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"}
|
||||||
|
Found product price. Net: 9.95, Gross: 12.24
|
||||||
|
FINAL: Returning Net: 9.95, Gross: 12.24
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 4, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"}
|
||||||
|
Found product price. Net: 9.95, Gross: 12.24
|
||||||
|
FINAL: Returning Net: 9.95, Gross: 12.24
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 5, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"68.00","price_gross":"83.64"}
|
||||||
|
Found product price. Net: 68, Gross: 83.64
|
||||||
|
FINAL: Returning Net: 68, Gross: 83.64
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 6, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"171.60","price_gross":"211.07"}
|
||||||
|
Found product price. Net: 171.6, Gross: 211.07
|
||||||
|
FINAL: Returning Net: 171.6, Gross: 211.07
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 7, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"233.20","price_gross":"286.84"}
|
||||||
|
Found product price. Net: 233.2, Gross: 286.84
|
||||||
|
FINAL: Returning Net: 233.2, Gross: 286.84
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 1, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"894.31","price_gross":"1100.00"}
|
||||||
|
Found client price. Net: 894.31, Gross: 1100
|
||||||
|
FINAL: Returning Net: 894.31, Gross: 1100
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"1056.91","price_gross":"1300.00"}
|
||||||
|
Found client price. Net: 1056.91, Gross: 1300
|
||||||
|
FINAL: Returning Net: 1056.91, Gross: 1300
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 3, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"32.52","price_gross":"40.00"}
|
||||||
|
Found client price. Net: 32.52, Gross: 40
|
||||||
|
FINAL: Returning Net: 32.52, Gross: 40
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 4, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"}
|
||||||
|
Found product price. Net: 9.95, Gross: 12.24
|
||||||
|
FINAL: Returning Net: 9.95, Gross: 12.24
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 5, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"68.00","price_gross":"83.64"}
|
||||||
|
Found product price. Net: 68, Gross: 83.64
|
||||||
|
FINAL: Returning Net: 68, Gross: 83.64
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 6, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"171.60","price_gross":"211.07"}
|
||||||
|
Found product price. Net: 171.6, Gross: 211.07
|
||||||
|
FINAL: Returning Net: 171.6, Gross: 211.07
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 7, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"233.20","price_gross":"286.84"}
|
||||||
|
Found product price. Net: 233.2, Gross: 286.84
|
||||||
|
FINAL: Returning Net: 233.2, Gross: 286.84
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"1056.91","price_gross":"1300.00"}
|
||||||
|
Found client price. Net: 1056.91, Gross: 1300
|
||||||
|
FINAL: Returning Net: 1056.91, Gross: 1300
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"1056.91","price_gross":"1300.00"}
|
||||||
|
Found client price. Net: 1056.91, Gross: 1300
|
||||||
|
FINAL: Returning Net: 1056.91, Gross: 1300
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 1, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"1111.00","price_gross":"1366.53"}
|
||||||
|
Found product price. Net: 1111, Gross: 1366.53
|
||||||
|
FINAL: Returning Net: 1111, Gross: 1366.53
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"1318.05","price_gross":"1621.20"}
|
||||||
|
Found product price. Net: 1318.05, Gross: 1621.2
|
||||||
|
FINAL: Returning Net: 1318.05, Gross: 1621.2
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 3, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"}
|
||||||
|
Found product price. Net: 9.95, Gross: 12.24
|
||||||
|
FINAL: Returning Net: 9.95, Gross: 12.24
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 4, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"}
|
||||||
|
Found product price. Net: 9.95, Gross: 12.24
|
||||||
|
FINAL: Returning Net: 9.95, Gross: 12.24
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 5, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"68.00","price_gross":"83.64"}
|
||||||
|
Found product price. Net: 68, Gross: 83.64
|
||||||
|
FINAL: Returning Net: 68, Gross: 83.64
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 6, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"171.60","price_gross":"211.07"}
|
||||||
|
Found product price. Net: 171.6, Gross: 211.07
|
||||||
|
FINAL: Returning Net: 171.6, Gross: 211.07
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 7, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"233.20","price_gross":"286.84"}
|
||||||
|
Found product price. Net: 233.2, Gross: 286.84
|
||||||
|
FINAL: Returning Net: 233.2, Gross: 286.84
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 1, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"894.31","price_gross":"1100.00"}
|
||||||
|
Found client price. Net: 894.31, Gross: 1100
|
||||||
|
FINAL: Returning Net: 894.31, Gross: 1100
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"1056.91","price_gross":"1300.00"}
|
||||||
|
Found client price. Net: 1056.91, Gross: 1300
|
||||||
|
FINAL: Returning Net: 1056.91, Gross: 1300
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 3, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"32.52","price_gross":"40.00"}
|
||||||
|
Found client price. Net: 32.52, Gross: 40
|
||||||
|
FINAL: Returning Net: 32.52, Gross: 40
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 4, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"}
|
||||||
|
Found product price. Net: 9.95, Gross: 12.24
|
||||||
|
FINAL: Returning Net: 9.95, Gross: 12.24
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 5, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"68.00","price_gross":"83.64"}
|
||||||
|
Found product price. Net: 68, Gross: 83.64
|
||||||
|
FINAL: Returning Net: 68, Gross: 83.64
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 6, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"171.60","price_gross":"211.07"}
|
||||||
|
Found product price. Net: 171.6, Gross: 211.07
|
||||||
|
FINAL: Returning Net: 171.6, Gross: 211.07
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 7, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"233.20","price_gross":"286.84"}
|
||||||
|
Found product price. Net: 233.2, Gross: 286.84
|
||||||
|
FINAL: Returning Net: 233.2, Gross: 286.84
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 1, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"1111.00","price_gross":"1366.53"}
|
||||||
|
Found product price. Net: 1111, Gross: 1366.53
|
||||||
|
FINAL: Returning Net: 1111, Gross: 1366.53
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"1318.05","price_gross":"1621.20"}
|
||||||
|
Found product price. Net: 1318.05, Gross: 1621.2
|
||||||
|
FINAL: Returning Net: 1318.05, Gross: 1621.2
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 3, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"}
|
||||||
|
Found product price. Net: 9.95, Gross: 12.24
|
||||||
|
FINAL: Returning Net: 9.95, Gross: 12.24
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 4, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"}
|
||||||
|
Found product price. Net: 9.95, Gross: 12.24
|
||||||
|
FINAL: Returning Net: 9.95, Gross: 12.24
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 5, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"68.00","price_gross":"83.64"}
|
||||||
|
Found product price. Net: 68, Gross: 83.64
|
||||||
|
FINAL: Returning Net: 68, Gross: 83.64
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 6, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"171.60","price_gross":"211.07"}
|
||||||
|
Found product price. Net: 171.6, Gross: 211.07
|
||||||
|
FINAL: Returning Net: 171.6, Gross: 211.07
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 7, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"233.20","price_gross":"286.84"}
|
||||||
|
Found product price. Net: 233.2, Gross: 286.84
|
||||||
|
FINAL: Returning Net: 233.2, Gross: 286.84
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 1, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"894.31","price_gross":"1100.00"}
|
||||||
|
Found client price. Net: 894.31, Gross: 1100
|
||||||
|
FINAL: Returning Net: 894.31, Gross: 1100
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"1056.91","price_gross":"1300.00"}
|
||||||
|
Found client price. Net: 1056.91, Gross: 1300
|
||||||
|
FINAL: Returning Net: 1056.91, Gross: 1300
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 3, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"32.52","price_gross":"40.00"}
|
||||||
|
Found client price. Net: 32.52, Gross: 40
|
||||||
|
FINAL: Returning Net: 32.52, Gross: 40
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 4, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"}
|
||||||
|
Found product price. Net: 9.95, Gross: 12.24
|
||||||
|
FINAL: Returning Net: 9.95, Gross: 12.24
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 5, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"68.00","price_gross":"83.64"}
|
||||||
|
Found product price. Net: 68, Gross: 83.64
|
||||||
|
FINAL: Returning Net: 68, Gross: 83.64
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 6, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"171.60","price_gross":"211.07"}
|
||||||
|
Found product price. Net: 171.6, Gross: 211.07
|
||||||
|
FINAL: Returning Net: 171.6, Gross: 211.07
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 7, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"233.20","price_gross":"286.84"}
|
||||||
|
Found product price. Net: 233.2, Gross: 286.84
|
||||||
|
FINAL: Returning Net: 233.2, Gross: 286.84
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"1056.91","price_gross":"1300.00"}
|
||||||
|
Found client price. Net: 1056.91, Gross: 1300
|
||||||
|
FINAL: Returning Net: 1056.91, Gross: 1300
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 1, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"1111.00","price_gross":"1366.53"}
|
||||||
|
Found product price. Net: 1111, Gross: 1366.53
|
||||||
|
FINAL: Returning Net: 1111, Gross: 1366.53
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"1318.05","price_gross":"1621.20"}
|
||||||
|
Found product price. Net: 1318.05, Gross: 1621.2
|
||||||
|
FINAL: Returning Net: 1318.05, Gross: 1621.2
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 3, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"}
|
||||||
|
Found product price. Net: 9.95, Gross: 12.24
|
||||||
|
FINAL: Returning Net: 9.95, Gross: 12.24
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 4, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"}
|
||||||
|
Found product price. Net: 9.95, Gross: 12.24
|
||||||
|
FINAL: Returning Net: 9.95, Gross: 12.24
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 5, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"68.00","price_gross":"83.64"}
|
||||||
|
Found product price. Net: 68, Gross: 83.64
|
||||||
|
FINAL: Returning Net: 68, Gross: 83.64
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 6, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"171.60","price_gross":"211.07"}
|
||||||
|
Found product price. Net: 171.6, Gross: 211.07
|
||||||
|
FINAL: Returning Net: 171.6, Gross: 211.07
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 7, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"233.20","price_gross":"286.84"}
|
||||||
|
Found product price. Net: 233.2, Gross: 286.84
|
||||||
|
FINAL: Returning Net: 233.2, Gross: 286.84
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 1, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"894.31","price_gross":"1100.00"}
|
||||||
|
Found client price. Net: 894.31, Gross: 1100
|
||||||
|
FINAL: Returning Net: 894.31, Gross: 1100
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"1056.91","price_gross":"1300.00"}
|
||||||
|
Found client price. Net: 1056.91, Gross: 1300
|
||||||
|
FINAL: Returning Net: 1056.91, Gross: 1300
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 3, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"32.52","price_gross":"40.00"}
|
||||||
|
Found client price. Net: 32.52, Gross: 40
|
||||||
|
FINAL: Returning Net: 32.52, Gross: 40
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 4, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"}
|
||||||
|
Found product price. Net: 9.95, Gross: 12.24
|
||||||
|
FINAL: Returning Net: 9.95, Gross: 12.24
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 5, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"68.00","price_gross":"83.64"}
|
||||||
|
Found product price. Net: 68, Gross: 83.64
|
||||||
|
FINAL: Returning Net: 68, Gross: 83.64
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 6, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"171.60","price_gross":"211.07"}
|
||||||
|
Found product price. Net: 171.6, Gross: 211.07
|
||||||
|
FINAL: Returning Net: 171.6, Gross: 211.07
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 7, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"233.20","price_gross":"286.84"}
|
||||||
|
Found product price. Net: 233.2, Gross: 286.84
|
||||||
|
FINAL: Returning Net: 233.2, Gross: 286.84
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"1056.91","price_gross":"1300.00"}
|
||||||
|
Found client price. Net: 1056.91, Gross: 1300
|
||||||
|
FINAL: Returning Net: 1056.91, Gross: 1300
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"1056.91","price_gross":"1300.00"}
|
||||||
|
Found client price. Net: 1056.91, Gross: 1300
|
||||||
|
FINAL: Returning Net: 1056.91, Gross: 1300
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"1056.91","price_gross":"1300.00"}
|
||||||
|
Found client price. Net: 1056.91, Gross: 1300
|
||||||
|
FINAL: Returning Net: 1056.91, Gross: 1300
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 5, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"68.00","price_gross":"83.64"}
|
||||||
|
Found product price. Net: 68, Gross: 83.64
|
||||||
|
FINAL: Returning Net: 68, Gross: 83.64
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 1, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"1111.00","price_gross":"1366.53"}
|
||||||
|
Found product price. Net: 1111, Gross: 1366.53
|
||||||
|
FINAL: Returning Net: 1111, Gross: 1366.53
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"1318.05","price_gross":"1621.20"}
|
||||||
|
Found product price. Net: 1318.05, Gross: 1621.2
|
||||||
|
FINAL: Returning Net: 1318.05, Gross: 1621.2
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 3, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"}
|
||||||
|
Found product price. Net: 9.95, Gross: 12.24
|
||||||
|
FINAL: Returning Net: 9.95, Gross: 12.24
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 4, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"}
|
||||||
|
Found product price. Net: 9.95, Gross: 12.24
|
||||||
|
FINAL: Returning Net: 9.95, Gross: 12.24
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 5, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"68.00","price_gross":"83.64"}
|
||||||
|
Found product price. Net: 68, Gross: 83.64
|
||||||
|
FINAL: Returning Net: 68, Gross: 83.64
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 6, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"171.60","price_gross":"211.07"}
|
||||||
|
Found product price. Net: 171.6, Gross: 211.07
|
||||||
|
FINAL: Returning Net: 171.6, Gross: 211.07
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 7, client
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"233.20","price_gross":"286.84"}
|
||||||
|
Found product price. Net: 233.2, Gross: 286.84
|
||||||
|
FINAL: Returning Net: 233.2, Gross: 286.84
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 1, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"894.31","price_gross":"1100.00"}
|
||||||
|
Found client price. Net: 894.31, Gross: 1100
|
||||||
|
FINAL: Returning Net: 894.31, Gross: 1100
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"1056.91","price_gross":"1300.00"}
|
||||||
|
Found client price. Net: 1056.91, Gross: 1300
|
||||||
|
FINAL: Returning Net: 1056.91, Gross: 1300
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 3, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"32.52","price_gross":"40.00"}
|
||||||
|
Found client price. Net: 32.52, Gross: 40
|
||||||
|
FINAL: Returning Net: 32.52, Gross: 40
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 4, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"}
|
||||||
|
Found product price. Net: 9.95, Gross: 12.24
|
||||||
|
FINAL: Returning Net: 9.95, Gross: 12.24
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 5, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"68.00","price_gross":"83.64"}
|
||||||
|
Found product price. Net: 68, Gross: 83.64
|
||||||
|
FINAL: Returning Net: 68, Gross: 83.64
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 6, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"171.60","price_gross":"211.07"}
|
||||||
|
Found product price. Net: 171.6, Gross: 211.07
|
||||||
|
FINAL: Returning Net: 171.6, Gross: 211.07
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 7, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"233.20","price_gross":"286.84"}
|
||||||
|
Found product price. Net: 233.2, Gross: 286.84
|
||||||
|
FINAL: Returning Net: 233.2, Gross: 286.84
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"1056.91","price_gross":"1300.00"}
|
||||||
|
Found client price. Net: 1056.91, Gross: 1300
|
||||||
|
FINAL: Returning Net: 1056.91, Gross: 1300
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 2, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"1056.91","price_gross":"1300.00"}
|
||||||
|
Found client price. Net: 1056.91, Gross: 1300
|
||||||
|
FINAL: Returning Net: 1056.91, Gross: 1300
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 3, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"32.52","price_gross":"40.00"}
|
||||||
|
Found client price. Net: 32.52, Gross: 40
|
||||||
|
FINAL: Returning Net: 32.52, Gross: 40
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 4, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"}
|
||||||
|
Found product price. Net: 9.95, Gross: 12.24
|
||||||
|
FINAL: Returning Net: 9.95, Gross: 12.24
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 5, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"68.00","price_gross":"83.64"}
|
||||||
|
Found product price. Net: 68, Gross: 83.64
|
||||||
|
FINAL: Returning Net: 68, Gross: 83.64
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 6, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"171.60","price_gross":"211.07"}
|
||||||
|
Found product price. Net: 171.6, Gross: 211.07
|
||||||
|
FINAL: Returning Net: 171.6, Gross: 211.07
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 7, client 1
|
||||||
|
Client price query executed. Found: No
|
||||||
|
Client price not found or not set, falling back to product price.
|
||||||
|
Product price query executed. Found: {"price_net":"233.20","price_gross":"286.84"}
|
||||||
|
Found product price. Net: 233.2, Gross: 286.84
|
||||||
|
FINAL: Returning Net: 233.2, Gross: 286.84
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 3, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"32.52","price_gross":"40.00"}
|
||||||
|
Found client price. Net: 32.52, Gross: 40
|
||||||
|
FINAL: Returning Net: 32.52, Gross: 40
|
||||||
|
---
|
||||||
|
---
|
||||||
|
START getEffectivePrice for product 3, client 1
|
||||||
|
Client price query executed. Found: {"price_net":"32.52","price_gross":"40.00"}
|
||||||
|
Found client price. Net: 32.52, Gross: 40
|
||||||
|
FINAL: Returning Net: 32.52, Gross: 40
|
||||||
|
---
|
||||||
|
|||||||
@ -8,8 +8,8 @@ $current_lang = get_lang();
|
|||||||
?>
|
?>
|
||||||
<nav class="navbar navbar-expand-lg navbar-light bg-white shadow-sm">
|
<nav class="navbar navbar-expand-lg navbar-light bg-white shadow-sm">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<a class="navbar-brand" href="index.php">
|
<a class="navbar-brand" href="<?php echo BASE_URL; ?>index.php">
|
||||||
<img src="assets/pasted-20251209-065617-6bf1b4e6.png" alt="Logo" style="height: 40px;">
|
<img src="<?php echo BASE_URL; ?>assets/pasted-20251209-065617-6bf1b4e6.png" alt="Logo" style="height: 40px;">
|
||||||
</a>
|
</a>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
@ -17,20 +17,20 @@ $current_lang = get_lang();
|
|||||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||||
<ul class="navbar-nav ms-auto mb-2 mb-lg-0 align-items-center">
|
<ul class="navbar-nav ms-auto mb-2 mb-lg-0 align-items-center">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="index.php"><?= t('menu_catalog') ?></a>
|
<a class="nav-link" href="<?php echo BASE_URL; ?>index.php"><?= t('menu_catalog') ?></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="cart.php">
|
<a class="nav-link" href="<?php echo BASE_URL; ?>cart.php">
|
||||||
<i class="bi bi-cart"></i> <?= t('title_cart') ?>
|
<i class="bi bi-cart"></i> <?= t('title_cart') ?>
|
||||||
<span class="badge bg-primary rounded-pill"><?= count($_SESSION['cart'] ?? []) ?></span>
|
<span class="badge bg-primary rounded-pill"><?= count($_SESSION['cart'] ?? []) ?></span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="orders.php"><?= t('menu_orders') ?></a>
|
<a class="nav-link" href="<?php echo BASE_URL; ?>orders.php"><?= t('menu_orders') ?></a>
|
||||||
</li>
|
</li>
|
||||||
<?php if ($user_role === 'admin'): ?>
|
<?php if ($user_role === 'admin'): ?>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="/admin/products.php">Admin</a>
|
<a class="nav-link" href="<?php echo BASE_URL; ?>admin/products.php">Admin</a>
|
||||||
</li>
|
</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
@ -38,9 +38,9 @@ $current_lang = get_lang();
|
|||||||
<i class="bi bi-person-circle"></i> <?= t('header_welcome') ?>, <?= isset($_SESSION['username']) ? htmlspecialchars($_SESSION['username']) : '' ?>
|
<i class="bi bi-person-circle"></i> <?= t('header_welcome') ?>, <?= isset($_SESSION['username']) ? htmlspecialchars($_SESSION['username']) : '' ?>
|
||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu dropdown-menu-end">
|
<ul class="dropdown-menu dropdown-menu-end">
|
||||||
<li><a class="dropdown-item p-2" href="profile.php"><?= t('menu_profile') ?></a></li>
|
<li><a class="dropdown-item p-2" href="<?php echo BASE_URL; ?>profile.php"><?= t('menu_profile') ?></a></li>
|
||||||
<li><hr class="dropdown-divider"></li>
|
<li><hr class="dropdown-divider"></li>
|
||||||
<li><a class="dropdown-item p-2" href="logout.php"><?= t('menu_logout') ?></a></li>
|
<li><a class="dropdown-item p-2" href="<?php echo BASE_URL; ?>logout.php"><?= t('menu_logout') ?></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
require_once __DIR__ . '/../config.php';
|
||||||
if (session_status() === PHP_SESSION_NONE) {
|
if (session_status() === PHP_SESSION_NONE) {
|
||||||
session_start();
|
session_start();
|
||||||
}
|
}
|
||||||
|
|||||||
10
product.php
10
product.php
@ -68,7 +68,7 @@ $page_title = htmlspecialchars($product['name']);
|
|||||||
<?php
|
<?php
|
||||||
$primary_image_url = 'https://placehold.co/600x400/EEE/31343C?text='.t('no_image_placeholder');
|
$primary_image_url = 'https://placehold.co/600x400/EEE/31343C?text='.t('no_image_placeholder');
|
||||||
if (!empty($product_images)) {
|
if (!empty($product_images)) {
|
||||||
$primary_image_url = 'uploads/products/' . htmlspecialchars($product_images[0]['file_path']);
|
$primary_image_url = BASE_URL . 'uploads/products/' . htmlspecialchars($product_images[0]['file_path']);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<img src="<?= $primary_image_url ?>" alt="<?= htmlspecialchars($product['name']) ?>" class="img-fluid rounded shadow-sm mb-3" id="main-product-image">
|
<img src="<?= $primary_image_url ?>" alt="<?= htmlspecialchars($product['name']) ?>" class="img-fluid rounded shadow-sm mb-3" id="main-product-image">
|
||||||
@ -78,8 +78,8 @@ $page_title = htmlspecialchars($product['name']);
|
|||||||
<div class="row gx-2 justify-content-center">
|
<div class="row gx-2 justify-content-center">
|
||||||
<?php foreach ($product_images as $image): ?>
|
<?php foreach ($product_images as $image): ?>
|
||||||
<div class="col-2">
|
<div class="col-2">
|
||||||
<a href="uploads/products/<?= htmlspecialchars($image['file_path']) ?>" class="product-thumbnail d-block border rounded">
|
<a href="<?= BASE_URL . 'uploads/products/' . htmlspecialchars($image['file_path']) ?>" class="product-thumbnail d-block border rounded">
|
||||||
<img src="uploads/products/<?= htmlspecialchars($image['file_path']) ?>" alt="<?= t('product_thumbnail_alt') ?>" class="img-fluid">
|
<img src="<?= BASE_URL . 'uploads/products/' . htmlspecialchars($image['file_path']) ?>" alt="<?= t('product_thumbnail_alt') ?>" class="img-fluid">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
@ -163,7 +163,7 @@ $page_title = htmlspecialchars($product['name']);
|
|||||||
if ($product_documents) {
|
if ($product_documents) {
|
||||||
echo '<ul class="list-group list-group-flush">';
|
echo '<ul class="list-group list-group-flush">';
|
||||||
foreach ($product_documents as $doc) {
|
foreach ($product_documents as $doc) {
|
||||||
echo '<li class="list-group-item"><a href="uploads/documents/' . htmlspecialchars($doc['file_path']) . '" download><i class="bi bi-file-earmark-arrow-down"></i> ' . htmlspecialchars($doc['file_name']) . '</a></li>';
|
echo '<li class="list-group-item"><a href="' . BASE_URL . 'uploads/documents/' . htmlspecialchars($doc['file_path']) . '" download><i class="bi bi-file-earmark-arrow-down"></i> ' . htmlspecialchars($doc['file_name']) . '</a></li>';
|
||||||
}
|
}
|
||||||
echo '</ul>';
|
echo '</ul>';
|
||||||
} else {
|
} else {
|
||||||
@ -187,7 +187,7 @@ $page_title = htmlspecialchars($product['name']);
|
|||||||
if ($related_products) {
|
if ($related_products) {
|
||||||
foreach ($related_products as $related_product) {
|
foreach ($related_products as $related_product) {
|
||||||
$related_image_url = !empty($related_product['image_path'])
|
$related_image_url = !empty($related_product['image_path'])
|
||||||
? 'uploads/products/' . htmlspecialchars($related_product['image_path'])
|
? BASE_URL . 'uploads/products/' . htmlspecialchars($related_product['image_path'])
|
||||||
: 'https://placehold.co/300x300/EEE/31343C?text='.t('no_image_placeholder');
|
: 'https://placehold.co/300x300/EEE/31343C?text='.t('no_image_placeholder');
|
||||||
|
|
||||||
echo '<div class="col-md-3 mb-3">';
|
echo '<div class="col-md-3 mb-3">';
|
||||||
|
|||||||
@ -34,7 +34,7 @@ if (!empty($user['client_id'])) {
|
|||||||
<title><?= t('profile_user_profile') ?></title>
|
<title><?= t('profile_user_profile') ?></title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
||||||
<link href="assets/css/custom.css" rel="stylesheet">
|
<link href="<?php echo BASE_URL; ?>assets/css/custom.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<?php require_once 'includes/header.php'; ?>
|
<?php require_once 'includes/header.php'; ?>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user