forked from alaguraj/odoo-testing-addons
implement unified checkout address layout with pickup/delivery selection and update docker container configurations
This commit is contained in:
parent
0334bb324c
commit
ae1980ee9d
@ -23,17 +23,25 @@
|
||||
<!-- 3. MAIN FORM: Optimized Pickup/Delivery Layout -->
|
||||
<template id="chennora_address_unified" inherit_id="website_sale.address" name="Chennora Address Unified" priority="99">
|
||||
|
||||
<!-- Hide the 'Billing address' title -->
|
||||
<!-- Hide 'Billing address' title -->
|
||||
<xpath expr="//div[contains(@class, 'oe_cart')]//*[self::h2 or self::h3][1]" position="attributes">
|
||||
<attribute name="class" add="d-none" separator=" "/>
|
||||
</xpath>
|
||||
|
||||
<!-- NEW: Hide the yellow 'Be aware' alert box -->
|
||||
<!-- Hide yellow 'Be aware' box -->
|
||||
<xpath expr="//div[hasclass('alert-warning')][contains(., 'billing and shipping')]" position="attributes">
|
||||
<attribute name="class" add="d-none" separator=" "/>
|
||||
<attribute name="style">display: none !important;</attribute>
|
||||
</xpath>
|
||||
|
||||
<!-- NEW: Hide 'Company Name' and 'VAT' fields -->
|
||||
<xpath expr="//div[label[@for='company_name']]" position="attributes">
|
||||
<attribute name="class" add="d-none" separator=" "/>
|
||||
</xpath>
|
||||
<xpath expr="//div[hasclass('div_vat')]" position="attributes">
|
||||
<attribute name="class" add="d-none" separator=" "/>
|
||||
</xpath>
|
||||
|
||||
<!-- Inject Selection Cards -->
|
||||
<xpath expr="//form" position="before">
|
||||
<style>
|
||||
@ -78,7 +86,7 @@
|
||||
<div id="contact_info_header" class="section-header mt-4"><i class="fa fa-user me-2"></i>Contact Details</div>
|
||||
</xpath>
|
||||
|
||||
<!-- Hide the 'Ship to same address' section -->
|
||||
<!-- Hide 'Ship to same address' section -->
|
||||
<xpath expr="//label[contains(., 'Ship to the same address')]/ancestor::div[1]" position="attributes">
|
||||
<attribute name="style">display: none !important;</attribute>
|
||||
<attribute name="class" add="d-none" separator=" "/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user