问:NetSuite电子商务 - 参考结帐的源自定义实体字段

问题描述 投票:0回答:1

我在NetSuite中放置了一个自定义实体字段,现在我必须将此字段的值提供给我的参考结帐,因为我将使用该值作为在商店中显示付款方式的条件。

任何想法如何做到这一点?我搜索过SuiteAnswers并没有得到任何重大帮助。

谢谢!

我已经研究过使用view.model.get('customfield ID here'),但它没有用。我也已经在models.js上定义了这个字段。只是不确定我是否正确放置它。

呈现订单向导付款方式选择器的功能

,   render: function()
            {
                if (this.wizard.hidePayment())
                {
                    this.$el.empty();
                    this.trigger('change_label_continue');
                    return;
                }

                if (!this.selectedModule)
                {
                    var selected_payment = this.model.get('paymentmethods').findWhere({primary: true})
                    ,   selected_type;

                    var creditlevelhold = this.wizard.model.get('creditlevelhold'); < -- this is the custom field
                    console.log(creditlevelhold);

                    if(selected_payment){
                        selected_type = selected_payment.get('type');
                    }
                    else if(this.wizard.options.profile.get('paymentterms') && creditlevelhold === ''){
                        selected_type = 'invoice';
                    }
                    this.setModuleByType(selected_type)
reference e-commerce netsuite checkout suitecommerce
1个回答
1
投票

应该像:

this.wizard.model.get('options')['custbodyxxx']
© www.soinside.com 2019 - 2024. All rights reserved.