/** * 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 = false; var CURRENT_DOMAIN = 'rentmy-rsk.leaperdev.rocks'; // we getting subdomain by split this var DOMAIN = 'http://rentmy-rsk.leaperdev.rocks'; var PAGES_ROUTE_PATHS = { products_list: "/products-list", products_list_by_category: "/category/{uuid}/{url}", product_details: "products/{url}", // ------- Approved Pattern --- for SEO package_details: "package/{url}", // ------- Approved Pattern --- for SEO 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", customer_order_dashboard: "customer-order-dashboard", customer_billing: "customer-billing", order_details: "customer-order-details", order_complete: "order-complete", wish_list: "wish-list", } // Client specified routes var OTHER_PAGES_ROUTES = { 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', }, } 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", }, cityStash: { store_id: "3805", locationId: "4076", store_name: "jtvlajb7d0o48r", access_token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJkYXRlIjoiMjAyNS0wNC0wNCAxMTozNTozMyIsInN0b3JlX2lkIjozODA1LCJzdG9yZV91aWQiOiJlYjVhMWJiZDExNDgxMWYwYjQyZTAyMzA0YWE1ZDBhMyIsInN0b3JlX25hbWUiOiJqdHZsYWpiN2QwbzQ4ciIsInNvdXJjZSI6Im9ubGluZSIsImlzX29ubGluZSI6MSwibG9jYXRpb24iOjQwNzZ9.BgfQoJvcBkVD2MqqKsOr28FvMTEfnMip_TUjssqxiTY", }, teststore22: { store_id: "1487", locationId: "2982", store_name: "teststore22", access_token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJkYXRlIjoiMjAyMS0wNi0xMFQwNzoxNDo1NyswMDowMCIsInN0b3JlX2lkIjoxNDg3LCJzdG9yZV91aWQiOm51bGwsInN0b3JlX25hbWUiOm51bGwsInNvdXJjZSI6Im9ubGluZSIsImlzX29ubGluZSI6MSwibG9jYXRpb24iOjI5ODJ9.JLUB8aymqlO1SHbIAuUMlZbk7Mk_aAiT47lL9hLOUaI", }, } var RENTMY_GLOBAL = { IS_SINGLE_SITE, CURRENT_DOMAIN, SUBDOMAIN, // ...storeObject.vgc, // ...storeObject.wix, ...storeObject.teststore09, // ...storeObject.teststore17, // ...storeObject.exquisite, ...storeObject.teststore22, env: { // optional PORT: 8080, 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, }, customer_order_dashboard: { title: 'Order Dashboard', file: "customer-dashboard.html", path: PAGES_ROUTE_PATHS.customer_order_dashboard, }, customer_billing: { title: 'Customer Billing', file: "customer-billing-details.html", path: PAGES_ROUTE_PATHS.customer_billing, }, 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: "/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 }, }