Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Mobile wishlist looks squished, bad formatting

Odebírat

Get notified when there's activity on this post

This question has been flagged
saaswishlistecommerceOdoo17Online
1400 Zobrazení
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
Zrušit
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>

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
Events Visibility to Different Portal Groups
saas Online
Avatar
0
srp 24
1482
Decimals in Pricing
Odoo17 Online
Avatar
Avatar
2
čvn 24
3406
Ecommerce Wishlist
wishlist ecommerce
Avatar
Avatar
1
úno 24
5337
Reading system parameter from website_sale.confirmation template in Odoo 17 Enterprise Vyřešeno
Enterprise Odoo17 Online
Avatar
Avatar
1
úno 25
3626
Access backend models fields from frontend template
Enterprise Odoo17 Online
Avatar
0
lis 24
1977
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

Website made with

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