Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

Mobile wishlist looks squished, bad formatting

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
saaswishlistecommerceOdoo17Online
1485 Vistas
Avatar
Anthony

Hello All,

I am using Odoo 17 Online.

I realized today that the mobile wishlist page looks terrible. I updated the HTML so that the formatting was mobile friendly. Everything looks great, but when I try to click the add to cart or remove buttons on the mobile version it says:



I've looked over the code and I don't know where it's going wrong, can someone help? Here is the code below: It's got two sections, a table section for desktop views and a mobile version.

Template ID: website_sale_wishlist.product_wishlist


0
Avatar
Descartar
Anthony
Autor

Sorry, Odoo won't let me post the code without it displaying it, so stupid.....

<t name="Wishlist Page" t-name="website_sale_wishlist.product_wishlist">
<t t-call="website.layout">
<t t-set="additional_title">Shop Wishlist</t>
<div id="wrap" class="js_sale">
<div class="oe_structure" id="oe_structure_website_sale_wishlist_product_wishlist_1"/>
<div class="container oe_website_sale pt-3">
<section class="container wishlist-section">
<h3>My Wishlist</h3>
<div class="checkbox">
<label class="text-muted">
<input type="checkbox" id="b2b_wish" value="1" class="mr8"/>Add product to my cart but keep it in my wishlist
</label>
</div>
<!-- Existing table for desktop view -->
<table class="table table-bordered table-striped table-hover text-center mt16 table-comparator" style="table-layout:auto" id="o_comparelist_table">
<tbody>
<t t-foreach="wishes" t-as="wish">
<t t-set="combination_info" t-value="wish.product_id._get_combination_info_variant()"/>
<tr t-att-data-wish-id="wish.id" t-att-data-product-id="wish.product_id.id">
<td class="td-img align-middle">
<a t-att-href="wish.product_id.website_url">
<img t-att-src="'/web/image/product.product/%s/image_128' % (wish.product_id.id)" alt="Product image" class="img-fluid"/>
</a>
</td>
<td class="text-start align-middle">
<strong>
<a t-att-href="wish.product_id.website_url"><t t-esc="wish.product_id.display_name"/></a>
</strong>
<div class="product-internal-reference text-muted">
Model Number: <span><t t-esc="wish.product_id.default_code"/></span>
</div>
<button type="button" class="btn btn-link o_wish_rm no-decoration">
<small><i class="fa fa-trash-o"/> Remove</small>
</button>
</td>
<td class="align-middle o_wish_price" t-if="combination_info['prevent_zero_price_sale']">
<span t-field="website.prevent_zero_price_sale_text"/>
</td>
<td class="align-middle o_wish_price" t-else="">
<t t-out="combination_info['price']" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
<small t-if="combination_info['base_unit_price']" class="cart_product_base_unit_price d-block text-muted" groups="website_sale.group_show_uom_price">
<t t-call="website_sale.base_unit_price"><t t-set="product" t-value="wish.product_id"/></t>
</small>
</td>
<td class="text-center td-wish-btn align-middle">
<input name="product_id" t-att-value="wish.product_id.id" type="hidden"/>
<a t-if="combination_info['prevent_zero_price_sale']" t-att-href="website.contact_us_button_url" class="btn btn-primary btn_cta">Contact Us</a>
<button id="add_to_cart_button" t-else="" type="button" role="button" class="btn btn-secondary btn-block o_wish_add mb4">
Add <span class="d-none d-md-inline">to Cart</span>
</button>
</td>
</tr>
</t>
</tbody>
</table>

<!-- Mobile-specific layout -->
<div class="mobile-wishlist">
<t t-foreach="wishes" t-as="wish">
<t t-set="combination_info" t-value="wish.product_id._get_combination_info_variant()"/>
<div class="wishlist-card" t-att-data-wish-id="wish.id" t-att-data-product-id="wish.product_id.id">
<div class="wishlist-image">
<a t-att-href="wish.product_id.website_url">
<img t-att-src="'/web/image/product.product/%s/image_128' % (wish.product_id.id)" alt="Product image"/>
</a>
</div>
<div class="wishlist-info">
<strong>
<a t-att-href="wish.product_id.website_url"><t t-esc="wish.product_id.display_name"/></a>
</strong>
<div class="product-internal-reference text-muted">
Model Number: <span><t t-esc="wish.product_id.default_code"/></span>
</div>
<div class="align-middle o_wish_price" t-if="combination_info['prevent_zero_price_sale']">
<span t-field="website.prevent_zero_price_sale_text"/>
</div>
<div class="align-middle o_wish_price" t-else="">
<t t-out="combination_info['price']" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
<small t-if="combination_info['base_unit_price']" class="cart_product_base_unit_price d-block text-muted" groups="website_sale.group_show_uom_price">
<t t-call="website_sale.base_unit_price"><t t-set="product" t-value="wish.product_id"/></t>
</small>
</div>
<button type="button" class="btn btn-link o_wish_rm no-decoration">
<small><i class="fa fa-trash-o"/> Remove</small>
</button>
<input name="product_id" t-att-value="wish.product_id.id" type="hidden"/>
<a t-if="combination_info['prevent_zero_price_sale']" t-att-href="website.contact_us_button_url" class="btn btn-primary btn_cta">Contact Us</a>
<button id="add_to_cart_button" t-else="" type="button" role="button" class="btn btn-secondary btn-block o_wish_add mb4">
Add to Cart
</button>
</div>
</div>
</t>
</div>
</section>
</div>
</div>
</t>
</t>

¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
Events Visibility to Different Portal Groups
saas Online
Avatar
0
ago 24
1553
Decimals in Pricing
Odoo17 Online
Avatar
Avatar
2
jun 24
3605
Ecommerce Wishlist
wishlist ecommerce
Avatar
Avatar
1
feb 24
5394
Reading system parameter from website_sale.confirmation template in Odoo 17 Enterprise Resuelto
Enterprise Odoo17 Online
Avatar
Avatar
1
feb 25
3799
Access backend models fields from frontend template
Enterprise Odoo17 Online
Avatar
0
nov 24
2056
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

Sitio web hecho con

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now