Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2129 Weergaven

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
mrt. 15
3720
0
apr. 25
1341
2
jan. 24
1338
0
jan. 24
1516
2
dec. 22
32040