perpustakaan.uns.ac.id
digilib.uns.ac.id
PEMBUATAN E-COMMERCE PADA STUDY KASUS PENJUALAN OBAT HERBAL DAN THIBBUN NABAWI AZ-ZAHRA
TUGAS AKHIR Diajukan Untuk Memenuhi Salah Satu Syarat Mencapai Gelar Ahli Madya Program Diploma III Teknik Informatika
Disusun Oleh: Oleh: INDAH KURNIAWATI M3110083
PROGRAM DIPLOMA III TEKNIK INFORMATIKA FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM UNIVERSITAS SEBELAS MARET SURAKARTA commit to user 2013
i
perpustakaan.uns.ac.id
digilib.uns.ac.id
HALAMAN PERSETUJUAN PEMBUATAN E-COMMERCE PADA STUDY KASUS PENJUALAN OBAT HERBAL DAN THIBBUN NABAWI AZ-ZAHRA
Disusun Oleh
INDAH KURNIAWATI NIM. M3110083
Tugas Akhir ini disetujui untuk dipertahankan di hadapan dewan penguji pada tanggal 18 Juli 2013
Pembimbing Utama
Rosita Yanuarti, S.Kom, M.Cs NIDN.0629018601 commit to user
ii
perpustakaan.uns.ac.id
digilib.uns.ac.id
HALAMAN PENGESAHAN PEMBUATAN E-COMMERCE PADA STUDY KASUS PENJUALAN OBAT HERBAL DAN THIBBUN NABAWI AZ-ZAHRA Disusun Oleh INDAH KURNIAWATI NIM. M3110083 Dibimbing Oleh Pembimbing Utama
Rosita Yanuarti, S.Kom, M.Cs NIDN. 0629018601 Tugas Akhir ini telah diterima dan disahkan oleh dewan penguji Tugas Akhir Program Diploma III Teknik Informatika Pada hari Kamis, 18 Juli 2013 1. Penguji 1
Rosita Yanuarti,S.Kom,M.Cs NIDN. 0629018601
2. Penguji 2
)
(
)
(
)
Rudi Hartono,S.Si NIDN. 9906008058
3. Penguji 3
(
Tutut Maitanti,S.Si,M.Kom NIDN. 0625058501
Disahkan Oleh: Dekan Fakultas MIPA UNS
Ketua Program Studi DIII Teknik Informatika UNS
Prof. Ir. Ari Handono Ramelan, M.Sc(Hons)., commit toPh.D. user
Drs.Y.S.Palgunadi,M.Sc
NIP. 19610223 198601 1 001
NIP. 19560407 198303 1 004 iii
perpustakaan.uns.ac.id
digilib.uns.ac.id
ABSTRACT
Indah Kurniawati, 2013. DEVELOPING E-COMMERCE CASE STUDY OF SALES ON HERBAL MEDICINE AND THIBBUN NABAWI AT AZZAHRA. Diploma III of Information Engineering, Faculty of Mathematics and Natural Sciences, Sebelas Maret University Surakarta. E-Commerce is one way to shop or to trade online. E-Commerce will change all marketing activities and also while cutting operational costs for the customer activities. In this final project it will be created e-commerce as to be a means of promotion and marketing of products.. E-Commerce is developing by PHP and My SQL is used to manage database. E-commerce has three main users. The first user is the general user, that any website visitor can see the product catalog, and the information on the website, but can’t order the products. The second user is a member who has to register and can order the products. The third is the admin, the person who has the right to manage product data, order data, as well as the entire content of the website. From the introduction above, it
has been successfully build an e-
commerce. This system expected to be a means of promotion and marketing of products. Keywords: e-commerce
commit to user
iv
perpustakaan.uns.ac.id
digilib.uns.ac.id
ABSTRAK
Indah Kurniawati, 2013. PEMBUATAN E-COMMERCE PADA STUDY KASUS PENJUALAN OBAT HERBAL DAN THIBBUN NABAWI AZZAHRA. Diploma III Teknik Informatika, Fakultas Matematika dan Ilmu Pengetahuan Alam, Universitas Sebelas Maret Surakarta. E-Commerce adalah salah satu cara berbelanja atau berdagang secara online. E-Commerce akan merubah semua kegiatan marketing dan juga seklaigus memangkas biaya-biaya operasional untuk kegiatan pelanggan. Dalam tugas akhir ini akan dibuat e-commerce sebagai sarana promosi dan pemasaran produk. E-Commerce ini menggunakan pemrograman PHP dan My SQL untuk mengelola database. E-commerce ini memiliki tiga pengguna utama. Pengguna pertama yaitu user umum, yaitu setiap pengunjung website yang bisa melihat katalog produk, dan informasi-informasi di dalam website, tetapi tidak bisa melakukan pemesanan produk. Pengguna kedua adalah member yang telah melakukan registrasi dan bisa melakukan pemesanan produk. Pengguna ketiga adalah admin yaitu orang yang memiliki hak untuk mengelola data produk, data pesanan serta seluruh konten website. Dari pengantar di atas maka telah berhasil dibangun e-commerce. Sistem ini diharapkan dapat menjadi sarana promosi dan pemasaran produk. Kata Kunci : E-commerce
commit to user
v
perpustakaan.uns.ac.id
digilib.uns.ac.id
MOTTO
1.
Setiap orang memiliki jatah gagal, habiskan jatah gagalmu selagi kamu masih muda (dahlan iskan).
2.
Banyak kegagalan dalam hidup ini dikarenakan orang-orang tidak menyadari betapa dekatnya mereka dengan keberhasilan saat mereka menyerah (Thomas Alva Edison).
3.
Jika kita tidak dapat melakukan hal yang luar biasa, kita dapat melakukan hal kecil dengan luar biasa (anonim).
4.
Hanya orang takut yang bisa berani, karena keberanian adalah melakukan sesutu yang sesuatu yang ditakutinya (Mario teguh).
commit to user
vi
perpustakaan.uns.ac.id
digilib.uns.ac.id
HALAMAN PERSEMBAHAN
Tugas Akhir ini ku persembahkan untuk: 1. Bapak, Ibu, dan kakak-kakakku tercinta yang telah mendukung dan mendoakanku. 2. Teman-teman TI B 2010 yang telah banyak membantu, memberikan semangat dan motivasi. 3. Buat semua pihak yang telah membantuku, terima kasih semuanya.
commit to user
vii
perpustakaan.uns.ac.id
digilib.uns.ac.id
KATA PENGANTAR
Syukur Alhamdulillah penulis haturkan atas kehadirat Allah SWT yang telah melimpahkan karunia-Nya sehingga penulis dapat menyelesaikan laporan Tugas Akhir dengan judul “Pembuatan E-Commerce Pada Study Kasus Penjualan Obat Herbal Dan Thibbun Nabawi Az-Zahra”. Laporan ini dibuat untuk memenuhi syarat dalam memperoleh gelar Amd pada Program Studi Diploma III Teknik Informatika Fakultas Matematika dan Ilmu Pengetahuan Alam Universitas Sebelas Maret. Laporan ini tidak akan terselesaikan tanpa bantuan dari berbagai pihak. Untuk itu dalam secuil kertas yang mungkin tiada berarti ini penulis sampaikan rasa hormat dan menghaturkan rasa terima kasih kepada: 1. Bapak Ir. Ari Handono Ramelan, M.Sc., PhD. selaku Dekan Fakultas Matematika dan Ilmu Pengetahuan Alam Universitas Sebelas Maret Surakarta. 2. Bapak Drs. YS. Palgunadi, M.Sc., selaku Ketua Program Diploma III Teknik Informatika Fakultas Matematika dan Ilmu Pengetahuan Alam Universitas Sebelas Maret Surakarta. 3. Ibu Rosita Yanuarti, S.Kom, M.Cs, selaku pembimbing, yang telah memberikan bimbingan, nasehat, kritik dan saran selama penyusunan tugas akhir ini. 4. Bapak, Ibu, Mas Rohmat, Mbak Lia dan seluruh keluarga atas doa, bantuan, kasih sayang, perhatian dan segalanya. 5. Mas Robi, Fita, Lita, Faridha, Maretha, Merlinda, Lina, Fitri, Linda, Galuh, Fika, Laras, Ika, Ginanjar, Ariep, Ocim, Ojan terimakasih atas semua bantuan dan semangatnya.
commit to user 6. Rekan-rekan TIB 2010 terima kasih atas segala support dan bantuan kalian .
viii
perpustakaan.uns.ac.id
digilib.uns.ac.id
7. Dan seluruh pihak-pihak yang tidak dapat penulis cantumkan satu persatu, terimaksih atas segala bimbingan, bantuan, kritik, dan saran dalam penyusunan tugas akhir ini. Untuk itu segala bantuan yang telah diberikan, penulis hanya dapat menyampaikan rasa hormat dan terima kasih yang tak terhingga semoga amal kebaikan tersebut mendapatkan balasan dari Allah SWT. Akhirnya penulis berharap semoga laporan ini dapat memberikan manfaat bagi semua pihak. Wassalamu’alaikum Warohmatullah Wabarakatuh.
Surakarta, 27 Juni 2013 Penulis
commit to user
ix
perpustakaan.uns.ac.id
digilib.uns.ac.id
DAFTAR ISI HALAMAN JUDUL .............................................................................................. i HALAMAN PERSETUJUAN ............................................................................. ii HALAMAN PENGESAHAN .............................................................................. iii HALAMAN ABSTRACT .................................................................................... iv HALAMAN ABSTRAK ........................................................................................v HALAMAN MOTTO .......................................................................................... vi HALAMAN PERSEMBAHAN ......................................................................... vii KATA PENGANTAR ........................................................................................ viii DAFTAR ISI ...........................................................................................................x DAFTAR TABEL .............................................................................................. xiv DAFTAR GAMBAR ............................................................................................xv BAB I PENDAHULUAN .....................................................................................1 1.1 Latar Belakang ........................................................................................1 1.2 Perumusan Masalah ................................................................................2 1.3 Batasan Masalah .....................................................................................2 1.4 Tujuan Penelitian ....................................................................................2 1.5 Manfaat Penelitian ..................................................................................2 1.5 Manfaat Penelitian ..................................................................................2 1.6 Sistematika Penulisan .............................................................................2 BAB II LANDASAN TEORI ................................................................................4 2.1 E-Commerce ..........................................................................................4 2.1.1 Keuntungan E-Commerce ............................................................4 2.1.2 Jenis dan Karakteristik E-Commerce ...........................................5 2.2 Herbal .....................................................................................................5 2.3 Hypertext Preprocessor (PHP) ..............................................................6 2.3.1 Tipe data .......................................................................................7 2.3.1 Variabel ........................................................................................8 2.4 Basis Data ...............................................................................................8 2.4.1 Macam-macam Key ...................................................................10 2.4.2 Entity Relationship Diagram (ERD) ..........................................10 2.5 My Structured Query Language (My SQL) ..........................................14 commit user 2.5.1 Tipe Data Pada My SQLto ............................................................. 15
x
perpustakaan.uns.ac.id
digilib.uns.ac.id
2.5.2 Bahasa SQL ................................................................................15 2.6 Data Flow Diagram (DFD) .................................................................16 2.6.1 Mengembangkan Diagram Aliran Data ....................................19 2.6.2 Menciptakan Diagram Konteks .................................................20 2.6.3 Menggambar Diagram Level 0 .................................................20 2.6.4 Menciptakan Diagram Anak .....................................................21 2.7 Black-box Testing ...............................................................................22 BAB III ANALISA KEBUTUHAN DAN PERANCANGAN SISTEM ..........24 3.1 Kebutuhan Sistem ................................................................................24 3.1.1 Kebutuhan Fungsional ..............................................................24 3.1.2 Kebutuhan Non Fungsional ......................................................27 3.2 Jalannya Penelitian ...............................................................................28 3.3 Perancangan Sistem .............................................................................31 3.3.1 Context Diagram (CD) .............................................................31 3.3.2 DFD Level 0 .............................................................................32 3.3.3 DFD Level 1 Proses Pemesanan ..............................................34 3.3.4 DFD Level 1 Proses Manajemen Konten .................................35 3.3.5 Entity Relationship Diagram (ERD) ........................................36 3.3.6 Skema Diagram ........................................................................37 3.3.7 Rancangan Tabel ......................................................................37 3.4 Perancangan Desain E-commerce ........................................................44 3.4.1 Halaman User ...........................................................................44 3.4.2 Halaman Registrasi Member ....................................................44 3.4.3 Halaman Login Member ...........................................................45 3.4.4 Halaman Member .....................................................................46 3.4.5 Halaman Login Admin .............................................................46 3.4.6 Halaman Admin .......................................................................47 BAB IV IMPLEMENTASI DAN ANALISA ....................................................48 4.1 Implementasi ........................................................................................48 4.1.1 Implementasi Database ............................................................48 4.1.2 Implementasi Halaman User dan Member ...............................50 4.1.3 Implementasi Aplikasi Admin .................................................57 4.2 Pengujian .............................................................................................. 66 commit to user
xi
perpustakaan.uns.ac.id
digilib.uns.ac.id
4.2.1 Rencana Pengujian ...................................................................66 4.2.2 Kasus dan Hasil Pengujian .......................................................67 4.2.3 Kesimpulan dan Pengujian .......................................................76 BAB V PENUTUP ................................................................................................77 5.1 Kesimpulan ..........................................................................................77 5.2 Saran .....................................................................................................77 DAFTAR PUSTAKA ...........................................................................................78
commit to user
xii
perpustakaan.uns.ac.id
digilib.uns.ac.id
DAFTAR TABEL Tabel 2.1 Cara Penulisan Script PHP .....................................................................7 Tabel 2.2 Tipe Data PHP ......................................................................................8 Tabel 2.5 Simbol Komponen ERD ......................................................................11 Tabel 2.6 Kardinalitas ERD .................................................................................11 Tabel 2.7 Sintaks SQL .........................................................................................15 Tabel 2.8 Simbol-simbol DFD .............................................................................17 Tabel 3.1 Tabel Admin ........................................................................................38 Tabel 3.2 Tabel Member ......................................................................................38 Tabel 3.3 Tabel Produk .........................................................................................39 Tabel 3.4 Tabel Pesan ...........................................................................................40 Tabel 3.5 Tabel Detail_Pesan ...............................................................................40 Tabel 3.6 Tabel Kota .............................................................................................41 Tabel 3.7 Tabel Konfirmasi ..................................................................................41 Tabel 3.8 Tabel Artikel .........................................................................................42 Tabel 3.9 Tabel Testimoni ....................................................................................42 Tabel 3.10 Tabel Kat_manfaat ..............................................................................43 Tabel 3.11 Tabel Manfaat ......................................................................................43 Tabel 3.12 Tabel Menu .........................................................................................43 Tabel 4.1 Rencana Pengujian Black Box Admin ..................................................67 Tabel 4.2 Rencana Pengujian Black Box User ......................................................67 Tabel 4.3 Rencana Pengujian Black Box Member ................................................67 Tabel 4.4 Pengujian Login Admin ........................................................................68 Tabel 4.5 Pengisian Data Artikel ..........................................................................69 Tabel 4.6 Pengisian Data Produk ..........................................................................70 Tabel 4.7 Pengisian Data Kota ..............................................................................71 commit to user Tabel 4.8 Pengisian Status Pemesanan ................................................................. 72
xiii
perpustakaan.uns.ac.id
digilib.uns.ac.id
Tabel 4.9 Pengisian Data User ..............................................................................73 Tabel 4.10 Pengecekan Login Member .................................................................73 Tabel 4.11 Pengisian Data Testimoni ...................................................................74 Tabel 4.12 Edit Profil Member..............................................................................75 Tabel 4.13 Pengisian Data Konfirmasi .................................................................75
commit to user
xiv
perpustakaan.uns.ac.id
digilib.uns.ac.id
DAFTAR GAMBAR Gambar 3.1 Blok Diagram Jalannya Penelitian ...................................................28 Gambar 3.2 Context Diagram ..............................................................................31 Gambar 3.3 DFD Level 0 .....................................................................................32 Gambar 3.4 DFD Level 1 Pemesanan ..................................................................34 Gambar 3.5 DFD Level 1 Manajemen Konten ....................................................35 Gambar 3.6 Entity Reationalship Diagram (ERD) ..............................................36 Gambar 3.7 Skema Diagram ................................................................................37 Gambar 3.8 Rancangan Layout User ...................................................................44 Gambar 3.9 Halaman Registrasi Member ............................................................45 Gambar 3.10 Halaman Login Member .................................................................45 Gambar 3.11 Halaman Member ...........................................................................46 Gambar 3.12 Halaman Login Admin ...................................................................47 Gambar 4.1 Implementasi Tabel Admin ..............................................................48 Gambar 4.2 Implementasi Tabel Artikel ..............................................................48 Gambar 4.3 Implementasi Tabel Pesan ................................................................48 Gambar 4.4 Implementasi Tabel Detail_Pesan ....................................................49 Gambar 4.5 Implementasi Tabel Produk .............................................................49 Gambar 4.6 Implementasi Tabel Kat_Manfaat ....................................................49 Gambar 4.7 Implementasi Tabel Konfirmasi .......................................................49 Gambar 4.8 Implementasi Tabel Manfaat ............................................................49 Gambar 4.9 Implementasi Tabel Member ...........................................................50 Gambar 4.10 Implementasi Tabel Kota .................................................................50 Gambar 4.11 Implementasi Tabel Testimoni ........................................................50 Gambar 4.12 Implementasi Tabel Menu ................................................................50 Gambar 4.13 Script Menampilkan Cara Belanja ..................................................51 commit to user
xv
perpustakaan.uns.ac.id
digilib.uns.ac.id
Gambar 4.14 Halaman Cara Belanja ......................................................................51 Gambar 4.15 Halaman Form Registrasi .................................................................52 Gambar 4.16 Halaman Login Member ..................................................................52 Gambar 4.17 Potongan Script Pencarian ..............................................................53 Gambar 4.18 Halaman Katalog Produk ................................................................53 Gambar 4.19 Potongan Script Keranjang Belanja .................................................54 Gambar 4.20 Halaman Shopping Chart .................................................................54 Gambar 4.21 Halaman Form Pengiriman ..............................................................54 Gambar 4.22 Potongan Script Detail Pesan ...........................................................55 Gambar 4.23 Halaman Detail Pesan ......................................................................55 Gambar 4.24 Halaman Konfirmasi Pembayaran ...................................................56 Gambar 4.25 Potongan Script Edit Profil ..............................................................56 Gambar 4.26 Halaman Edit Profil ..........................................................................56 Gambar 4.27 Halaman Form Testimoni ...............................................................57 Gambar 4.28 Halaman Login Admin .....................................................................57 Gambar 4.29 Halaman Admin ...............................................................................58 Gambar 4.30 Potongan Script Pencarian ...............................................................58 Gambar 4.31 Halaman Daftar Pesan ......................................................................59 Gambar 4.32 Halaman Detail Pesan ......................................................................59 Gambar 4.33 Script Cetak ......................................................................................59 Gambar 4.34 Cetak Struk .......................................................................................60 Gambar 4.35 Halaman Artikel ...............................................................................60 Gambar 4.36 Halaman Input Artikel ......................................................................60 Gambar 4.37 Potongan Script Send Email .............................................................61 Gambar 4.38 Halaman Produk ...............................................................................62 Gambar 4.39 Halaman Input Produk .....................................................................62 commit to user Gambar 4.40 Halaman Member ............................................................................. 63
xvi
perpustakaan.uns.ac.id
digilib.uns.ac.id
Gambar 4.41 Halaman Kota ...................................................................................63 Gambar 4.42 Halaman Input Kota .........................................................................64 Gambar 4.43 Halaman Konfirmasi ........................................................................64 Gambar 4.44 Halaman Testimoni ..........................................................................65 Gambar 4.45 Script Detail Testimoni ....................................................................65 Gambar 4.46 Halaman Detail Testimoni ..............................................................65 Gambar 4.47 Halaman Menu .................................................................................66
commit to user
xvii