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' => '77084542-7205-46b5-8df5-2c4414183557', 'categoria_id' => '89b53cd7-207b-405b-af83-4e2756679397', 'marca_id' => '', 'modelo_id' => null, 'formato_id' => null, 'orden' => (int) 6, 'slug' => 'Espumogeno', 'ref' => '', 'ref_proveedor' => '', 'title' => 'Espumógeno', 'precio' => (float) 66.55, 'dto_porcentaje' => null, 'dto_absoluto' => null, 'pedido_minimo' => null, 'novedad' => false, 'vegano' => false, 'temporada' => false, 'peso' => null, 'lim_packs' => null, 'notas' => '<p>Espumógeno 25L para cañon de espuma</p>', 'descripcion' => null, 'enlace_video' => '', 'img' => null, 'thumb' => null, 'tiny' => null, 'responsive' => null, 'adjunto' => null, 'video' => null, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'active' => true, 'destacado' => false, 'visitas' => (int) 57, 'ventas' => (int) 0, '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' => '66,55€', 'base' => (float) 55, 'formated_base' => '55,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>Espumógeno 25L para cañon de espuma</p>', 'es_portada' => false ] $producto = object(Almacen\Model\Entity\Producto) { 'id' => '77084542-7205-46b5-8df5-2c4414183557', 'categoria_id' => '89b53cd7-207b-405b-af83-4e2756679397', 'marca_id' => '', 'modelo_id' => null, 'formato_id' => null, 'orden' => (int) 6, 'slug' => 'Espumogeno', 'ref' => '', 'ref_proveedor' => '', 'title' => 'Espumógeno', 'precio' => (float) 66.55, 'dto_porcentaje' => null, 'dto_absoluto' => null, 'pedido_minimo' => null, 'novedad' => false, 'vegano' => false, 'temporada' => false, 'peso' => null, 'lim_packs' => null, 'notas' => '<p>Espumógeno 25L para cañon de espuma</p>', 'descripcion' => null, 'enlace_video' => '', 'img' => null, 'thumb' => null, 'tiny' => null, 'responsive' => null, 'adjunto' => null, 'video' => null, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'active' => true, 'destacado' => false, 'visitas' => (int) 57, 'ventas' => (int) 0, 'ofertas' => [], 'marca' => null, 'modelos' => [], 'stock' => null, 'categoria' => object(Almacen\Model\Entity\Categoria) {}, 'imagenes' => [], '_translations' => [], 'formated_precio' => '66,55€', 'base' => (float) 55, 'formated_base' => '55,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>Espumógeno 25L para cañon de espuma</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' => '77084542-7205-46b5-8df5-2c4414183557', 'categoria_id' => '89b53cd7-207b-405b-af83-4e2756679397', 'marca_id' => '', 'modelo_id' => null, 'formato_id' => null, 'orden' => (int) 6, 'slug' => 'Espumogeno', 'ref' => '', 'ref_proveedor' => '', 'title' => 'Espumógeno', 'precio' => (float) 66.55, 'dto_porcentaje' => null, 'dto_absoluto' => null, 'pedido_minimo' => null, 'novedad' => false, 'vegano' => false, 'temporada' => false, 'peso' => null, 'lim_packs' => null, 'notas' => '<p>Espumógeno 25L para cañon de espuma</p>', 'descripcion' => null, 'enlace_video' => '', 'img' => null, 'thumb' => null, 'tiny' => null, 'responsive' => null, 'adjunto' => null, 'video' => null, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'active' => true, 'destacado' => false, 'visitas' => (int) 57, 'ventas' => (int) 0, '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' => '66,55€', 'base' => (float) 55, 'formated_base' => '55,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>Espumógeno 25L para cañon de espuma</p>', 'es_portada' => false ] $producto = object(Almacen\Model\Entity\Producto) { 'id' => '77084542-7205-46b5-8df5-2c4414183557', 'categoria_id' => '89b53cd7-207b-405b-af83-4e2756679397', 'marca_id' => '', 'modelo_id' => null, 'formato_id' => null, 'orden' => (int) 6, 'slug' => 'Espumogeno', 'ref' => '', 'ref_proveedor' => '', 'title' => 'Espumógeno', 'precio' => (float) 66.55, 'dto_porcentaje' => null, 'dto_absoluto' => null, 'pedido_minimo' => null, 'novedad' => false, 'vegano' => false, 'temporada' => false, 'peso' => null, 'lim_packs' => null, 'notas' => '<p>Espumógeno 25L para cañon de espuma</p>', 'descripcion' => null, 'enlace_video' => '', 'img' => null, 'thumb' => null, 'tiny' => null, 'responsive' => null, 'adjunto' => null, 'video' => null, 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => object(Cake\I18n\FrozenTime) {}, 'active' => true, 'destacado' => false, 'visitas' => (int) 57, 'ventas' => (int) 0, 'ofertas' => [], 'marca' => null, 'modelos' => [], 'stock' => null, 'categoria' => object(Almacen\Model\Entity\Categoria) {}, 'imagenes' => [], '_translations' => [], 'formated_precio' => '66,55€', 'base' => (float) 55, 'formated_base' => '55,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>Espumógeno 25L para cañon de espuma</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
Espumógeno 25L para cañon de espuma
Rellena el formulario y nuestro equipo comercial estará encantado de atender cualquier duda sobre cualquiera de nuestros servicios