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 = [ 'categoria' => object(Almacen\Model\Entity\Categoria) { 'id' => '0dcbe20e-d442-49b4-b19f-75f8a1a04d27', 'parent_id' => null, 'lft' => (int) 7, 'rght' => (int) 8, 'ref' => 'CAT-25-000004', 'slug' => 'Juego-de-espuma', 'title' => 'Juego de espuma', 'short_title' => 'Juego de espuma', 'impuesto_id' => '5c7d2fc0-d388-11e7-b32c-ea921cd4d2a0', 'notas' => '', 'img' => null, 'thumb' => null, 'tiny' => null, 'responsive' => null, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'active' => true, 'destacado' => true, 'exento_ge' => true, 'productos' => [ [maximum depth reached] ], '_translations' => [[maximum depth reached]], '[new]' => false, '[accessible]' => [ [maximum depth reached] ], '[dirty]' => [[maximum depth reached]], '[original]' => [[maximum depth reached]], '[virtual]' => [[maximum depth reached]], '[hasErrors]' => false, '[errors]' => [[maximum depth reached]], '[invalid]' => [[maximum depth reached]], '[repository]' => 'Almacen.Categorias' }, 'children' => object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Categorias.title AS `Categorias__title`, Categorias.slug AS `Categorias__slug` FROM almacen_categorias Categorias WHERE (Categorias.rght < :c0 AND Categorias.lft > :c1) ORDER BY Categorias.lft ASC', 'params' => [ [maximum depth reached] ], 'defaultTypes' => [ [maximum depth reached] ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [[maximum depth reached]], 'matching' => [[maximum depth reached]], 'extraOptions' => [ [maximum depth reached] ], 'repository' => object(Almacen\Model\Table\CategoriasTable) {} }, 'metadescription' => '', 'es_portada' => false ] $categoria = object(Almacen\Model\Entity\Categoria) { 'id' => '0dcbe20e-d442-49b4-b19f-75f8a1a04d27', 'parent_id' => null, 'lft' => (int) 7, 'rght' => (int) 8, 'ref' => 'CAT-25-000004', 'slug' => 'Juego-de-espuma', 'title' => 'Juego de espuma', 'short_title' => 'Juego de espuma', 'impuesto_id' => '5c7d2fc0-d388-11e7-b32c-ea921cd4d2a0', 'notas' => '', 'img' => null, 'thumb' => null, 'tiny' => null, 'responsive' => null, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'active' => true, 'destacado' => true, 'exento_ge' => true, 'productos' => [ (int) 0 => object(Almacen\Model\Entity\Producto) {} ], '_translations' => [], '[new]' => false, '[accessible]' => [ '*' => true, 'id' => false ], '[dirty]' => [], '[original]' => [], '[virtual]' => [], '[hasErrors]' => false, '[errors]' => [], '[invalid]' => [], '[repository]' => 'Almacen.Categorias' } $children = object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Categorias.title AS `Categorias__title`, Categorias.slug AS `Categorias__slug` FROM almacen_categorias Categorias WHERE (Categorias.rght < :c0 AND Categorias.lft > :c1) ORDER BY Categorias.lft ASC', 'params' => [ ':c0' => [ [maximum depth reached] ], ':c1' => [ [maximum depth reached] ] ], '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) 0, 'mapReducers' => (int) 0, 'contain' => [], 'matching' => [], 'extraOptions' => [ 'for' => '0dcbe20e-d442-49b4-b19f-75f8a1a04d27' ], 'repository' => object(Almacen\Model\Table\CategoriasTable) {} } $metadescription = '' $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 = [ 'categoria' => object(Almacen\Model\Entity\Categoria) { 'id' => '0dcbe20e-d442-49b4-b19f-75f8a1a04d27', 'parent_id' => null, 'lft' => (int) 7, 'rght' => (int) 8, 'ref' => 'CAT-25-000004', 'slug' => 'Juego-de-espuma', 'title' => 'Juego de espuma', 'short_title' => 'Juego de espuma', 'impuesto_id' => '5c7d2fc0-d388-11e7-b32c-ea921cd4d2a0', 'notas' => '', 'img' => null, 'thumb' => null, 'tiny' => null, 'responsive' => null, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'active' => true, 'destacado' => true, 'exento_ge' => true, 'productos' => [ [maximum depth reached] ], '_translations' => [[maximum depth reached]], '[new]' => false, '[accessible]' => [ [maximum depth reached] ], '[dirty]' => [[maximum depth reached]], '[original]' => [[maximum depth reached]], '[virtual]' => [[maximum depth reached]], '[hasErrors]' => false, '[errors]' => [[maximum depth reached]], '[invalid]' => [[maximum depth reached]], '[repository]' => 'Almacen.Categorias' }, 'children' => object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Categorias.title AS `Categorias__title`, Categorias.slug AS `Categorias__slug` FROM almacen_categorias Categorias WHERE (Categorias.rght < :c0 AND Categorias.lft > :c1) ORDER BY Categorias.lft ASC', 'params' => [ [maximum depth reached] ], 'defaultTypes' => [ [maximum depth reached] ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [[maximum depth reached]], 'matching' => [[maximum depth reached]], 'extraOptions' => [ [maximum depth reached] ], 'repository' => object(Almacen\Model\Table\CategoriasTable) {} }, 'metadescription' => '', 'es_portada' => false ] $categoria = object(Almacen\Model\Entity\Categoria) { 'id' => '0dcbe20e-d442-49b4-b19f-75f8a1a04d27', 'parent_id' => null, 'lft' => (int) 7, 'rght' => (int) 8, 'ref' => 'CAT-25-000004', 'slug' => 'Juego-de-espuma', 'title' => 'Juego de espuma', 'short_title' => 'Juego de espuma', 'impuesto_id' => '5c7d2fc0-d388-11e7-b32c-ea921cd4d2a0', 'notas' => '', 'img' => null, 'thumb' => null, 'tiny' => null, 'responsive' => null, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'active' => true, 'destacado' => true, 'exento_ge' => true, 'productos' => [ (int) 0 => object(Almacen\Model\Entity\Producto) {} ], '_translations' => [], '[new]' => false, '[accessible]' => [ '*' => true, 'id' => false ], '[dirty]' => [], '[original]' => [], '[virtual]' => [], '[hasErrors]' => false, '[errors]' => [], '[invalid]' => [], '[repository]' => 'Almacen.Categorias' } $children = object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Categorias.title AS `Categorias__title`, Categorias.slug AS `Categorias__slug` FROM almacen_categorias Categorias WHERE (Categorias.rght < :c0 AND Categorias.lft > :c1) ORDER BY Categorias.lft ASC', 'params' => [ ':c0' => [ [maximum depth reached] ], ':c1' => [ [maximum depth reached] ] ], '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) 0, 'mapReducers' => (int) 0, 'contain' => [], 'matching' => [], 'extraOptions' => [ 'for' => '0dcbe20e-d442-49b4-b19f-75f8a1a04d27' ], 'repository' => object(Almacen\Model\Table\CategoriasTable) {} } $metadescription = '' $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