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, 'noticias' => object(Cake\ORM\ResultSet) { 'items' => [ [maximum depth reached] ] }, 'secciones' => object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Secciones.id AS `Secciones__id`, Secciones.title AS `Secciones__title` FROM contenido_secciones Secciones ORDER BY title', 'params' => [[maximum depth reached]], 'defaultTypes' => [ [maximum depth reached] ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 1, 'mapReducers' => (int) 0, 'contain' => [[maximum depth reached]], 'matching' => [[maximum depth reached]], 'extraOptions' => [[maximum depth reached]], 'repository' => object(Contenido\Model\Table\SeccionesTable) {} }, 'proyectoId' => '6ef80eee-7881-48a0-946c-171a5db4d654', 'es_portada' => false ] $_searchParams = [] $_isSearch = false $noticias = object(Cake\ORM\ResultSet) { 'items' => [ (int) 0 => object(Contenido\Model\Entity\Noticia) {}, (int) 1 => object(Contenido\Model\Entity\Noticia) {}, (int) 2 => object(Contenido\Model\Entity\Noticia) {}, (int) 3 => object(Contenido\Model\Entity\Noticia) {}, (int) 4 => object(Contenido\Model\Entity\Noticia) {} ] } $secciones = object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Secciones.id AS `Secciones__id`, Secciones.title AS `Secciones__title` FROM contenido_secciones Secciones ORDER BY title', 'params' => [], 'defaultTypes' => [ 'Secciones__id' => 'uuid', 'Secciones.id' => 'uuid', 'id' => 'uuid', 'Secciones__slug' => 'string', 'Secciones.slug' => 'string', 'slug' => 'string', 'Secciones__title' => 'string', 'Secciones.title' => 'string', 'title' => 'string', 'Secciones__notas' => 'text', 'Secciones.notas' => 'text', 'notas' => 'text', 'Secciones__img' => 'string', 'Secciones.img' => 'string', 'img' => 'string', 'Secciones__thumb' => 'string', 'Secciones.thumb' => 'string', 'thumb' => 'string', 'Secciones__tiny' => 'string', 'Secciones.tiny' => 'string', 'tiny' => 'string', 'Secciones__responsive' => 'string', 'Secciones.responsive' => 'string', 'responsive' => 'string', 'Secciones__created' => 'datetime', 'Secciones.created' => 'datetime', 'created' => 'datetime', 'Secciones__modified' => 'datetime', 'Secciones.modified' => 'datetime', 'modified' => 'datetime', 'Secciones__active' => 'boolean', 'Secciones.active' => 'boolean', 'active' => 'boolean' ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 1, 'mapReducers' => (int) 0, 'contain' => [], 'matching' => [], 'extraOptions' => [], 'repository' => object(Contenido\Model\Table\SeccionesTable) {} } $proyectoId = '6ef80eee-7881-48a0-946c-171a5db4d654' $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, 'noticias' => object(Cake\ORM\ResultSet) { 'items' => [ [maximum depth reached] ] }, 'secciones' => object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Secciones.id AS `Secciones__id`, Secciones.title AS `Secciones__title` FROM contenido_secciones Secciones ORDER BY title', 'params' => [[maximum depth reached]], 'defaultTypes' => [ [maximum depth reached] ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 1, 'mapReducers' => (int) 0, 'contain' => [[maximum depth reached]], 'matching' => [[maximum depth reached]], 'extraOptions' => [[maximum depth reached]], 'repository' => object(Contenido\Model\Table\SeccionesTable) {} }, 'proyectoId' => '6ef80eee-7881-48a0-946c-171a5db4d654', 'es_portada' => false ] $_searchParams = [] $_isSearch = false $noticias = object(Cake\ORM\ResultSet) { 'items' => [ (int) 0 => object(Contenido\Model\Entity\Noticia) {}, (int) 1 => object(Contenido\Model\Entity\Noticia) {}, (int) 2 => object(Contenido\Model\Entity\Noticia) {}, (int) 3 => object(Contenido\Model\Entity\Noticia) {}, (int) 4 => object(Contenido\Model\Entity\Noticia) {} ] } $secciones = object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Secciones.id AS `Secciones__id`, Secciones.title AS `Secciones__title` FROM contenido_secciones Secciones ORDER BY title', 'params' => [], 'defaultTypes' => [ 'Secciones__id' => 'uuid', 'Secciones.id' => 'uuid', 'id' => 'uuid', 'Secciones__slug' => 'string', 'Secciones.slug' => 'string', 'slug' => 'string', 'Secciones__title' => 'string', 'Secciones.title' => 'string', 'title' => 'string', 'Secciones__notas' => 'text', 'Secciones.notas' => 'text', 'notas' => 'text', 'Secciones__img' => 'string', 'Secciones.img' => 'string', 'img' => 'string', 'Secciones__thumb' => 'string', 'Secciones.thumb' => 'string', 'thumb' => 'string', 'Secciones__tiny' => 'string', 'Secciones.tiny' => 'string', 'tiny' => 'string', 'Secciones__responsive' => 'string', 'Secciones.responsive' => 'string', 'responsive' => 'string', 'Secciones__created' => 'datetime', 'Secciones.created' => 'datetime', 'created' => 'datetime', 'Secciones__modified' => 'datetime', 'Secciones.modified' => 'datetime', 'modified' => 'datetime', 'Secciones__active' => 'boolean', 'Secciones.active' => 'boolean', 'active' => 'boolean' ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 1, 'mapReducers' => (int) 0, 'contain' => [], 'matching' => [], 'extraOptions' => [], 'repository' => object(Contenido\Model\Table\SeccionesTable) {} } $proyectoId = '6ef80eee-7881-48a0-946c-171a5db4d654' $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
27/02/2025
En Dubydu llevamos años creando espacios de juego donde la seguridad, la creatividad y la diversi...
Mantenimiento de parques infantiles, Dubydu garantiza seguridad y diversión.