Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • PRK 47 posts 119 karma points
    Oct 15, 2014 @ 12:21
    PRK
    0

    VAT Picker in Umbraco 7 not working

    Hi,

    I've installed the V2.3.2 on Umbraco 7.1.8. I've added multiple Vats ( 10% and 20%). The Vat Picker doesn`t show one. I've played around with your vat-group-picker.controller.js and found out, it doesn't enter Step 2 because $http.get('backoffice/teacommerce/vatgroups/getall?pageId=' + $routeParams.id)returns an undefinded object ( $routeParams.id will be correct to Node Id).

    angular.module("umbraco").controller("TeaCommerce.VatGroupController", function ($scope, $http, $routeParams) {
    
        alert("Step 1");
    
      $http.get('backoffice/teacommerce/vatgroups/getall?pageId=' + $routeParams.id).success(function (data) {
    
          alert("Step 2");
    ....
    

    Any Ideas?

    Thanks, Patrick

  • Anders Burla 2560 posts 8256 karma points
    Oct 21, 2014 @ 10:29
    Anders Burla
    101

    Hi

    Do you have a store picker at a higher level in your content. You need that so the vat group picker knows which store it should select from. Just tested in Umbraco 7.1.7 and it works fine.

  • PRK 47 posts 119 karma points
    Oct 22, 2014 @ 10:08
    PRK
    0

    Hi,

    I've forgotten to mark it as solved last week. It was the Picker. I have multiple Catalogs for Products and every Catalog needs the Picker.

    Thanks anyway!

Please Sign in or register to post replies

Write your reply to:

Draft