Notice (8): Trying to get property 'formated_total' of non-object [ROOT/plugins/Ventas/src/Template/Element/carrito_flotante.ctp, line 16]Code Context// Aquí obtenemos el valor formateado del total $compraTotal = $compra->formated_total; // Este es el total formateado $compraTotalNumeric = floatval(str_replace(',', '.', str_replace('.', '', $compraTotal))); // Lo convertimos a un valor numérico para usarlo en JS$viewFile = '/var/www/vhosts/tomadatallc.net/dev.dubydu.es/plugins/Ventas/src/Template/Element/carrito_flotante.ctp' $dataForView = [ '_searchParams' => [], '_isSearch' => false, 'productos' => object(Cake\ORM\ResultSet) { 'items' => [ [maximum depth reached] ] }, 'categorias' => object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Categorias.id AS `Categorias__id`, Categorias.parent_id AS `Categorias__parent_id`, Categorias.lft AS `Categorias__lft`, Categorias.rght AS `Categorias__rght`, Categorias.ref AS `Categorias__ref`, Categorias.slug AS `Categorias__slug`, Categorias.title AS `Categorias__title`, Categorias.short_title AS `Categorias__short_title`, Categorias.impuesto_id AS `Categorias__impuesto_id`, Categorias.notas AS `Categorias__notas`, Categorias.img AS `Categorias__img`, Categorias.thumb AS `Categorias__thumb`, Categorias.tiny AS `Categorias__tiny`, Categorias.responsive AS `Categorias__responsive`, Categorias.created AS `Categorias__created`, Categorias.modified AS `Categorias__modified`, Categorias.active AS `Categorias__active`, Categorias.destacado AS `Categorias__destacado`, Categorias.exento_ge AS `Categorias__exento_ge` FROM almacen_categorias Categorias ORDER BY Categorias.lft ASC', 'params' => [[maximum depth reached]], 'defaultTypes' => [ [maximum depth reached] ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 2, 'mapReducers' => (int) 0, 'contain' => [[maximum depth reached]], 'matching' => [[maximum depth reached]], 'extraOptions' => [ [maximum depth reached] ], 'repository' => object(Almacen\Model\Table\CategoriasTable) {} }, 'es_portada' => false ] $_searchParams = [] $_isSearch = false $productos = object(Cake\ORM\ResultSet) { 'items' => [ (int) 0 => object(Almacen\Model\Entity\Producto) {}, (int) 1 => object(Almacen\Model\Entity\Producto) {}, (int) 2 => object(Almacen\Model\Entity\Producto) {}, (int) 3 => object(Almacen\Model\Entity\Producto) {}, (int) 4 => object(Almacen\Model\Entity\Producto) {}, (int) 5 => object(Almacen\Model\Entity\Producto) {}, (int) 6 => object(Almacen\Model\Entity\Producto) {}, (int) 7 => object(Almacen\Model\Entity\Producto) {}, (int) 8 => object(Almacen\Model\Entity\Producto) {}, (int) 9 => object(Almacen\Model\Entity\Producto) {} ] } $categorias = object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Categorias.id AS `Categorias__id`, Categorias.parent_id AS `Categorias__parent_id`, Categorias.lft AS `Categorias__lft`, Categorias.rght AS `Categorias__rght`, Categorias.ref AS `Categorias__ref`, Categorias.slug AS `Categorias__slug`, Categorias.title AS `Categorias__title`, Categorias.short_title AS `Categorias__short_title`, Categorias.impuesto_id AS `Categorias__impuesto_id`, Categorias.notas AS `Categorias__notas`, Categorias.img AS `Categorias__img`, Categorias.thumb AS `Categorias__thumb`, Categorias.tiny AS `Categorias__tiny`, Categorias.responsive AS `Categorias__responsive`, Categorias.created AS `Categorias__created`, Categorias.modified AS `Categorias__modified`, Categorias.active AS `Categorias__active`, Categorias.destacado AS `Categorias__destacado`, Categorias.exento_ge AS `Categorias__exento_ge` FROM almacen_categorias Categorias ORDER BY Categorias.lft ASC', 'params' => [], 'defaultTypes' => [ 'Categorias__id' => 'uuid', 'Categorias.id' => 'uuid', 'id' => 'uuid', 'Categorias__parent_id' => 'uuid', 'Categorias.parent_id' => 'uuid', 'parent_id' => 'uuid', 'Categorias__lft' => 'integer', 'Categorias.lft' => 'integer', 'lft' => 'integer', 'Categorias__rght' => 'integer', 'Categorias.rght' => 'integer', 'rght' => 'integer', 'Categorias__ref' => 'string', 'Categorias.ref' => 'string', 'ref' => 'string', 'Categorias__slug' => 'string', 'Categorias.slug' => 'string', 'slug' => 'string', 'Categorias__title' => 'string', 'Categorias.title' => 'string', 'title' => 'string', 'Categorias__short_title' => 'string', 'Categorias.short_title' => 'string', 'short_title' => 'string', 'Categorias__impuesto_id' => 'uuid', 'Categorias.impuesto_id' => 'uuid', 'impuesto_id' => 'uuid', 'Categorias__notas' => 'text', 'Categorias.notas' => 'text', 'notas' => 'text', 'Categorias__img' => 'string', 'Categorias.img' => 'string', 'img' => 'string', 'Categorias__thumb' => 'string', 'Categorias.thumb' => 'string', 'thumb' => 'string', 'Categorias__tiny' => 'string', 'Categorias.tiny' => 'string', 'tiny' => 'string', 'Categorias__responsive' => 'string', 'Categorias.responsive' => 'string', 'responsive' => 'string', 'Categorias__created' => 'datetime', 'Categorias.created' => 'datetime', 'created' => 'datetime', 'Categorias__modified' => 'datetime', 'Categorias.modified' => 'datetime', 'modified' => 'datetime', 'Categorias__active' => 'boolean', 'Categorias.active' => 'boolean', 'active' => 'boolean', 'Categorias__destacado' => 'boolean', 'Categorias.destacado' => 'boolean', 'destacado' => 'boolean', 'Categorias__exento_ge' => 'boolean', 'Categorias.exento_ge' => 'boolean', 'exento_ge' => 'boolean' ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 2, 'mapReducers' => (int) 0, 'contain' => [], 'matching' => [], 'extraOptions' => [ 'parentField' => 'parent_id' ], 'repository' => object(Almacen\Model\Table\CategoriasTable) {} } $es_portada = false $compra = nullinclude - ROOT/plugins/Ventas/src/Template/Element/carrito_flotante.ctp, line 16 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1420 Cake\View\View::_render() - CORE/src/View/View.php, line 1381 Cake\View\View::_renderElement() - CORE/src/View/View.php, line 1857 Cake\View\View::element() - CORE/src/View/View.php, line 782 include - APP/Template/Layout/default.ctp, line 56 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1420 Cake\View\View::_render() - CORE/src/View/View.php, line 1381 Cake\View\View::renderLayout() - CORE/src/View/View.php, line 926 Cake\View\View::render() - CORE/src/View/View.php, line 884 Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 795 Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 126 Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94 Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 234 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Http\Middleware\BodyParserMiddleware::__invoke() - CORE/src/Http/Middleware/BodyParserMiddleware.php, line 135 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
// Aquí obtenemos el valor formateado del total $compraTotal = $compra->formated_total; // Este es el total formateado $compraTotalNumeric = floatval(str_replace(',', '.', str_replace('.', '', $compraTotal))); // Lo convertimos a un valor numérico para usarlo en JS
// Aquí obtenemos el valor formateado del total
$compraTotal = $compra->formated_total; // Este es el total formateado
$compraTotalNumeric = floatval(str_replace(',', '.', str_replace('.', '', $compraTotal))); // Lo convertimos a un valor numérico para usarlo en JS
$viewFile = '/var/www/vhosts/tomadatallc.net/dev.dubydu.es/plugins/Ventas/src/Template/Element/carrito_flotante.ctp' $dataForView = [ '_searchParams' => [], '_isSearch' => false, 'productos' => object(Cake\ORM\ResultSet) { 'items' => [ [maximum depth reached] ] }, 'categorias' => object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Categorias.id AS `Categorias__id`, Categorias.parent_id AS `Categorias__parent_id`, Categorias.lft AS `Categorias__lft`, Categorias.rght AS `Categorias__rght`, Categorias.ref AS `Categorias__ref`, Categorias.slug AS `Categorias__slug`, Categorias.title AS `Categorias__title`, Categorias.short_title AS `Categorias__short_title`, Categorias.impuesto_id AS `Categorias__impuesto_id`, Categorias.notas AS `Categorias__notas`, Categorias.img AS `Categorias__img`, Categorias.thumb AS `Categorias__thumb`, Categorias.tiny AS `Categorias__tiny`, Categorias.responsive AS `Categorias__responsive`, Categorias.created AS `Categorias__created`, Categorias.modified AS `Categorias__modified`, Categorias.active AS `Categorias__active`, Categorias.destacado AS `Categorias__destacado`, Categorias.exento_ge AS `Categorias__exento_ge` FROM almacen_categorias Categorias ORDER BY Categorias.lft ASC', 'params' => [[maximum depth reached]], 'defaultTypes' => [ [maximum depth reached] ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 2, 'mapReducers' => (int) 0, 'contain' => [[maximum depth reached]], 'matching' => [[maximum depth reached]], 'extraOptions' => [ [maximum depth reached] ], 'repository' => object(Almacen\Model\Table\CategoriasTable) {} }, 'es_portada' => false ] $_searchParams = [] $_isSearch = false $productos = object(Cake\ORM\ResultSet) { 'items' => [ (int) 0 => object(Almacen\Model\Entity\Producto) {}, (int) 1 => object(Almacen\Model\Entity\Producto) {}, (int) 2 => object(Almacen\Model\Entity\Producto) {}, (int) 3 => object(Almacen\Model\Entity\Producto) {}, (int) 4 => object(Almacen\Model\Entity\Producto) {}, (int) 5 => object(Almacen\Model\Entity\Producto) {}, (int) 6 => object(Almacen\Model\Entity\Producto) {}, (int) 7 => object(Almacen\Model\Entity\Producto) {}, (int) 8 => object(Almacen\Model\Entity\Producto) {}, (int) 9 => object(Almacen\Model\Entity\Producto) {} ] } $categorias = object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Categorias.id AS `Categorias__id`, Categorias.parent_id AS `Categorias__parent_id`, Categorias.lft AS `Categorias__lft`, Categorias.rght AS `Categorias__rght`, Categorias.ref AS `Categorias__ref`, Categorias.slug AS `Categorias__slug`, Categorias.title AS `Categorias__title`, Categorias.short_title AS `Categorias__short_title`, Categorias.impuesto_id AS `Categorias__impuesto_id`, Categorias.notas AS `Categorias__notas`, Categorias.img AS `Categorias__img`, Categorias.thumb AS `Categorias__thumb`, Categorias.tiny AS `Categorias__tiny`, Categorias.responsive AS `Categorias__responsive`, Categorias.created AS `Categorias__created`, Categorias.modified AS `Categorias__modified`, Categorias.active AS `Categorias__active`, Categorias.destacado AS `Categorias__destacado`, Categorias.exento_ge AS `Categorias__exento_ge` FROM almacen_categorias Categorias ORDER BY Categorias.lft ASC', 'params' => [], 'defaultTypes' => [ 'Categorias__id' => 'uuid', 'Categorias.id' => 'uuid', 'id' => 'uuid', 'Categorias__parent_id' => 'uuid', 'Categorias.parent_id' => 'uuid', 'parent_id' => 'uuid', 'Categorias__lft' => 'integer', 'Categorias.lft' => 'integer', 'lft' => 'integer', 'Categorias__rght' => 'integer', 'Categorias.rght' => 'integer', 'rght' => 'integer', 'Categorias__ref' => 'string', 'Categorias.ref' => 'string', 'ref' => 'string', 'Categorias__slug' => 'string', 'Categorias.slug' => 'string', 'slug' => 'string', 'Categorias__title' => 'string', 'Categorias.title' => 'string', 'title' => 'string', 'Categorias__short_title' => 'string', 'Categorias.short_title' => 'string', 'short_title' => 'string', 'Categorias__impuesto_id' => 'uuid', 'Categorias.impuesto_id' => 'uuid', 'impuesto_id' => 'uuid', 'Categorias__notas' => 'text', 'Categorias.notas' => 'text', 'notas' => 'text', 'Categorias__img' => 'string', 'Categorias.img' => 'string', 'img' => 'string', 'Categorias__thumb' => 'string', 'Categorias.thumb' => 'string', 'thumb' => 'string', 'Categorias__tiny' => 'string', 'Categorias.tiny' => 'string', 'tiny' => 'string', 'Categorias__responsive' => 'string', 'Categorias.responsive' => 'string', 'responsive' => 'string', 'Categorias__created' => 'datetime', 'Categorias.created' => 'datetime', 'created' => 'datetime', 'Categorias__modified' => 'datetime', 'Categorias.modified' => 'datetime', 'modified' => 'datetime', 'Categorias__active' => 'boolean', 'Categorias.active' => 'boolean', 'active' => 'boolean', 'Categorias__destacado' => 'boolean', 'Categorias.destacado' => 'boolean', 'destacado' => 'boolean', 'Categorias__exento_ge' => 'boolean', 'Categorias.exento_ge' => 'boolean', 'exento_ge' => 'boolean' ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 2, 'mapReducers' => (int) 0, 'contain' => [], 'matching' => [], 'extraOptions' => [ 'parentField' => 'parent_id' ], 'repository' => object(Almacen\Model\Table\CategoriasTable) {} } $es_portada = false $compra = null
include - ROOT/plugins/Ventas/src/Template/Element/carrito_flotante.ctp, line 16 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1420 Cake\View\View::_render() - CORE/src/View/View.php, line 1381 Cake\View\View::_renderElement() - CORE/src/View/View.php, line 1857 Cake\View\View::element() - CORE/src/View/View.php, line 782 include - APP/Template/Layout/default.ctp, line 56 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1420 Cake\View\View::_render() - CORE/src/View/View.php, line 1381 Cake\View\View::renderLayout() - CORE/src/View/View.php, line 926 Cake\View\View::render() - CORE/src/View/View.php, line 884 Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 795 Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 126 Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94 Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 234 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Http\Middleware\BodyParserMiddleware::__invoke() - CORE/src/Http/Middleware/BodyParserMiddleware.php, line 135 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
nuestros productos
PRODUCTOS DESTACADOS
Rellena el formulario y nuestro equipo comercial estará encantado de atender cualquier duda sobre cualquiera de nuestros servicios