You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

35 lines
2.2 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="product_3d_view" name="Product View"
inherit_id="website_sale.shop_product_carousel">
<!-- Created a canvas for the 3D model on the website-->
<xpath expr="//div[hasclass('o_carousel_product_outer')]" position="after">
<div id="product_main" class="view3d-wrapper view3d-square"/>
</xpath>
</template>
<template id="product_extra_images" name="Product Extra Images View"
inherit_id="website_sale.carousel_product_indicators">
<!-- Replaced the carousel_product_indicator and added a new one for the 3D model-->
<xpath expr="//div[contains(@t-attf-class, 'o_carousel_product_indicators')]"
position="replace">
<div t-ignore="True"
t-attf-class="o_carousel_product_indicators {{indicators_div_class}}">
<ol t-attf-class="carousel-indicators {{indicators_list_class}} position-static pt-2 pt-lg-0 mx-auto my-0 text-start">
<li t-foreach="product_images" t-as="product_image" class="product_images"
t-attf-class="align-top position-relative active"
data-bs-target="#o-carousel-product"
t-att-data-bs-slide-to="str(product_image_index)" id="product_image">
<div t-field="product_image.image_128" class="product_images"
t-options='{"widget": "image", "qweb_img_responsive": False, "class": "o_image_64_cover", "alt-field": "name"}'/>
<i t-if="product_image._name == 'product.image' and product_image.embed_code"
class="fa fa-2x fa-play-circle o_product_video_thumb bg-black-50 text-center"/>
</li>
<li class="product_images" data-type="3d" id="3d_image">
<img src="/website_model_viewer_widget/static/description/images/view_360.png" class="product_images" data-type="3d" style="height: 100%; width: 100%; object-fit: contain;"/>
</li>
</ol>
</div>
</xpath>
</template>
</odoo>