/** * SUBDOMAIN vairalbe for testing purpose for developer mode * It will work wehen, IS_SINGLE_SITE == false * Example: * var SUBDOMAIN = 'teststore02' */ var SUBDOMAIN = ''; var IS_SINGLE_SITE = true; var DOMAIN = 'http://vgc-dev.rentmy.shop'; var PAGES_ROUTE_PATHS = { products_list: "/products-list", products_list_by_category: "/category/{uuid}/{url}", /** ======= Product and Package Details route examples */ // product_details: "product-details.html={uuid}", // package_details: "package-details.html={uuid}", // product_details: "product-details/?uid={uuid}", // package_details: "package-details/?uid={uuid}", // product_details: "product-details/{url}?uid={uuid}", // package_details: "package-details/{url}?uid={uuid}", // product_details: "product-details/{uuid}", // package_details: "package-details/{uuid}", // product_details: "product-details/{url}/{uuid}", // package_details: "package-details/{url}/{uuid}", // product_details: "product-details/{uuid}/{url}", // package_details: "package-details/{uuid}/{url}", product_details: "products/{url}", // ------- Approved Pattern --- for SEO package_details: "package/{url}", // ------- Approved Pattern --- for SEO /** ===================== END ========================= */ cart: "cart", checkout: "checkout", login: "customer-login", registration: "customer-registration", partner_login: "/client/login", partner_registration: "/client/sign-up", reset_password: "customer-reset-password", customer_profile: "customer-profile", customer_change_password: "customer-change-password", customer_change_avatar: "customer-change-avatar", customer_order_history: "customer-order-history", order_details: "customer-order-details", order_complete: "order-complete", wish_list: "wish-list", } // Client specified routes var OTHER_PAGES_ROUTES = { /** * This is some example (DON'T DELETE THIS EXAMPLES) * ================================================== * after create a custom route, to execute SEO meta * just set page key of PAGES_ROUTE_PATH according page contents in 'as' property * Example: home: { title: 'Home', file: "/products-list.html", path: '/', query: [], as: 'products_list' }, * etc... */ home: { title: 'Home', file: "/pages/home.html", path: '/', /** * in meta key, you can object with (title, description, keywords, imageUrl) * or you can pass 'string' key accroding to meta.js file, store wise hard coded meta stucture * * Exmaple: 1 * meta: { title: '', description: '', keywords: '', imageUrl: '', } ---- or ---- meta: 'pass key from meta.js' */ }, sitemap: { title: 'sitemap', file: "/pages/sitemap.html", path: '/sitemap', }, gallery: { title: 'gallery', file: "/pages/gallery.html", path: '/gallery', }, about: { title: 'about', file: "/pages/about.html", path: '/about', }, contact: { title: 'contact', file: "/pages/contact.html", path: '/contact', }, howitworks: { title: 'howitworks', file: "/pages/how-it-works.html", path: '/how-it-works', }, privacypolicy: { title: 'privacypolicy', file: "/pages/privacy-policy.html", path: '/privacy-policy', }, pressreleases: { title: 'pressreleases', file: "/pages/press-releases.html", path: '/press-releases', }, termsconditions: { title: 'termsconditions', file: "/pages/terms-and-conditions.html", path: '/terms-and-conditions', }, } var storeObject = { vgc: { store_id: "982", locationId: "3431", store_name: "vivian-grace-creations", access_token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJkYXRlIjoiMjAyNC0wNy0xMCAwNToxOTozNiIsInN0b3JlX2lkIjozNDMxLCJzdG9yZV91aWQiOiI5NTA4ZGYxODNlZTAxMWVmOGYwZDAyM2QwYzYzNDI2OSIsInN0b3JlX25hbWUiOiJsYWloYnh6OGlxdTgwNCIsInNvdXJjZSI6Im9ubGluZSIsImlzX29ubGluZSI6MSwibG9jYXRpb24iOjM2NzR9.bb7Ojw_P__4ZoRKx0s7faHl7efQMiLPfL4JTQ27bc9s", }, wix: { store_id: "3431", locationId: "3674", store_name: "outhouse", access_token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MiwidXNlcl90eXBlX2lkIjoxLCJuYW1lIjoiTW9oc2luIEthYmlyIiwiZW1haWwiOiJtbGVhcGluZ0BsZWFwaW5nbG9naWMuY29tIiwiZGF0ZSI6IjIwMjQtMDctMzAgMTE6NTU6MDAiLCJjb21wYW55X2lkIjozLCJzdG9yZV9pZCI6MzQzMSwic3Vic2NyaXB0aW9uIjp7ImFjY291bnRfdHlwZSI6IkZSRUUiLCJpc01vbnRobHkiOnRydWUsImlzQWN0aXZlIjpmYWxzZSwiY2FyZCI6ZmFsc2UsIm5ld0ludmVudG9yeSI6ZmFsc2V9LCJzb3VyY2UiOiJhZG1pbiIsImxvY2F0aW9uIjozNjc0fQ.y5vwsr6wzDgL9-XC5X5DIUphQRi0XqBn4LM3Gww0fTw", }, teststore09: { store_id: "590", locationId: "647", store_name: "teststore09", access_token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MiwidXNlcl90eXBlX2lkIjoxLCJuYW1lIjoiTW9oc2luIEthYmlyIiwiZW1haWwiOiJtbGVhcGluZ0BsZWFwaW5nbG9naWMuY29tIiwiZGF0ZSI6IjIwMjQtMDgtMjkgMDY6MTE6MTQiLCJjb21wYW55X2lkIjozLCJzdG9yZV9pZCI6NTkwLCJzdWJzY3JpcHRpb24iOnsiYWNjb3VudF90eXBlIjoiRVNUQUJMSVNIRUQiLCJpc01vbnRobHkiOnRydWUsImlzQWN0aXZlIjp0cnVlLCJjYXJkIjpmYWxzZSwibmV3SW52ZW50b3J5Ijp0cnVlfSwic291cmNlIjoiYWRtaW4iLCJsb2NhdGlvbiI6NjQ3fQ.SxjXX1OChku8pcSJjz-7a5N1GX6lJ6FHbQQ_QymaLcg", }, teststore17: { store_id: "782", locationId: "841", store_name: "teststore01", access_token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MiwidXNlcl90eXBlX2lkIjoxLCJuYW1lIjoiTW9oc2luIEthYmlyIiwiZW1haWwiOiJtbGVhcGluZ0BsZWFwaW5nbG9naWMuY29tIiwiZGF0ZSI6IjIwMjQtMDgtMjkgMDY6Mjk6MzEiLCJjb21wYW55X2lkIjozLCJzdG9yZV9pZCI6NzgyLCJzdWJzY3JpcHRpb24iOnsiYWNjb3VudF90eXBlIjoiUFJPIiwiaXNNb250aGx5Ijp0cnVlLCJpc0FjdGl2ZSI6ZmFsc2UsImNhcmQiOmZhbHNlLCJuZXdJbnZlbnRvcnkiOnRydWV9LCJzb3VyY2UiOiJhZG1pbiIsImxvY2F0aW9uIjo4NDF9.3uu2WWWgSZlMHHhYIWtyuTgBkAHZfJZF17s9VNjb4Oo", }, exquisite: { store_id: "2162", locationId: "2307", store_name: "exquisite-costumes", access_token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoyNjkzLCJkYXRlIjoiMjAyNC0xMi0xOSAxMzozMDoxOCIsInN0b3JlX2lkIjoyMTYyLCJsb2NhdGlvbiI6MjMwNywiYXBwX2lkIjo1MDgsImV4cGlyZSI6IjIwMjQtMTItMjAgMTM6MzA6MDAiLCJpc19vbmxpbmUiOjAsInNvdXJjZSI6ImFwaSIsImRpc2FibGVfZGVmYXVsdF90aW1lIjpmYWxzZX0.GbYJjOcLezLw_z7GKGuf6fX-nSmy_WAqtPhpSAHxp3s", }, packer_up: { store_id: "3607", locationId: "3865", store_name: "Packer up", access_token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo0NjQzLCJkYXRlIjoiMjAyNS0wMi0wNSAxMzo1NToyMiIsInN0b3JlX2lkIjozNjA3LCJsb2NhdGlvbiI6Mzg2NSwiYXBwX2lkIjo1MjYsImV4cGlyZSI6IjIwMjUtMDItMDYgMTM6NTU6MDAiLCJpc19vbmxpbmUiOjAsInNvdXJjZSI6ImFwaSIsImRpc2FibGVfZGVmYXVsdF90aW1lIjpmYWxzZX0.UGR_FGgaTZMlXbxE4QbicidBapU-joGeErKNU_FpRzk", }, } var RENTMY_GLOBAL = { IS_SINGLE_SITE, SUBDOMAIN, // ...storeObject.vgc, // ...storeObject.wix, ...storeObject.exquisite, // ...storeObject.teststore17, // ...storeObject.exquisite, env: { // optional PORT: 8083, CSS_URL: "/css/index.css", SCRIPT_URL: "/js/script_prod.js", DATEPICKER_SCRIPT_URL: "/js/em-datetimepicker.min.js", // CSS_URL: "https://s3.us-east-2.amazonaws.com/cdn.rentmy.co/wp/index.css", // SCRIPT_URL: "https://s3.us-east-2.amazonaws.com/cdn.rentmy.co/wp/script_prod.js", // DATEPICKER_SCRIPT_URL: "https://s3.us-east-2.amazonaws.com/cdn.rentmy.co/wp/em-datetimepicker.min.js", /* === new === */ // CSS_URL: "http://localhost:4444/assets/index.css", // developer local url // SCRIPT_URL: "http://localhost:4444/assets/script_prod.js", // developer local url // DATEPICKER_SCRIPT_URL: "http://localhost:4545/assets/em-datetimepicker.min.js", // developer local url // API_BASE_URL : "https://api.rentmystag1ng.com/api/", //------------- optional // ASSET_URL : "https://s3.us-east-2.amazonaws.com/pimg.rentmy.co/", //------------- optional PAYMENT_DOMAIN : "", //------------- optional CACHE_TIME_IN_SECONDS: 600, }, emDateTimePicker: { /* ------------------------------------------- */ /* Details Page */ /* ------------------------------------------- */ // End Date config detailsPage_endDatePicker_displayIn: 'modal', //required for wix detailsPage_useRangePicker_for_endDate: true, //required for wix detailsPage_endDate_allowRightSideTimePicker: true, //required for wix /* ------------------------------------------- */ /* In Page Cart Widget */ /* ------------------------------------------- */ afterAddtoCart_open_widget_datePicker: false, }, home_url: "/", product_pacakge_by_slug: true, // required for node server contents: { pages: true, navigation: false, use_dynamic_labels: true, }, page: { ...PAGES_ROUTE_PATHS }, routes: { products_list: { title: 'Products List', file: "products-list.html", path: PAGES_ROUTE_PATHS.products_list, }, ...(!PAGES_ROUTE_PATHS?.products_list_by_category ? {} : { products_list_by_category: { title: 'Products List By Category', file: "products-list.html", path: PAGES_ROUTE_PATHS?.products_list_by_category, } }), product_details: { title: 'Product Details', file: "product-details.html", path: PAGES_ROUTE_PATHS.product_details, }, package_details: { title: 'Package Details', file: "package-details.html", path: PAGES_ROUTE_PATHS.package_details, query: ['uid'], }, cart: { title: 'Cart', file: "cart.html", path: PAGES_ROUTE_PATHS.cart, }, checkout: { title: 'Checkout', file: "checkout.html", path: PAGES_ROUTE_PATHS.checkout, }, login: { title: 'User Login', file: "customer-login.html", path: PAGES_ROUTE_PATHS.login, }, registration: { title: 'User Registration', file: "customer-registration.html", path: PAGES_ROUTE_PATHS.registration, }, partner_login: { title: 'Partner Login', file: "partner-login.html", path: PAGES_ROUTE_PATHS.partner_login, }, partner_registration: { title: 'Partner Sign Up', file: "partner-registration.html", path: PAGES_ROUTE_PATHS.partner_registration, }, reset_password: { title: 'Reset Password', file: "customer-reset-password.html", path:PAGES_ROUTE_PATHS.reset_password, }, customer_profile: { title: 'Profile', file: "customer-profile.html", path: PAGES_ROUTE_PATHS.customer_profile, }, customer_change_password: { title: 'Update Password', file: "customer-change-password.html", path: PAGES_ROUTE_PATHS.customer_change_password, }, customer_change_avatar: { title: 'Change Avatar', file: "customer-change-avatar.html", path: PAGES_ROUTE_PATHS.customer_change_avatar, }, customer_order_history: { title: 'Order History', file: "customer-order-history.html", path: PAGES_ROUTE_PATHS.customer_order_history, }, order_details: { title: 'Order Details', file: "customer-order-details.html", path: PAGES_ROUTE_PATHS.order_details, }, order_complete: { title: 'Order Complete', file: "order-complete.html", path: PAGES_ROUTE_PATHS.order_complete, }, wish_list: { title: 'Wish list', file: "wish-list.html", path: PAGES_ROUTE_PATHS.wish_list, }, blog: { title: 'blog', file: "/pages/blog.html", path: '/blog', meta: { title: 'VGC Blog - Vivian Grace Creations', description: `Blog Page Contents`, }, limit: 10 }, singleBlog: { title: 'sitemap', // file: '/pages/blog-details.html', path: '/blog/{page_slug}', rentmy_page: true, }, ...OTHER_PAGES_ROUTES }, }