[Vuejs]-Add post affiliate pro Track (vue frontend)

0👍

linkArabys(){
            window.PostAffTracker.setAccountId(this.settings.link_araby_accountid.toString());
            window.sale = window.PostAffTracker.createSale();
            window.sale.setTotalCost((this.settings.price_with_vat == 1)  ? (this.order_data.sub_total - this.order_data.discount + this.payment_form.tax) : this.order_data.sub_total);
            window.sale.setProductID('0');
            window.sale.setOrderID(this.order_data.code);
            window.sale.setCoupon('0')
            window.PostAffTracker.register();
          }

this working for me

Leave a comment