Setup

Configuration files provide the parameters and initial settings for our application. In our directory structure, you will find api-config.ts file under services folder which contain all configurations for our application.

.
|-- services
 |--config
 |-- api-config.ts

Config file contains list of Features which user can enable or disable according to their need.

config-file

  • ENABLE\APPLY\COUPON\_CODE : boolean

    If your E-Commerce Application allows customers to use coupons during the checkout process to receive a discount on their purchases then keep the value of this feature as true otherwise false.

  • ENABLE\STORE\CREDIT: boolean

Store credit is a form of virtual currency that can be used by customers to make purchases on an e-commerce application. Instead of providing a cash refund or exchanging a product for another one, store credit allows the customer to keep their money within the e-commerce application and use it to make future purchases.

When a customer returns an item, instead of receiving a refund, they may be issued store credit in the form of a gift card, voucher, or credit balance on their account. The customer can then use this credit to purchase other items on the e-commerce application.

If your application gives store credit to your customers then enable this feature by keeping it true.

  • ENABLE\REDIRECT\FEATURE: boolean

This feature becomes very handy if your application has been migrated to a new domain or you want to redirect your users from a non-secure HTTP URL to a secure HTTPS URL.

Here, redirect is a HTTP 301 redirect status code that indicates that a requested resource has permanently moved to a new location. When a web server sends a 301 redirect response to a client, the search engine indexes to reflect the new URL.

By using these feature, search engines are directed to the correct URL and can avoid issues such as broken links, duplicate content, and lost traffic.
Turn on these feature by keeping the value true.

  • ENABLE\PRODUCT\ENQUIRY\_FEATURE: boolean

By enabling these feature your customers can enquire about the products which they didn't find on your website.

Enable these feature by keeping the value true

  • USE\SINGLE\ENQUIRY: boolean

  • USE\MULTI\ENQUIRY: boolean

  • DISPLAY\PRODUCT\PRICE\ON\PRODUCT\LISTING\CARD: boolean

  • DISPLAY\ADD\CART\BUTTON\ON\PRODUCT\LISTING\_CARD: boolean

  • ENABLE\_PAGINATION: boolean

  • ENABLE\LOAD\MORE: boolean

  • PRODUCT\LISTING\VIEW: string [list-view or grid-view]

Discard
Save