[IMP] website_sale_aplicoop: disable standard website_sale cart — hide header cart, remove add-to-cart, redirect cart routes to /eskaera
This commit is contained in:
parent
3ca90578ae
commit
8f7eca45b8
2 changed files with 74 additions and 5 deletions
|
|
@ -6,11 +6,34 @@
|
|||
Convert /shop to a simple product catalog
|
||||
========================================== -->
|
||||
|
||||
<!-- Hide the cart link from the header -->
|
||||
<template id="header_cart_link_hidden" inherit_id="website_sale.header_cart_link" name="Hide Cart Link">
|
||||
<xpath expr="//li[hasclass('o_wsale_my_cart')]" position="attributes">
|
||||
<attribute name="class" add="d-none" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Hide the cart link from the header by removing the t-call to website_sale.header_cart_link
|
||||
from the various header templates (more robust than targeting the cart template internals) -->
|
||||
<template id="hide_cart_in_header_default" inherit_id="website.template_header_default" name="Hide Cart Link in Header Default">
|
||||
<xpath expr="//t[@t-call='website_sale.header_cart_link']" position="replace"/>
|
||||
</template>
|
||||
|
||||
<template id="hide_cart_in_header_mobile" inherit_id="website.template_header_mobile" name="Hide Cart Link in Header Mobile">
|
||||
<xpath expr="//t[@t-call='website_sale.header_cart_link']" position="replace"/>
|
||||
</template>
|
||||
|
||||
<template id="hide_cart_in_header_hamburger" inherit_id="website.template_header_hamburger" name="Hide Cart Link in Header Hamburger">
|
||||
<xpath expr="//t[@t-call='website_sale.header_cart_link']" position="replace"/>
|
||||
</template>
|
||||
|
||||
<template id="hide_cart_in_header_stretch" inherit_id="website.template_header_stretch" name="Hide Cart Link in Header Stretch">
|
||||
<xpath expr="//t[@t-call='website_sale.header_cart_link']" position="replace"/>
|
||||
</template>
|
||||
|
||||
<template id="hide_cart_in_header_vertical" inherit_id="website.template_header_vertical" name="Hide Cart Link in Header Vertical">
|
||||
<xpath expr="//t[@t-call='website_sale.header_cart_link']" position="replace"/>
|
||||
</template>
|
||||
|
||||
<template id="hide_cart_in_header_search" inherit_id="website.template_header_search" name="Hide Cart Link in Header Search">
|
||||
<xpath expr="//t[@t-call='website_sale.header_cart_link']" position="replace"/>
|
||||
</template>
|
||||
|
||||
<template id="hide_cart_in_header_sales_one" inherit_id="website.template_header_sales_one" name="Hide Cart Link in Header Sales One">
|
||||
<xpath expr="//t[@t-call='website_sale.header_cart_link']" position="replace"/>
|
||||
</template>
|
||||
|
||||
<!-- Remove "Add to Cart" button from product items in the shop -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue