/var/www/vhosts/ihelp.ro/httpdocs/templates/Products
Edit: /var/www/vhosts/ihelp.ro/httpdocs/templates/Products/view.php (16500B)
assign('title', $product->name);
$this->Breadcrumbs->reset()->add($product->name, null);
$this->Breadcrumbs->prepend([
['title' => __('Prima pagina'), 'url' => ['controller' => 'Pages', 'action' => 'home']],
['title' => $product->category->parent_category->name, 'url' => ['controller' => 'Categories', 'action' => 'view', 'slug' => $product->category->parent_category->slug]],
['title' => $product->category->name, 'url' => ['controller' => 'Categories', 'action' => 'view', 'slug' => $product->category->slug]]
]);
?>
Breadcrumbs->render(); ?>
gallery_images)) { ?>
Html->link(
(in_array($product->id, $productFavorites) ? '
' : '
'),
['controller' => 'ProductFavorites', 'action' => 'addRemove', 'uuid' => $product->uuid],
[
'inline' => false,
'class' => ['favorite', 'addToFav'],
'escape' => false,
'data-uuid' => $product->uuid
]
);
?>
gallery_images as $galleryImage) : ?>
Html->image($this->Custom->generateUrlHdy(
[
'model_name' => $product->model_name,
'uuid' => $galleryImage->foreign_uuid,
'image_name' => 'resize-'.$galleryImage->image_path
],
true,
900,
560,
true
), ['class' => 'img-fluid']) ?>
gallery_images as $galleryImage) : ?>
Html->image($this->Custom->generateUrlHdy(
[
'model_name' => $product->model_name,
'uuid' => $galleryImage->foreign_uuid,
'image_name' => 'resize-'.$galleryImage->image_path
],
true,
240,
130,
true
), ['class' => 'img-fluid']) ?>
name; ?>
is_price_fixed) : ?>
= __('Acest produs are un pret minim recomandat sub care nu poate fi achizitionat. Tasteaza pretul pe care il oferi tu pentru acest produs.') ?>
Form->create($cartEmptyEntity, ['url' => ['controller' => 'Carts', 'action' => 'add']]) ?>
is_price_fixed) : ?>
Number->format($product->price, ['precision' => 0, 'after' => __(' Lei')]) ?>
Form->control('custom_price', ['class' => 'custom-price form-control', 'label' => false, 'value' => intval($product->price)]) ?>
Form->control('uuid', ['value' => $product->uuid, 'type' => 'hidden']) ?>
Form->end() ?>
cause)) : ?>
cause->url = ['prefix' => false, 'controller' => 'Causes', 'action' => 'view', 'slug' => $product->cause->slug, 'uuid' => $product->cause->uuid];
?>
Html->image($this->Custom->generateUrlHdy(
[
'model_name' => $product->cause->model_name,
'uuid' => $product->cause->uuid,
'image_name' => isset($product->cause->featured_image->image_path) ? $product->cause->featured_image->image_path : ''
],
true,
400,
200,
true
), ['class' => 'img-fluid']) ?>
Html->link($product->cause->name, $product->cause->url); ?>
Text->truncate($product->cause->description, 150, [
'ellipsis' => '...',
'exact' => false
]);
?>
Number->format($product->cause->donation_sum, ['precision' => 0, 'after' => ' Lei']); ?>
Number->format($product->cause->donation_amount, ['precision' => 0, 'after' => ' Lei']); ?>
Html->link('
' . __('Vezi cauza'), $product->cause->url, ['class' => 'btn full block primary', 'escape' => false]); ?>
user)) : ?>
user->name) ?>
Html->image($this->Custom->generateUrlHdy(
[
'model_name' => $product->user->profile->model_name,
'uuid' => '',
'image_name' => $product->user->profile->image_path
],
true,
120,
120,
true
), ['class' => 'img-fluid mt-2']) ?>
{0}', $product->cause->name); ?>
Html->link(__('Vezi toate produsele vanzatorului'), ['prefix' => false, 'controller' => 'Products', 'action' => 'productsUser', 'uuid' => $product->user->uuid], ['class' => ' ', 'escape' => false]); ?>
Html->link(__('Vezi toate produsele cauzei'), ['prefix' => false, 'controller' => 'Products', 'action' => 'productsCause', 'uuid' => $product->cause->uuid], ['class' => '', 'escape' => false]); ?>
append('css'); ?>
Html->css([
'https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.css',
'https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick-theme.min.css'
])
?>
end() ?>
append('script'); ?>
Html->script([
'https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js'
])
?>
end(); ?>