【问题标题】:Q: NetSuite E-Commerce - Source Custom Entity Fields to Reference Checkout问:NetSuite 电子商务 - 源自定义实体字段以参考结帐
【发布时间】:2019-03-26 12:45:52
【问题描述】:

我在 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】:

    应该像这样可用:

    this.wizard.model.get('options')['custbodyxxx']
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-08
      • 2023-03-18
      • 2023-04-10
      相关资源
      最近更新 更多