İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Onay
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım

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

  • Müşteri İlişkileri Yönetimi
  • e-Commerce
  • Muhasebe
  • Envanter
  • PoS
  • Proje Yönetimi
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
Yardım

Mobile wishlist looks squished, bad formatting

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
saaswishlistecommerceOdoo17Online
1411 Görünümler
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
Vazgeç
Anthony
Üretici

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!

Üye Ol
İlgili Gönderiler Cevaplar Görünümler Aktivite
Events Visibility to Different Portal Groups
saas Online
Avatar
0
Ağu 24
1497
Decimals in Pricing
Odoo17 Online
Avatar
Avatar
2
Haz 24
3440
Ecommerce Wishlist
wishlist ecommerce
Avatar
Avatar
1
Şub 24
5344
Reading system parameter from website_sale.confirmation template in Odoo 17 Enterprise Çözüldü
Enterprise Odoo17 Online
Avatar
Avatar
1
Şub 25
3671
Access backend models fields from frontend template
Enterprise Odoo17 Online
Avatar
0
Kas 24
1987
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة 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, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

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