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 = [ 'producto' => object(Almacen\Model\Entity\Producto) { 'id' => 'ede2d3d6-9243-42a6-a32f-92c1dfca8be5', 'categoria_id' => '0a6534bf-461c-4ea2-be4d-733478be6405', 'marca_id' => '', 'modelo_id' => null, 'formato_id' => null, 'orden' => (int) 10, 'slug' => 'Papelera', 'ref' => '', 'ref_proveedor' => '', 'title' => 'Papelera', 'precio' => (float) 42.35, 'dto_porcentaje' => null, 'dto_absoluto' => null, 'pedido_minimo' => null, 'novedad' => false, 'vegano' => false, 'temporada' => false, 'peso' => null, 'lim_packs' => null, 'notas' => '<p>Papelera de plástico infantil para peques.Médidas alto 68,fondo 50 y ancho 30,</p>', 'descripcion' => null, 'enlace_video' => '', 'img' => 'Productos/Papelera/Papelera.jpg', 'thumb' => 'Productos/Papelera/thumb/Papelera.jpg', 'tiny' => 'Productos/Papelera/tiny/Papelera.jpg', 'responsive' => null, 'adjunto' => null, 'video' => null, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'active' => true, 'destacado' => false, 'visitas' => (int) 3, 'ventas' => (int) 41, 'ofertas' => [[maximum depth reached]], 'marca' => null, 'modelos' => [[maximum depth reached]], 'stock' => null, 'categoria' => object(Almacen\Model\Entity\Categoria) {}, 'imagenes' => [ [maximum depth reached] ], '_translations' => [[maximum depth reached]], 'formated_precio' => '42,35€', 'base' => (float) 35, 'formated_base' => '35,00 €', '[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.Productos' }, 'carrito' => object(Ventas\Model\Entity\Carrito) { '[new]' => true, '[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]' => 'Ventas.Carritos' }, 'metadescription' => '<p>Papelera de plástico infantil para peques.Médidas alto 68,fondo 50 y ancho 30,</p>', 'es_portada' => false ] $producto = object(Almacen\Model\Entity\Producto) { 'id' => 'ede2d3d6-9243-42a6-a32f-92c1dfca8be5', 'categoria_id' => '0a6534bf-461c-4ea2-be4d-733478be6405', 'marca_id' => '', 'modelo_id' => null, 'formato_id' => null, 'orden' => (int) 10, 'slug' => 'Papelera', 'ref' => '', 'ref_proveedor' => '', 'title' => 'Papelera', 'precio' => (float) 42.35, 'dto_porcentaje' => null, 'dto_absoluto' => null, 'pedido_minimo' => null, 'novedad' => false, 'vegano' => false, 'temporada' => false, 'peso' => null, 'lim_packs' => null, 'notas' => '<p>Papelera de plástico infantil para peques.Médidas alto 68,fondo 50 y ancho 30,</p>', 'descripcion' => null, 'enlace_video' => '', 'img' => 'Productos/Papelera/Papelera.jpg', 'thumb' => 'Productos/Papelera/thumb/Papelera.jpg', 'tiny' => 'Productos/Papelera/tiny/Papelera.jpg', 'responsive' => null, 'adjunto' => null, 'video' => null, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'active' => true, 'destacado' => false, 'visitas' => (int) 3, 'ventas' => (int) 41, 'ofertas' => [], 'marca' => null, 'modelos' => [], 'stock' => null, 'categoria' => object(Almacen\Model\Entity\Categoria) {}, 'imagenes' => [ (int) 0 => object(App\Model\Entity\Imagen) {} ], '_translations' => [], 'formated_precio' => '42,35€', 'base' => (float) 35, 'formated_base' => '35,00 €', '[new]' => false, '[accessible]' => [ '*' => true, 'id' => false, 'gastos_envios' => true ], '[dirty]' => [], '[original]' => [], '[virtual]' => [ (int) 0 => 'formated_precio', (int) 1 => 'base', (int) 2 => 'formated_base' ], '[hasErrors]' => false, '[errors]' => [], '[invalid]' => [], '[repository]' => 'Almacen.Productos' } $carrito = object(Ventas\Model\Entity\Carrito) { '[new]' => true, '[accessible]' => [ '*' => true, 'id' => false ], '[dirty]' => [], '[original]' => [], '[virtual]' => [], '[hasErrors]' => false, '[errors]' => [], '[invalid]' => [], '[repository]' => 'Ventas.Carritos' } $metadescription = '<p>Papelera de plástico infantil para peques.Médidas alto 68,fondo 50 y ancho 30,</p>' $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 = [ 'producto' => object(Almacen\Model\Entity\Producto) { 'id' => 'ede2d3d6-9243-42a6-a32f-92c1dfca8be5', 'categoria_id' => '0a6534bf-461c-4ea2-be4d-733478be6405', 'marca_id' => '', 'modelo_id' => null, 'formato_id' => null, 'orden' => (int) 10, 'slug' => 'Papelera', 'ref' => '', 'ref_proveedor' => '', 'title' => 'Papelera', 'precio' => (float) 42.35, 'dto_porcentaje' => null, 'dto_absoluto' => null, 'pedido_minimo' => null, 'novedad' => false, 'vegano' => false, 'temporada' => false, 'peso' => null, 'lim_packs' => null, 'notas' => '<p>Papelera de plástico infantil para peques.Médidas alto 68,fondo 50 y ancho 30,</p>', 'descripcion' => null, 'enlace_video' => '', 'img' => 'Productos/Papelera/Papelera.jpg', 'thumb' => 'Productos/Papelera/thumb/Papelera.jpg', 'tiny' => 'Productos/Papelera/tiny/Papelera.jpg', 'responsive' => null, 'adjunto' => null, 'video' => null, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'active' => true, 'destacado' => false, 'visitas' => (int) 3, 'ventas' => (int) 41, 'ofertas' => [[maximum depth reached]], 'marca' => null, 'modelos' => [[maximum depth reached]], 'stock' => null, 'categoria' => object(Almacen\Model\Entity\Categoria) {}, 'imagenes' => [ [maximum depth reached] ], '_translations' => [[maximum depth reached]], 'formated_precio' => '42,35€', 'base' => (float) 35, 'formated_base' => '35,00 €', '[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.Productos' }, 'carrito' => object(Ventas\Model\Entity\Carrito) { '[new]' => true, '[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]' => 'Ventas.Carritos' }, 'metadescription' => '<p>Papelera de plástico infantil para peques.Médidas alto 68,fondo 50 y ancho 30,</p>', 'es_portada' => false ] $producto = object(Almacen\Model\Entity\Producto) { 'id' => 'ede2d3d6-9243-42a6-a32f-92c1dfca8be5', 'categoria_id' => '0a6534bf-461c-4ea2-be4d-733478be6405', 'marca_id' => '', 'modelo_id' => null, 'formato_id' => null, 'orden' => (int) 10, 'slug' => 'Papelera', 'ref' => '', 'ref_proveedor' => '', 'title' => 'Papelera', 'precio' => (float) 42.35, 'dto_porcentaje' => null, 'dto_absoluto' => null, 'pedido_minimo' => null, 'novedad' => false, 'vegano' => false, 'temporada' => false, 'peso' => null, 'lim_packs' => null, 'notas' => '<p>Papelera de plástico infantil para peques.Médidas alto 68,fondo 50 y ancho 30,</p>', 'descripcion' => null, 'enlace_video' => '', 'img' => 'Productos/Papelera/Papelera.jpg', 'thumb' => 'Productos/Papelera/thumb/Papelera.jpg', 'tiny' => 'Productos/Papelera/tiny/Papelera.jpg', 'responsive' => null, 'adjunto' => null, 'video' => null, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'active' => true, 'destacado' => false, 'visitas' => (int) 3, 'ventas' => (int) 41, 'ofertas' => [], 'marca' => null, 'modelos' => [], 'stock' => null, 'categoria' => object(Almacen\Model\Entity\Categoria) {}, 'imagenes' => [ (int) 0 => object(App\Model\Entity\Imagen) {} ], '_translations' => [], 'formated_precio' => '42,35€', 'base' => (float) 35, 'formated_base' => '35,00 €', '[new]' => false, '[accessible]' => [ '*' => true, 'id' => false, 'gastos_envios' => true ], '[dirty]' => [], '[original]' => [], '[virtual]' => [ (int) 0 => 'formated_precio', (int) 1 => 'base', (int) 2 => 'formated_base' ], '[hasErrors]' => false, '[errors]' => [], '[invalid]' => [], '[repository]' => 'Almacen.Productos' } $carrito = object(Ventas\Model\Entity\Carrito) { '[new]' => true, '[accessible]' => [ '*' => true, 'id' => false ], '[dirty]' => [], '[original]' => [], '[virtual]' => [], '[hasErrors]' => false, '[errors]' => [], '[invalid]' => [], '[repository]' => 'Ventas.Carritos' } $metadescription = '<p>Papelera de plástico infantil para peques.Médidas alto 68,fondo 50 y ancho 30,</p>' $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
Papelera de plástico infantil para peques.Médidas alto 68,fondo 50 y ancho 30,
Rellena el formulario y nuestro equipo comercial estará encantado de atender cualquier duda sobre cualquiera de nuestros servicios