Tuesday 19 March 2013

Download PHP / MySQL Ecommerce Website Developed in CodeIgniter

PHP/MySQL Shopping Cart developed in CodeIgniter

This is a simple php script to create your own shopping cart website and an easy project for the developers who are new to php and codeIgniter. The database file is also included which you will need to import to your database

How to run the script 

1) Copy "winegate" folder to  www directory of your webserver
2) create new database with a name like "winegate" and import tables from .sql file
3) go to application/config/database.php and update the database Username & Password


http://localhost/winegate -FRONT END
http://localhost/winegate/index.php/admin - ADMIN SECTION
admin user : admin
admin pass : admin

Front End Functionality
  • Create New User
  • Forget Password
  • Browse categories and Products
  • Select a Product
  • Checkout
  • Enter Order Details (Sender & Receiver)
  • Preview Order
  • Confirm Order
 Admin Functionality


  • View & Manage Users
  • View & Manage Categories
  • View & Manage Products
  • View & Manage Orders
This is a basic ecommerce website developed in PHP / MySQL, I hope it would help programmers to learn basics of an ecommerce website development in PHP / codeigniter. The website uses basic codeigniter validation as well.

https://drive.google.com/file/d/0B2_Eh6GZWqMkOHlFdmtZRnFPbnc/edit?usp=sharing




The website is developed using Adobe Dreamweaver 6.1
 **This PHP ECOMMERCE SCRIPT IN CODEIGNITER is absolutely free to modify, share or use in any form as you like.
 

