Odooers论坛

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

Show variant specific description on product site ecommerce

形象
丢弃
1 答案
0
形象
odoo
最佳答案

sooo by the time it got posted I've sorted it out (Browsed through odoo code) 

here is the working js implementation:

/** @odoo-module */

import publicWidget from "@web/legacy/js/public/public_widget";


publicWidget.registry.WebsiteSale.include({


    /**

         * @override

         */

    _onChangeCombination(ev, $parent, combination) {

        const res = this._super.apply(this, arguments);


        const variantDesc = combination?.website_description_variant || '';

        this.$('#variant_description').html(variantDesc);



        return res;

    },

});


might share a module on github soon 

1 备注
形象
丢弃
形象
odoo
-

Hi, thank you, did you already share the module in github?