project in files
additional instructions:
How to run the Online Shopping Store Application
1. Download the zip file
2. Extract the file and copy OnlineStore folder
3. Paste inside root directory(xampp/htdocs)
4. Open phpMyAdmin
5. Create a database with name storedb
6. Import storedb.sql file (given inside the zip package in SQL folder)
Configuration and Sample code for Currency Formatting:
- in php.ini, uncomment extension=intl (to uncomment, remove ';' from its start), then save
- stop then start apache
Sample code:
<?php
$fmt = new NumberFormatter('en_US', NumberFormatter::CURRENCY);
//to remove decimal points:
//$fmt->setAttribute(NumberFormatter::FRACTION_DIGITS, 0);
echo $fmt->formatCurrency(100, 'USD'); // <--Put the value and currency here
?>