跳至內容
選單
此問題已被標幟
2141 瀏覽次數

Been trying to extend this, as we like the idea but would like to hide the add to cart button.

The template look like this in the source code.

<templates xml:space="preserve">
    <!-- Recently Viewed Products Carousel -->
    <t t-name="website_sale.productsRecentlyViewed">
        <div t-att-id="uniqueId" class="carousel slide o_not_editable" data-interval="false">
            <div class="carousel-inner"> ...
I tried this code:
    <template id="recent_viewed_extended">
        <t t-extend="website_sale.productsRecentlyViewed">
            <xpath expr="//div[contains(@class, 'o_carousel_product_card_footer') and contains(@class, 'card-footer')]" position="replace"/>
        </t>
    </template>
But had no luck on it working

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
3月 15
3726
0
4月 25
1348
2
1月 24
1351
0
1月 24
1517
2
12月 22
32059