126 comments:

  1. Thanks for letting me know as how to download PHP / MySQL Ecommerce website developed in CodeIgniter. This was really helpful for me.
    Ecommerce Web Development Company

    ReplyDelete
  2. developing the website or developing E commerce with the customer review is really nice work.. very supportive post.....Web Development USA

    ReplyDelete
  3. I precisely wanted to thank you so much all over again. I am not sure what I would have gone through in the absence of these tips provided by you directly on my topic. It was actually the frightful setting for me personally, however , discovering the very specialized form you managed that took me to leap for delight.
    PHP Shopping Cart

    ReplyDelete
  4. How to download PHP _ mysql shopping cart developed in CodeIgniter

    ReplyDelete
  5. I've followed all steps and am getting problems running it. Am getting this kind of error. Anyone help so that I can get it running.

    A PHP Error was encountered
    Severity: Warning
    Message: Invalid argument supplied for foreach()
    Filename: views/home.php
    Line Number: 21

    ReplyDelete
    Replies
    1. Sorry for delayed answer. It's not an error, it's just a notice, hopefully you would have solved it already..

      Delete
    2. not solved how can i solve it ?

      Delete
    3. Just add your product from admin panel and solve it. Thanks

      Delete
    4. Not able to open admin i a m using xampp and mysql
      Parse error: syntax error, unexpected end of file in E:\xampp\htdocs
      \winegate\application\views\admin\header.php on line 22

      Delete
    5. How to solve this error...
      plz tell me...
      i tried it but not solve...

      Delete
    6. Hi,
      Please help me, if you got the solution for the same.
      Thanks.

      Delete
    7. Even i am getting same error. Not able to get into admin pannel

      Delete
    8. Im having the same pr0o0oblum

      Delete
  6. hello
    why the admin page canot be load (just blank page)
    no form username or passwd and i cnot login in admin page :D


    if have error foreach add this
    19 <?php
    20 if($home_products== 'empty')
    21 echo " Sorry - No items found";
    22 else
    23 {
    before

    $i=1;
    foreach ($home_products as $product)

    line 38 add }


    thank you

    ReplyDelete
    Replies
    1. HI,

      Download files again... please and be sure if short-tags are enabled on your php server, https://drive.google.com/file/d/0B2_Eh6GZWqMkOHlFdmtZRnFPbnc/edit?usp=sharing

      Thanks

      Delete
  7. Thanx for the ecommerce_php_codeigniter_mysql project. You're a hero.

    ReplyDelete
  8. thanx for the project .. But can you get me another link to download ?
    Regards

    ReplyDelete
    Replies
    1. Yes . https://drive.google.com/file/d/0B2_Eh6GZWqMkOHlFdmtZRnFPbnc/edit?usp=sharing

      Delete
  9. I Click This Link " Download PHP / mysql shopping cart developed in CodeIgniter " But Download A exe File So What Can i do? Please Help Me .

    ReplyDelete
  10. Replies
    1. I have 've re-uploaded the file in google drive for u. Sorry i didn't know download was not working

      Delete
  11. NICE BLOG!!! Thanks for your valuable information

    ReplyDelete
  12. I've followed all steps and am getting problems running it. Am getting this kind of error in admin panel. Anyone help so that I can get it running.


    Parse error: syntax error, unexpected end of file in C:\xampp1\htdocs\project\application\views\admin\header.php on line 22

    ReplyDelete
  13. A Database Error Occurred

    Unable to connect to your database server using the provided settings.

    Filename: C:\wamp\www\down\system\database\DB_driver.php

    Line Number: 124

    ReplyDelete
  14. NICE BLOG !!!!!! THANK '''''''''''''''''''''..........................'''''''''''''''''''''''''''''''''

    ReplyDelete
  15. Plz help me
    am getting error message like


    A PHP Error was encountered

    Severity: Warning

    Message: Invalid argument supplied for foreach()

    Filename: views/home.php

    Line Number: 21

    ReplyDelete
    Replies
    1. Hi,
      Please help me, if you got the solution for the same.
      Thanks.

      Delete
  16. plzzzzzzzzz help i am getting

    "object not found"

    ReplyDelete
  17. plzzz help.................
    Parse error: syntax error, unexpected end of file in C:\wamp\www\winegate\application\views\admin\header.php on line 22

    ReplyDelete
    Replies
    1. just add <?php in the start of line 20

      Delete
    2. thank you so much sajan...

      Delete
    3. thank you so much sajan...

      Delete
    4. plZZZ HELP ME!! IS LOT OF ERROR
      Uncaught Error: Call to undefined function mysql_pconnect() in C:\xampp\htdocs\winegate\system\database\drivers\mysql\mysql_driver.php:91 Stack trace: #0 C:\xampp\htdocs\winegate\system\database\DB_driver.php(115): CI_DB_mysql_driver->db_pconnect() #1 C:\xampp\htdocs\winegate\system\database\DB.php(148): CI_DB_driver->initialize() #2 C:\xampp\htdocs\winegate\system\core\Loader.php(346): DB(Array, NULL) #3 C:\xampp\htdocs\winegate\system\core\Loader.php(1171): CI_Loader->database() #4 C:\xampp\htdocs\winegate\system\core\Loader.php(152): CI_Loader->_ci_autoloader() #5 C:\xampp\htdocs\winegate\system\core\Controller.php(51): CI_Loader->initialize() #6 C:\xampp\htdocs\winegate\application\controllers\front.php(6): CI_Controller->__construct() #7 C:\xampp\htdocs\winegate\system\core\CodeIgniter.php(308): Front->__construct() #8 C:\xampp\htdocs\winegate\index.php(202): require_once('C:\\xampp\\htdocs...') #9 {main} thrown in C:\xampp\htdocs\winegate\system\database\drivers\mysql\mysql_driver.php on line 91

      Delete
  18. C:\wamp\www\project\system\database\DB_driver.php error is coming

    ReplyDelete
    Replies
    1. Edit Database configuration file
      file:///C:/wamp/www/winegate/application/config/database.php

      Delete
  19. hellp sir how i add new page like about us, contact us etc

    ReplyDelete
  20. Unable to connect to your database server using the provided settings.

    Filename: C:\xampp\htdocs\project\system\database\DB_driver.php

    Line Number: 124 what is this error?

    ReplyDelete
  21. 404 Page Not Found is the error on index.php

    ReplyDelete
  22. this is very good bolg this is helpful for me thank you

    ReplyDelete
  23. Parse error: syntax error, unexpected $end in C:\wamp\www\winegate\application\views\admin\header.php on line 22

    ReplyDelete
  24. This comment has been removed by the author.

    ReplyDelete
  25. I got the error: Unable to load the requested file: helpers/url_helper.php

    Please help

    ReplyDelete
  26. A Database Error Occurred

    Unable to connect to your database server using the provided settings.

    Filename: C:\wamp\www\project\system\database\DB_driver.php

    Line Number: 124
    how can i solve this error. i followed these instructions but still showing this error.

    ReplyDelete
  27. hey im try to resolve it but still it give me same error.....

    ReplyDelete
  28. This comment has been removed by the author.

    ReplyDelete
  29. hey i can't resolve that error which is....A PHP Error was encountered

    Severity: Notice

    Message: Only variable references should be returned by reference

    Filename: core/Common.php

    Line Number: 257

    ReplyDelete
    Replies
    1. hey the ans is over here.........

      http://stackoverflow.com/questions/28348879/only-variable-references-should-be-returned-by-reference-codeigniter

      Delete
  30. Hi i am new to php ..i did al the steps mentioned above..
    However, below URL doesnt work -
    http://localhost/winegate


    Also, below URL gives error -
    http://localhost/winegate/index.php/admin

    ReplyDelete
    Replies
    1. <?php line 20 admin/header then solve this.

      Delete
    2. Hi. admin/header.php seems to be ok.
      Mohammad, can you be more specific whith sintax? Thank you.

      Delete
  31. Im having the same error with Will Smith. Please help.

    A Database Error Occurred

    Unable to connect to your database server using the provided settings.

    Filename: C:\xampp\htdocs\winegate\system\database\DB_driver.php

    Line Number: 124

    Thanks a lot!

    ReplyDelete
  32. i am Having error in admin end like this

    A PHP Error was encountered

    Severity: Notice

    Message: Undefined variable: total

    Filename: admin/orders.php

    Line Number: 66

    ReplyDelete
  33. my index show: Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php

    ReplyDelete
  34. How can i echo username or mailid after log in if not echo welcome guest.

    Why items_status not updating in wg_itmes table. can you solve the issue please..

    ReplyDelete
  35. Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\winegate\application\views\admin\header.php on line 22

    ????

    ReplyDelete
  36. If Someone Need a e-commerce website at a affordable price. visit: www.krishansoft.com

    ReplyDelete
  37. Unable to connect to your database server using the provided settings.

    Filename: core/Loader.php

    Line Number: 346

    ReplyDelete
  38. How can I change number of products displayed in first page (index.php). Now it displays only 5 products but I want to display 12 products. Please anyone help me....

    ReplyDelete
  39. How can I change number of products displayed in first page (index.php). Now it displays only 5 products but I want to display 12 products. Please anyone help me....

    ReplyDelete
  40. How can I change number of products displayed in first page (index.php). Now it displays only 5 products but I want to display 12 products. Please anyone help me....

    ReplyDelete
  41. Nice Project.
    How to display username after login.can any body help me on this.where to modify code?.

    ReplyDelete
  42. This comment has been removed by the author.

    ReplyDelete
  43. Please Please help me... unable to select specified database. can anybody tell me step by step to run program.

    ReplyDelete
  44. This comment has been removed by the author.

    ReplyDelete
  45. This comment has been removed by the author.

    ReplyDelete
  46. Fatal error: Uncaught Error: Call to undefined function mysql_pconnect() in C:\xampp\htdocs\winegate\system\database\drivers\mysql\mysql_driver.php:91 Stack trace: #0 C:\xampp\htdocs\winegate\system\database\DB_driver.php(115): CI_DB_mysql_driver->db_pconnect() #1 C:\xampp\htdocs\winegate\system\database\DB.php(148): CI_DB_driver->initialize() #2 C:\xampp\htdocs\winegate\system\core\Loader.php(346): DB(Array, NULL) #3 C:\xampp\htdocs\winegate\system\core\Loader.php(1171): CI_Loader->database() #4 C:\xampp\htdocs\winegate\system\core\Loader.php(152): CI_Loader->_ci_autoloader() #5 C:\xampp\htdocs\winegate\system\core\Controller.php(51): CI_Loader->initialize() #6 C:\xampp\htdocs\winegate\application\controllers\front.php(6): CI_Controller->__construct() #7 C:\xampp\htdocs\winegate\system\core\CodeIgniter.php(308): Front->__construct() #8 C:\xampp\htdocs\winegate\index.php(202): require_once('C:\\xampp\\htdocs...') #9 {main} thrown in C:\xampp\htdocs\winegate\system\database\drivers\mysql\mysql_driver.php on line 91

    ReplyDelete
  47. is a lot of errror pls answer me!!
    Fatal error: Uncaught Error: Call to undefined function mysql_pconnect() in C:\xampp\htdocs\winegate\system\database\drivers\mysql\mysql_driver.php:91 Stack trace: #0 C:\xampp\htdocs\winegate\system\database\DB_driver.php(115): CI_DB_mysql_driver->db_pconnect() #1 C:\xampp\htdocs\winegate\system\database\DB.php(148): CI_DB_driver->initialize() #2 C:\xampp\htdocs\winegate\system\core\Loader.php(346): DB(Array, NULL) #3 C:\xampp\htdocs\winegate\system\core\Loader.php(1171): CI_Loader->database() #4 C:\xampp\htdocs\winegate\system\core\Loader.php(152): CI_Loader->_ci_autoloader() #5 C:\xampp\htdocs\winegate\system\core\Controller.php(51): CI_Loader->initialize() #6 C:\xampp\htdocs\winegate\application\controllers\front.php(6): CI_Controller->__construct() #7 C:\xampp\htdocs\winegate\system\core\CodeIgniter.php(308): Front->__construct() #8 C:\xampp\htdocs\winegate\index.php(202): require_once('C:\\xampp\\htdocs...') #9 {main} thrown in C:\xampp\htdocs\winegate\system\database\drivers\mysql\mysql_driver.php on line 91

    ReplyDelete
    Replies
    1. database.php file edit in your "config" folder

      Line No :53 see replace your phpmyadmin password

      then its working ;)

      Delete
  48. the links to admin panel and front end "winegate" folder is missing in project

    ReplyDelete
    Replies
    1. you make "winegate" folder in your werserver root

      Like if you used xampp server so make
      "winegate" folder in this location :=> c:/xampp/htdocs/

      then project contain all file put in that folder

      then edit config folder

      database.php

      then run ;)

      Delete
  49. Images are not uploaded in images/upload folder

    ReplyDelete
    Replies
    1. its working

      i will tested this its working also store image in image folder ;)

      Delete
  50. Hi thanks for the help... my problem is that nothing is visible on both the admin page and the front end. is there a way i can fix this??

    ReplyDelete
  51. Thanks...It is very nice blog, but add category edit(update) is not working properly, how to add sub category..Please help me...

    ReplyDelete
  52. i changed the password and created a db called winegate but when i try to open the website through xampp i just get a blank page..
    please give me a solution ... urgent

    ReplyDelete
  53. hii thanks.... its very nice n halpfull blog...
    but when i open http://localhost/winegate/index.php/admin/
    its show me error
    "( ! ) Parse error: syntax error, unexpected end of file in C:\wamp\www\winegate\application\views\admin\header.php on line 23"
    plz help me

    ReplyDelete
  54. Please reply to the below error;

    An Error Was Encountered

    You have not selected a database type to connect to.

    ReplyDelete
  55. A PHP Error was encountered
    Severity: Notice
    Message: Only variable references should be returned by reference
    Filename: core/Common.php
    Line Number: 257

    Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\winegate\application\views\admin\header.php on line 22
    i am getting this error for admin panel

    ReplyDelete
  56. A PHP Error was encountered
    Severity: Notice
    Message: Only variable references should be returned by reference
    Filename: core/Common.php
    Line Number: 257

    Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\winegate\application\views\admin\header.php on line 22
    i am getting this error for admin panel

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. Edit your core/Common.php file at Line 257 as

      from return $_config[0] =& $config;

      Change to $_config[0] =& $config;
      return $_config[0];

      Then your header.php from change "" to "" at the specified line

      Delete
  57. A Database Error Occurred

    Error Number: 1364

    Field 'medium_image' doesn't have a default value

    INSERT INTO `wg_items` (`cat_id`, `item_name`, `item_price`, `item_desc`, `item_stock`) VALUES ('1', 'Veleta fruit drink', '600', 'This is a non-alcoholic beverage from the stable of Intercontinental Distillers Limited. Veleta is a feminine drink with no alcoholic content', '25')

    Filename: C:\wamp64\www\winegate\system\database\DB_driver.php

    Line Number: 330

    ReplyDelete
  58. please help me. i have a problem

    A Database Error Occurred

    Unable to connect to your database server using the provided settings.

    Filename: C:\xampp\htdocs\project\system\database\DB_driver.php

    Line Number: 124

    ReplyDelete
  59. Replies
    1. This comment has been removed by the author.

      Delete
  60. ow to use this code in proper formate .help me ????????????????????????????????????????????????

    ReplyDelete
  61. A Database Error Occurred

    Unable to connect to your database server using the provided settings.

    Filename: C:\wamp\www\Winegate\system\database\DB_driver.php

    Line Number: 124

    ReplyDelete
  62. how to login in to admin part

    ReplyDelete
  63. how about the admin? can you teach me how to open it?

    ReplyDelete
  64. I have followed all steps but getting following error:

    A PHP Error was encountered

    Severity: Notice

    Message: Only variable references should be returned by reference

    Filename: core/Common.php

    Line Number: 257


    Fatal error: Uncaught Error: Call to undefined function mysql_pconnect() in C:\Xampp\htdocs\winegate\system\database\drivers\mysql\mysql_driver.php:91 Stack trace: #0 C:\Xampp\htdocs\winegate\system\database\DB_driver.php(115): CI_DB_mysql_driver->db_pconnect() #1 C:\Xampp\htdocs\winegate\system\database\DB.php(148): CI_DB_driver->initialize() #2 C:\Xampp\htdocs\winegate\system\core\Loader.php(346): DB(Array, NULL) #3 C:\Xampp\htdocs\winegate\system\core\Loader.php(1171): CI_Loader->database() #4 C:\Xampp\htdocs\winegate\system\core\Loader.php(152): CI_Loader->_ci_autoloader() #5 C:\Xampp\htdocs\winegate\system\core\Controller.php(51): CI_Loader->initialize() #6 C:\Xampp\htdocs\winegate\application\controllers\front.php(6): CI_Controller->__construct() #7 C:\Xampp\htdocs\winegate\system\core\CodeIgniter.php(308): Front->__construct() #8 C:\Xampp\htdocs\winegate\index.php(202): require_once('C:\\Xampp\\htdocs...') #9 {main} thrown in C:\Xampp\htdocs\winegate\system\database\drivers\mysql\mysql_driver.php on line 91

    ReplyDelete
    Replies
    1. Try these two
      1) https://github.com/bcit-ci/CodeIgniter/commit/69b02d0f0bc46e914bed1604cfbd9bf74286b2e3

      2)

      change 'dbdriver' => 'mysql' to 'dbdriver' => 'mysqli'

      Delete
  65. hi friend, your content is superb for me and newbies also, i also post ideas and tutorial (cashguru4u.com). I suggest pls do some video tutorial so we get some more and if you doing so give link address sandy.9835@gmail.com
    Thankyou so much for this wonderful post

    ReplyDelete
  66. This comment has been removed by the author.

    ReplyDelete
  67. Hello Friends,

    Whn i try to run url http://localhost/winegate/ it give error
    Severity: Notice

    Message: Only variable references should be returned by reference

    Filename: core/Common.php

    Line Number: 257


    but when i solved the error it show blank page ..please help me as soon
    Thanks

    ReplyDelete
  68. Hi!
    I'm getting this error:
    A Database Error Occurred
    Unable to connect to your database server using the provided settings.

    Filename: C:\xampp\htdocs\winegate\system\database\DB_driver.php

    Line Number: 124

    Also, this one:
    A PHP Error was encountered
    Severity: Notice

    Message: Only variable references should be returned by reference

    Filename: core/Common.php

    Line Number: 257

    And when I edited it to: return $_config[0]; , I got this error:
    A PHP Error was encountered
    Severity: Notice

    Message: Undefined index: subclass_prefix

    Filename: core/CodeIgniter.php

    Line Number: 237

    Please help. I am a novice and I really don't know what to do. :(

    ReplyDelete
  69. Nice blog. This is good for me. Contact for Ecommerce project in Noida
    IT Company in Noida

    ReplyDelete
  70. Your prosecution is each one fun and i respect you and hopping for some more informative posts. thank you for sharing enormous auspices to us. Best eCommerce Software Platforms

    ReplyDelete
  71. If you need best local packers and movers in Delhi NCR.so it provides packers and movers services whole Noida & Delhi NCR. it provides packers and movers services at cheap cost. here click for more information-
    packers services in delhi ncr
    packers services in noida

    ReplyDelete

  72. Hello,

    we provide affordable and result-oriented SEO services, please give a chance to serve you.


    Thanks
    Admin: E07.net

    ReplyDelete
  73. which file shud i copy in www directory

    ReplyDelete
  74. whr is the winegate folder

    ReplyDelete
  75. Excellent article and this helps to enhance your knowledge regarding new things. Waiting for more updates.
    Ecommerce Website Using PHP
    PHP Ecommerce Website

    ReplyDelete
  76. This comment has been removed by the author.

    ReplyDelete
  77. This comment has been removed by the author.

    ReplyDelete
  78. The Amazon FBA copywriting is one of the most demanded skills in the online market. It takes a seller a bit of hard work but brings a large number of
    customers and huge profits.

    ReplyDelete