Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2556 Zobrazení

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
bře 15
4169
0
dub 25
1889
2
led 24
1895
0
led 24
2091
2
pro 22
32979