refactor: remove legacy website snippet configurations and clean up theme structure
This commit is contained in:
@@ -446,11 +446,9 @@
|
||||
</template>
|
||||
|
||||
<template id="shop_product_image" inherit_id="website_sale.shop_product_image">
|
||||
<div t-else="" position="replace">
|
||||
<div t-else="" t-att-class="image_classes + ' oe_unmovable position-relative'">
|
||||
<div t-field="product_image.image_1920" t-att-class="image_classes + ' oe_unmovable position-relative'" t-options='{"widget": "image", "preview_image": "image_1024", "class": "oe_unmovable product_detail_img mh-100", "alt-field": "name", "zoom": product_image.can_image_1024_be_zoomed and "image_1920"}'/>
|
||||
</div>
|
||||
</div>
|
||||
<xpath expr="//div[@t-else='']" position="attributes">
|
||||
<attribute name="t-att-class">image_classes + ' oe_unmovable position-relative'</attribute>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="product_price" inherit_id="website_sale.product_price">
|
||||
@@ -478,11 +476,11 @@
|
||||
</template>
|
||||
|
||||
<template id="product_buy_now" inherit_id="website_sale.product_buy_now" name="Theme Prime: Buy Now Button">
|
||||
<xpath expr="//a[contains(@t-attf-class, 'o_we_buy_now')]" position="replace"/>
|
||||
<xpath expr="//a[hasclass('o_we_buy_now')]" position="replace"/>
|
||||
</template>
|
||||
|
||||
<template id="product_custom_text" inherit_id="website_sale.product_custom_text" name="Theme Prime: Terms and Conditions">
|
||||
<xpath expr="//div[@id='product_details']//p[contains(@class, 'text-muted mb-0')]" position="replace">
|
||||
<xpath expr="//p[hasclass('text-muted') and hasclass('mb-0')]" position="replace">
|
||||
<div class="row tp-hook-terms">
|
||||
<div class="col-12">
|
||||
<h6 class="mb-1"><a href="/terms" class="tp-link-dark">Terms and Conditions :</a></h6>
|
||||
@@ -522,7 +520,7 @@
|
||||
</template>
|
||||
|
||||
<template id="product_share_buttons" inherit_id="website_sale.product_share_buttons" name="Theme Prime: Share Buttons">
|
||||
<xpath expr="//div[@id='product_details']//div[contains(@class, 'h4 mt-3 mb-0 d-flex justify-content-md-end flex-shrink-0')]" position="replace"/>
|
||||
<xpath expr="//div[@id='o_product_terms_and_share']/div[hasclass('s_share')]" position="replace"/>
|
||||
</template>
|
||||
|
||||
<template id="alternative_products" inherit_id="website_sale.alternative_products" name="Theme Prime: Alternative Products">
|
||||
@@ -532,7 +530,7 @@
|
||||
</template>
|
||||
|
||||
<template id="product_add_to_compare" inherit_id="website_sale_comparison.product_add_to_compare" name="Theme Prime: Add to comparison in product page">
|
||||
<button t-if="product_variant_id and categories" position="replace"/>
|
||||
<xpath expr="//button[hasclass('o_add_compare_dyn')]" position="replace"/>
|
||||
</template>
|
||||
|
||||
<template id="product_attributes_body" inherit_id="website_sale_comparison.product_attributes_body" name="Theme Prime: Product attributes table">
|
||||
@@ -546,15 +544,15 @@
|
||||
</template>
|
||||
|
||||
<template id="ecom_show_extra_fields" inherit_id="website_sale.ecom_show_extra_fields" name="Theme Prime: Show Extra Fields">
|
||||
<xpath expr="//t[@t-if='any([product[field.name] for field in website.shop_extra_field_ids])']" position="replace"/>
|
||||
<xpath expr="//t[@t-if="any([product.sudo()[field.name] for field in website.shop_extra_field_ids])"]" position="replace"/>
|
||||
</template>
|
||||
|
||||
<template id="shop_product_carousel" inherit_id="website_sale.shop_product_carousel">
|
||||
<xpath expr="//a[hasclass('carousel-control-prev')]/span" position="attributes">
|
||||
<attribute name="class"> fa fa-chevron-left oe_unmovable tp-icon-center-2 dr-p-icon border-0 shadow</attribute>
|
||||
<xpath expr="//a[hasclass('carousel-control-prev')]/i" position="attributes">
|
||||
<attribute name="class">fa fa-chevron-left oe_unmovable tp-icon-center-2 dr-p-icon border-0 shadow</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//a[hasclass('carousel-control-next')]/span" position="attributes">
|
||||
<attribute name="class"> fa fa-chevron-right oe_unmovable tp-icon-center-2 dr-p-icon border-0 shadow</attribute>
|
||||
<xpath expr="//a[hasclass('carousel-control-next')]/i" position="attributes">
|
||||
<attribute name="class">fa fa-chevron-right oe_unmovable tp-icon-center-2 dr-p-icon border-0 shadow</attribute>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user