this.items = this.fluidbook.cache.get('cart', []);
$(document).on(this.fluidbook.input.clickEvent, '.exportCartPDF', function () {
$this.chooseFileName(function () {
- $this.exportPDF();
+ $this.exportPlanogramme();
});
return false;
});
},
+ exportPlanogramme: function () {
+ let url = this.fluidbook.service.getBaseURL(true) + 'puma/planogramme/' + encodeURIComponent(this.getItemsReferences().join(','));
+ console.log(url);
+ },
+
exportPDF: function () {
var element = $('#pumacarttable').get(0);
FluidbookService.prototype = {
getBaseURL: function (short) {
var res = 'https://toolbox.fluidbook.com/';
- if (short === 'true') {
+ if (short === 'true' || short === true) {
res += 's';
} else {
res += 'services';