Subversion Repositories SmartDukaan

Rev

Rev 5930 | Rev 6025 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5930 Rev 5945
Line 112... Line 112...
112
    	}
112
    	}
113
    	catch (JSONException e) {
113
    	catch (JSONException e) {
114
            log.warn("Unable to parse product properties JSON", e);
114
            log.warn("Unable to parse product properties JSON", e);
115
            try {
115
            try {
116
                CatalogClient catalogClientService = new CatalogClient();
116
                CatalogClient catalogClientService = new CatalogClient();
117
                in.shop2020.model.v1.catalog.InventoryService.Client client = catalogClientService.getClient();
117
                in.shop2020.model.v1.catalog.CatalogService.Client client = catalogClientService.getClient();
118
                
118
                
119
                Item item = client.getItemsByCatalogId(productId).get(0);
119
                Item item = client.getItemsByCatalogId(productId).get(0);
120
                redirectUrl = "/" + item.getBrand().toLowerCase().replace(" ", "-");
120
                redirectUrl = "/" + item.getBrand().toLowerCase().replace(" ", "-");
121
            } catch (Exception e1) {
121
            } catch (Exception e1) {
122
                log.warn("Unable to get items by catalog id", e1);
122
                log.warn("Unable to get items by catalog id", e1);