/** * uisearch.js v1.0.0 * http://www.codrops.com * * Licensed under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * Copyright 2013, Codrops * http://www.codrops.com */ ; (function (window) { 'use strict'; function UISearch(el, options) { this.el = el; this.inputEl = el.find('form > input.expandable-search-input'); this.navEl = $('.user-nav'); this._initEvents(); } UISearch.prototype = { _initEvents: function () { var self = this, initSearchFn = function (ev) { ev.stopPropagation(); console.log(self.el) console.log(self.el.hasClass('expandable-search-open')) if (!self.el.hasClass('expandable-search-open')) { // open it ev.preventDefault(); self.open(); } else if (self.el.hasClass('expandable-search-open')) { // close it ev.preventDefault(); self.close(); } } this.el.bind('click', initSearchFn); this.el.bind('touchstart', initSearchFn); this.inputEl.bind('click', function (ev) { ev.stopPropagation(); }); this.inputEl.bind('touchstart', function (ev) { ev.stopPropagation(); }); }, open: function () { var self = this; this.el.addClass('expandable-search-open'); this.inputEl.addClass('expandable-input-open'); this.navEl.addClass('expandable-search-open') // focus the input this.inputEl.focus(); // close the search input if body is clicked var bodyFn = function (ev) { self.close(); $(window).unbind('click', bodyFn); $(window).unbind('touchstart', bodyFn); }; $(window).bind('click', bodyFn); $(window).bind('touchstart', bodyFn); }, close: function () { this.inputEl.blur(); this.el.removeClass('expandable-search-open'); this.inputEl.removeClass('expandable-input-open'); this.navEl.removeClass("expandable-search-open"); } } // add to global namespace window.UISearch = UISearch; })(window); new UISearch($('#expandable-search')); var triggerBtn = $('#contact-us-modal-trigger'); triggerBtn.click(function (e) { e.preventDefault(); var template = [ '', '', ].join(''); getUserInfo().then(function (data) { var userId = data["user_id"]; var retailerId = data["retailer_id"]; $.get("https://qbrpcuwwz8.execute-api.us-west-2.amazonaws.com/prod/pin?retailer_id=" + retailerId + "&user_id=" + userId).then(function (data) { var pin = data['pin'], telHref = data['metadata']['action'], phoneNum = data['metadata']['phone_number'], pinEl = [ '', '

Call ' + phoneNum + '

', 'Your temporary pin is ' + pin + '', '
' ].join(''); template = [ '', '', ].join(''); openContactUsLightbox(template); },function (error) { openContactUsLightbox(template); console.log(error); return Promise.reject(error); }); }, function(error){ openContactUsLightbox(template); }); }); // Gets User_id and retailer_id from the cookie information and returns payload function getUserInfo() { try { var store = $.cookie('store'); if (!store){ return Promise.reject("Cookie is undefined"); } domainPrefix = store.split('|')[1], payload = null; return Promise.resolve($.ajax({ url: "https://" + domainPrefix + ".vendhq.com/api/support/hc/config", xhrFields: { withCredentials: true } })); } catch (err) { return Promise.reject("Cookie is undefined"); } } // Enable lightbox and select color scheme (white) function openContactUsLightbox(template) { var lightbox = Corp.behaviours.ui.lightbox(); lightbox.open({ classes: 'modal--white modal--responsive pin-service-modal', content: template, width: '940px' }); } function openChatAndCloseModal() { $('#modal #close').click(); zE.activate(); }

Exporting your Sales Data from Vend


Latest update: - Team Vend

To export your store sales data, head to the sales ledger tab in Vend. From here, you can filter what data you want to be exported using the search filters at the top of the page. To apply these filters, click the update button on the right.

Once you are happy with the sales shown in the list below, click on the 'Export' button.

A CSV file containing your sales ledger data will be exported for you.

Note: The sales ledger export is limited to 1000 rows. If the information you're after is not included in the first 1000 rows of the exported CSV, try to apply more filters to narrow your results.

Powered by Zendesk