$this->model_catalog_product->getCategories($product_id);
$category_id = (int)array_pop($parts);
let idash = "<?php echo $imager5?>";
if (document.getElementById(idash).src="<?php echo $imager4?>"){
document.getElementById("per_4").src="<?php echo $imager3 ?>;"
while (have_posts()) : the_post(); // запускаем цикл обхода материалов блога
$imager3 = get_the_post_thumbnail_url( get_the_ID(), 'full' );
$imager4 = get_the_post_thumbnail_url( get_the_ID(), 'medium' );
$imager5 = get_the_ID();
?>
<img src="<?php echo $imager4 ?>" id="<?php echo $imager5?>" onClick="chg2('<?php echo $imager3 ?>', '<?php echo $imager4 ?>', '<?php echo $imager4 ?>')">
<?php
endwhile; // завершаем цикл.
<script>
function chg2(imager3, imager4, imager5 ){
let idash = imager4
if (document.getElementById(idash).src=imager4){
document.getElementById("per_4").src=imager5
}
}
</script>
if ($city === 1) {
include('lend1/index.php');
} else if ($city === 2) {
include('lend2/index.php');
}
url: 'index.php?route=extension/module/comments/addComment&token=<?php echo $token; ?>',
<?php
global $product;
if( is_product_category('matrasy') )
{ ?>
<table class="short_haracter">
<tbody>
<tr>
<td>Высота</td>
<td><?php echo $product->get_attribute('vysota-sm'); ?> </td>
</tr>
<tr>
<td>Жесткость</td>
<td><?php echo $product->get_attribute('zhestkost'); ?> </td>
</tr>
<tr>
<td>Мах нагрузка на спальное место</td>
<td><?php echo $product->get_attribute('mah-nagruzka-na-spalnoe-mes'); ?> </td>
</tr>
</tbody>
</table>
<?php } ?>
$(".idspoiler-"+DbNumberID).each(function(){
$(this).css("display", "block");
})
if ($this->customer->isLogged()) {
$data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/order/info&order_id=' . $this->session->data['last_order_id'], '', true), $this->url->link('account/account', '', true), $this->url->link('account/order', '', true), $this->url->link('information/contact'), $this->url->link('product/special'), $this->session->data['last_order_id'], $this->url->link('account/download', '', true));
} else {
$data['text_message'] = sprintf($this->language->get('text_guest'), $this->url->link('information/contact'), $this->session->data['last_order_id']);
}
if ($this->customer->isLogged() && !empty($this->session->data['last_order_id'])) {
$data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/order/info&order_id=' . $this->session->data['last_order_id'], '', true), $this->url->link('account/account', '', true), $this->url->link('account/order', '', true), $this->url->link('information/contact'), $this->url->link('product/special'), $this->session->data['last_order_id'], $this->url->link('account/download', '', true));
} else {
$data['text_message'] = sprintf($this->language->get('text_guest'), $this->url->link('information/contact'));
}