After you clicked the "Buy" button, the "Basket" window appears with your orders.
Here you can change the quantity of purchased goods, delete it, find out the total cost, and also see information about products that are out of stock.

</div> <? array_shift($smallImages); ?> <?php
if(count($smallImages) > 3) {
$smallImgCounter = 1;
echo '<div class="marketplace_page__card_smallImages smallImages-slider owl-carousel owl-theme owl-loaded owl-carousel owl-drag">';
foreach ($smallImages as $value) {
echo '<a data-fancybox="module_images" data-lightbox="image-1" href="getimage/' . $value . '">
<img class="lazyload marketplace__cart-ico marketplace__round-ico"
//ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
error_reporting(E_ALL);
set_error_handler(function($level, $message, $file = '', $line = 0) {
$this->handleError($level, $message, $file, $line);
});
set_exception_handler(function($e) {
$this->handleException($e);
});
</div> <? array_shift($smallImages); ?> <?php
if(count($smallImages) > 3) {
$smallImgCounter = 1;
echo '<div class="marketplace_page__card_smallImages smallImages-slider owl-carousel owl-theme owl-loaded owl-carousel owl-drag">';
foreach ($smallImages as $value) {
echo '<a data-fancybox="module_images" data-lightbox="image-1" href="getimage/' . $value . '">
<img class="lazyload marketplace__cart-ico marketplace__round-ico"
<?php if ($content == 'index_default'): ?>
<?php require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/mainpage_modules/slider_main.php'); ?>
<?php endif ?>
<?php if (isset($_GET['products_id']) && !productIsTemplate($_GET['products_id']))
require(DIR_WS_CONTENT . 'product_info_new.php');
else
require(DIR_WS_CONTENT . $content . '.tpl.php');
?>
<div class="hFooter"></div></main> }
$content = CONTENT_PRODUCT_INFO;
// $javascript = 'product_info.js';
require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE);
require(DIR_WS_INCLUDES . 'application_bottom.php');
|
ErrorException
|
|---|
ErrorException:
count(): Parameter must be an array or an object that implements Countable
at /home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php:98
at Bootstrap\HandleExceptions->handleError()
(/home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php:32)
at Bootstrap\HandleExceptions->Bootstrap\{closure}()
(/home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php:98)
at require('/home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php')
(/home/solomono/web/hetzner.solomono.net/templates/solo/main_page.tpl.php:502)
at require('/home/solomono/web/hetzner.solomono.net/templates/solo/main_page.tpl.php')
(/home/solomono/web/hetzner.solomono.net/product_info.php:102)
|
After you clicked the "Buy" button, the "Basket" window appears with your orders.
Here you can change the quantity of purchased goods, delete it, find out the total cost, and also see information about products that are out of stock.

$shift++; $in_cart = $model->InCart($product['products_id']); ?> <div class="col-md-4 col-sm-6 col-xs-12"> <div class="marketplace__cart marketplace<?= $in_cart ? '__add-cart' : '' ?>"> <a href="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product['products_id']); ?>"> <div class="marketplace__head"> <? $product['products_images'] = file_exists("images/" . explode(";", $product['products_images'])[0]) ? explode(";", $product['products_images'])[0] : "any-module-image.jpg"; ?> <img class="lazyload marketplace__cart-ico marketplace__round-ico" <?php if ($content == 'index_default'): ?>
<?php require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/mainpage_modules/slider_main.php'); ?>
<?php endif ?>
<?php if (isset($_GET['products_id']) && !productIsTemplate($_GET['products_id']))
require(DIR_WS_CONTENT . 'product_info_new.php');
else
require(DIR_WS_CONTENT . $content . '.tpl.php');
?>
<div class="hFooter"></div></main> }
$content = CONTENT_PRODUCT_INFO;
// $javascript = 'product_info.js';
require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE);
require(DIR_WS_INCLUDES . 'application_bottom.php');
|
Error
|
|---|
Error:
Cannot use object of type JsonLd\Product as array
at /home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php:292
at require()
(/home/solomono/web/hetzner.solomono.net/templates/solo/main_page.tpl.php:502)
at require('/home/solomono/web/hetzner.solomono.net/templates/solo/main_page.tpl.php')
(/home/solomono/web/hetzner.solomono.net/product_info.php:102)
|