{"id":1530,"date":"2010-04-22T17:11:55","date_gmt":"2010-04-22T16:11:55","guid":{"rendered":"http:\/\/flaven.fr\/?p=1530"},"modified":"2010-04-22T17:11:55","modified_gmt":"2010-04-22T16:11:55","slug":"commerce-electronique-e-commerce-opencart-monter-une-boutique-en-ligne-avec-opencart-147","status":"publish","type":"post","link":"https:\/\/flaven.fr\/2010\/04\/commerce-electronique-e-commerce-opencart-monter-une-boutique-en-ligne-avec-opencart-147\/","title":{"rendered":"Commerce \u00e9lectronique, e-commerce, opencart &#8211; Monter une boutique en ligne avec opencart 1.4.7"},"content":{"rendered":"<p><!-- Commerce \u00e9lectronique, e-commerce, opencart - Monter une boutique en ligne avec opencart 1.4.7 --><br \/>\n<!--  Commerce \u00e9lectronique, e-commerce, boutique en ligne, opencart 1.4.7 , PHP, MySQL --><br \/>\nOn avait abord\u00e9 dans un article pr\u00e9c\u00e8dent la question de cr\u00e9er une boutique en ligne adoss\u00e9e \u00e0 des CMS connus type <code>Drupal<\/code> ou <code>WordPress<\/code>, c&#8217;\u00e9tait probant mais pas vraiment concluant !<!--more--> Pourquoi alors ne pas tout simplement installer un syst\u00e8me de boutique en ligne \u00e0 part enti\u00e8re qui autorise la cr\u00e9ation compl\u00e8te d&#8217;une boutique en ligne plutot de coller une &#8220;verrue&#8221; \u00e0 votre CMS existant sopuvent pas dimensionn\u00e9 pour accueillir ce type d&#8217;extension fonctionnelle qu&#8217;ets une boutique en ligne. On a fini par trouver un <code>OpenCart v1.4.7<\/code> gr\u00e2ce aux conseils avis\u00e9s de Tom.<\/p>\n<p><b>La baseline du site pour pr\u00e9senter le <code>OpenCart v1.4.7<\/code><\/b><\/p>\n<blockquote><p>\nOpenCart is an open source PHP-based online shopping cart system. A robust e-commerce solution for Internet merchants with the ability to create their own online business and participate in e-commerce at a minimal cost.\n<\/p><\/blockquote>\n<ul>\n<li><a href=\"http:\/\/social.hecube.net\/blog\/2010\/01\/26\/wordpress-e-commerce-boutique-en-ligne-creer-une-boutique-en-ligne-avec-wordpress\/\">WordPress, e-commerce, boutique en ligne &#8211; Cr\u00e9er une boutique en ligne avec WordPress<\/a><\/li>\n<li><a href=\"http:\/\/social.hecube.net\/blog\/2010\/01\/16\/drupal-ubercart-installer-une-solution-e-commerce-sous-drupal-6\/\">Drupal, Ubercart &#8211; Installer une solution e-commerce sous Drupal 6<\/a><\/li>\n<\/ul>\n<h4>Un d\u00e9veloppement de boutique dot\u00e9 d&#8217;un approche MVC <\/h4>\n<p>C&#8217;est une boutique en ligne construite, en <code>PHP-MySQL<\/code>, sur un mod\u00e8le en MVC (Model-View-Controller) donc sur les principes bien connus des d\u00e9veloppeurs de frameworks PHP (Kohana, CodeIgniter, CakePHP, Zend, Symphony&#8230;etc). Nous nous sommes abondamment \u00e9tendus sur la question des frameworks dans de nombreux articles pr\u00e9c\u00e9dents :<\/p>\n<ul>\n<li><a href=\"http:\/\/social.hecube.net\/blog\/2009\/10\/11\/kohana-codeigniter-framework-php-un-comparatif-entre-kohana-et-codeigniter\/\">Kohana, CodeIgniter, Framework PHP &#8211; Un comparatif entre Kohana et CodeIgniter<\/a><\/li>\n<li><a href=\"http:\/\/social.hecube.net\/blog\/2009\/05\/23\/framework-php-quel-framework-choisir-entre-codeigniter-cakephp-symphony-zend\/\">Framework PHP &#8211; Quel framework choisir entre CodeIgniter, CakePHP, Symphony, Zend&#8230;<\/a><\/li>\n<\/ul>\n<p>Assez bavasser, passons \u00e0 l&#8217;installation et \u00e0 l&#8217;utilisation de <code>OpenCart v1.4.7<\/code>. Une derni\u00e8re chose cependant, l&#8217;ensemble du test d&#8217;installation et d&#8217;utilisation va \u00eatre fait en, local, sur MAMP et avec le derni\u00e8re version de OpenCart, la <code>OpenCart v1.4.7<\/code>.<br \/>\nCi-dessous, les pr\u00e9-requis techniques pour faire fonctionner le syst\u00e8me <code>OpenCart v1.4.7<\/code>.<\/p>\n<blockquote><p>\n<b>Latest Version<\/b><br \/>\nv1.4.7 Released 11th April, 2010<\/p>\n<p><b>License<\/b><br \/>\nGNU GPL License<\/p>\n<p><b>Requirements<\/b><br \/>\n    * Apache<br \/>\n    * PHP (at least 5)<br \/>\n    * MySQL\n<\/p><\/blockquote>\n<p><i>Merci @ Tom pour nous avoir fait d\u00e9couvrir cet excellent syst\u00e8me de boutique en ligne&#8230; et les d\u00e9couvertes risquent de ne pas s&#8217;arr\u00eater l\u00e0 !<\/i><\/p>\n<h4>Installer <code>OpenCart v1.4.7<\/code><\/h4>\n<p>La premi\u00e8re chose \u00e0 faire est de pr\u00e9parer la BDD (Base De Donn\u00e9es) <code>MySQL<\/code> qui va r\u00e9ceptionner votre boutique faite sous <code>OpenCart v1.4.7<\/code>. Un bref rappel des commandes <code>MySQL<\/code> pour cr\u00e9er en deux coups de cuill\u00e8re \u00e0 pot la base et l&#8217;utilisateur et les droits.<\/p>\n<p><b>Se connecter via la console Mac au client <code>MySQL<\/code> de <code>MAMP<\/code><\/b><\/p>\n<pre lang=\"text\">\n\/Applications\/MAMP\/Library\/bin\/mysql -u root -p\n<\/pre>\n<p><b>Cr\u00e9er la BDD<\/b><\/p>\n<pre lang=\"sql\">\n# Cr\u00e9ation simultan\u00e9e de la base oc_install\n# et de l'utilisateur oc_install\nCREATE USER 'oc_install'@'localhost' IDENTIFIED BY 'oc_install'; GRANT USAGE ON *.* TO 'oc_install'@'localhost' IDENTIFIED BY 'oc_install'WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0; CREATE DATABASE IF NOT EXISTS oc_install;GRANT ALL PRIVILEGES ON oc_install.* TO 'oc_install'@'localhost';\n<\/pre>\n<p><b>D\u00e9truire la BDD si vous souhaitez recommencer<\/b><\/p>\n<pre lang=\"sql\">\n# Destruction de 'oc_install'@'localhost' ...\nDROP USER 'oc_install'@'localhost';\nDROP DATABASE IF EXISTS `oc_install` ;\n<\/pre>\n<p><strong>Les informations indispensables \u00e0 l\u2019installation de <code>OpenCart v1.4.7<\/code><\/strong><\/p>\n<blockquote><p>\n    Database Name = oc_install<br \/>\n    Database User name = oc_install<br \/>\n    Database Password = oc_install<br \/>\n    Database Host = localhost\n<\/p><\/blockquote>\n<p>Le moins que l&#8217;on puisse dire est que l&#8217;installation est d&#8217;une grande simplicit\u00e9, une fois que vous avez en main les acc\u00e8s \u00e0 votre BDD.<\/p>\n<p><b>Etape 1<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2010\/04\/ecommerce_with_open_cart_1.jpg\" alt=\"Commerce \u00e9lectronique, e-commerce, opencart - Monter une boutique en ligne avec opencart 1.4.7\" width=\"500\" height=\"265\" \/><\/p>\n<p><b>Etape 2<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2010\/04\/ecommerce_with_open_cart_2.jpg\" alt=\"Commerce \u00e9lectronique, e-commerce, opencart - Monter une boutique en ligne avec opencart 1.4.7\" width=\"500\" height=\"265\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2010\/04\/ecommerce_with_open_cart_3.jpg\" alt=\"Commerce \u00e9lectronique, e-commerce, opencart - Monter une boutique en ligne avec opencart 1.4.7\" width=\"500\" height=\"265\" \/><\/p>\n<p><b>Etape 3 &#8211;  les param\u00e8tres de connexion <\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2010\/04\/ecommerce_with_open_cart_4.jpg\" alt=\"Commerce \u00e9lectronique, e-commerce, opencart - Monter une boutique en ligne avec opencart 1.4.7\" width=\"500\" height=\"265\" \/><\/p>\n<p><b>Etape 4 &#8211;  C&#8217;est fait de connexion &#8211; Vous obtenez les acc\u00e8s \u00e0 votre compte administrateur de la future boutique en ligne<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2010\/04\/ecommerce_with_open_cart_5.jpg\" alt=\"Commerce \u00e9lectronique, e-commerce, opencart - Monter une boutique en ligne avec opencart 1.4.7\" width=\"500\" height=\"265\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2010\/04\/ecommerce_with_open_cart_6.jpg\" alt=\"Commerce \u00e9lectronique, e-commerce, opencart - Monter une boutique en ligne avec opencart 1.4.7\" width=\"500\" height=\"265\" \/><\/p>\n<blockquote><p>\n\t*Username: admin<br \/>\n\t*Password: opencart\n<\/p><\/blockquote>\n<p><b>Il faut supprimer le dossier <code>install<\/code> comme souvent dans ce genre de syst\u00e8me, dans notre exemple, ce r\u00e9pertoire se trouve \u00e0 l&#8217;emplacement suivant <code>\/Applications\/MAMP\/htdocs\/opencart\/store\/install\/<\/code>. Il faut aussi conserver le couple user\/password de l&#8217;administrateur de votre futur boutique en ligne, c&#8217;est pr\u00e9f\u00e9rable !<\/b><\/p>\n<ul>\n<li><b>Frontend<\/b><br \/>\n\t<code>http:\/\/127.0.0.1\/opencart\/store\/<\/code><\/li>\n<p>\t<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2010\/04\/ecommerce_with_open_cart_7.jpg\" alt=\"Commerce \u00e9lectronique, e-commerce, opencart - Monter une boutique en ligne avec opencart 1.4.7\" width=\"500\" height=\"265\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2010\/04\/ecommerce_with_open_cart_8.jpg\" alt=\"Commerce \u00e9lectronique, e-commerce, opencart - Monter une boutique en ligne avec opencart 1.4.7\" width=\"500\" height=\"265\" \/><\/p>\n<li><b>Backend<\/b><br \/>\n\t<code>http:\/\/127.0.0.1\/opencart\/store\/admin\/<\/code><\/li>\n<p>\t<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2010\/04\/ecommerce_with_open_cart_9.jpg\" alt=\"Commerce \u00e9lectronique, e-commerce, opencart - Monter une boutique en ligne avec opencart 1.4.7\" width=\"500\" height=\"265\" \/><\/p>\n<p>\t<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2010\/04\/ecommerce_with_open_cart_10.jpg\" alt=\"Commerce \u00e9lectronique, e-commerce, opencart - Monter une boutique en ligne avec opencart 1.4.7\" width=\"500\" height=\"265\" \/><\/p>\n<p>\t<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2010\/04\/ecommerce_with_open_cart_11.jpg\" alt=\"Commerce \u00e9lectronique, e-commerce, opencart - Monter une boutique en ligne avec opencart 1.4.7\" width=\"500\" height=\"265\" \/>\t<\/p>\n<\/ul>\n<p><b>Le fichier <code>install.txt<\/code> d\u00e9couenn\u00e9 de toutes fioritures.<\/b><\/p>\n<pre lang=\"txt\">\n\t\n\t\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\t\/\/\/       OpenCart V1.4       \/\/\/\n\t\/\/\/    Install Instruction    \/\/\/\n\t\/\/\/  http:\/\/www.opencart.com  \/\/\/\n\t\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\t-------\n\tINSTALL\n\t-------\n\n\t1. Upload all the files and folders to your server from the \"Upload\" folder.\n\t   This can be to anywhere of your choice.\n\n\t   e.g. \/public_html\/store or \/public_html\n\n\t2. If you have a Linux\/Unix make sure the following folders and files are writable.\n\t   chmod 0755 or 0777 image\/\n\t   chmod 0755 or 0777 image\/cache\/\n\t   chmod 0755 or 0777 image\/data\/   \n\t   chmod 0755 or 0777 system\/cache\/\n\t   chmod 0755 or 0777 system\/logs\/\n\t   chmod 0755 or 0777 download\/\n\t   chmod 0755 or 0777 config.php\n\t   chmod 0755 or 0777 admin\/config.php\n\n\t3. Make sure you have installed a MySQL Database which has a user assigned to it \n\t   DO NOT USE YOUR ROOT USERNAME AND ROOT PASSWORD\n\n\t4. Visit the store homepage\n\t   e.g. http:\/\/www.example.com or http:\/\/www.example.com\/store\/\n\n\t5. Follow the onscreen instructions.\n\n\t6. Delete the install directory.\n\n\n\tFor any support issues please visit: http:\/\/www.opencart.com\n\n\tEOF\n\t\n<\/pre>\n<p><b>Le fichier <code>changes.txt<\/code> qui r\u00e9pertorie les avantages <code>OpenCart v1.4.7<\/code>.<\/b><\/p>\n<pre lang=\"txt\">\n\t-- OpenCart v1.4.7 --\n\n\tFIXED:\n\t- Coupon discount taking more than the product total. Now matches max product total\n\t- \"Total\" order total module allowed negative totals if discounts exceeded total. Now stops at 0\n\t- Several language duplicates removed\n\t- Some city names updated in sql\n\t- Fixed potential filemanager while loop error with readdir (Based on php.net's recommendation)\n\t- Fixed sagepay array for FailureURL\n\t- Fixed weight based shipping not supporting 0 cost\n\t- Fixed document $styles and $scripts on header.tpl to properly support the correct options\n\t- Shifted the shipping POST check to avoid reloading rate request when going to the payment page and not using quote session check\n\t- Cleaned up field size inconsistencies with email length between the validation checks and the db\n\t- Fixed login link to correct \"&amp;\" vs \"&amp;\";\n\t- Account approve not allowing logins for existing customers\n\t- Fixed Google Sitemap xml error to correct \"&amp;\" vs \"&amp;amp\";\n\t- Sort by price converting to string issue\n\t- store_url duplication in customer approval email\n\t- Fixed typo in customers \"awating\" approval function names\n\t- Fixed typo in order model for \"notifiy\" in the update function\n\t- Fixed incorrect Customers Awaiting Approval count on admin dashboard\n\n\n\tADDED:\n\t- Universal Upgrade Script (supports upgrades as far back as v1.3.0)\n\t- Category Status in admin (per-category)\n\t- Information Status in admin (per-item)\n\t- Country Status in admin\n\t- Zone status in admin\n\t- Shipping Quote Session option in admin\n\t- Added version constant at the top of the startup.php file to allow programmatic usage\n\t- Added page warning on pages with multi-tabs to show error at top instead of just the field errors so it is clear\n\t- Items per page for admin rows configurable via admin\n\t- Items per page for catalog items configurable via admin (per store)\n\t- Show Weight on Cart page option in admin (per store)\n\t- Latest Module\n\t- Specials Module\n\t- Featured Module\n\t- Disable coupon order total will also disable coupon entry box on front end\n\t- Persist original route if login required\n\t- Disabling language removes requirement from need for entry in admin\n\t- Thickbox agree terms on checkout and create\n\t- Added Model Search checkbox on Advanced Search\n\t- Added Popular Products model function (Order by Viewed) for future use.\n\t- Added $product_info array to the product to make echoing additional fields easier\n\t- Improved order data return without double processing\/subset\n\t- Added support for common base product discount pricing\n\t- Added Improved language support. Fallback to English for missing entries to avoid fatal errors over missing language file\n\t- Added setting language from url ...route=common\/home&amp;language=de\n\t- Added setting currency from url ...route=common\/home&amp;currency=USD\n\t- Added Product Tag table and added search support in tags.\t\n<\/pre>\n<h2>En savoir plus<\/h2>\n<ul>\n<li>La demo de OpenCart<br \/>\n\t<a href=\"http:\/\/demo.opencart.com\/\" target=\"_blank\">http:\/\/demo.opencart.com\/<\/a><\/li>\n<li>Le site officiel de OpenCart<br \/>\n\t\t<a href=\"http:\/\/www.opencart.com\/\" target=\"_blank\">http:\/\/www.opencart.com\/<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>On avait abord\u00e9 dans un article pr\u00e9c\u00e8dent la question de cr\u00e9er une boutique en ligne adoss\u00e9e \u00e0 des CMS connus type Drupal ou WordPress, c&#8217;\u00e9tait&hellip; <\/p>\n<p class=\"text-center\"><a href=\"https:\/\/flaven.fr\/2010\/04\/commerce-electronique-e-commerce-opencart-monter-une-boutique-en-ligne-avec-opencart-147\/\" class=\"more-link\">Continue reading &rarr; <span class=\"screen-reader-text\">Commerce \u00e9lectronique, e-commerce, opencart &#8211; Monter une boutique en ligne avec opencart 1.4.7<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":9455,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"bf_ai_meta_description":"Opencart 1.4.7 permet de cr\u00e9er une boutique en ligne compl\u00e8te. Cet outil open source offre une solution e-commerce robuste pour les commer\u00e7ants en ligne.","bf_ai_og_title":"Opencart 1.4.7: Boutique en ligne","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3437,3444,3447,3449,3435,3452],"tags":[284,321,5,2211,322,20],"class_list":["post-1530","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-business-case-studies","category-programming-databases","category-technology-trends","category-tutorials-how-to","category-web-development","category-wordpress-cms","tag-boutique-en-ligne","tag-commerce-electronique","tag-e-commerce","tag-mysql","tag-opencart-147","tag-php"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3Vuhl-oG","jetpack_featured_media_url":"https:\/\/flaven.fr\/wp-content\/uploads\/2010\/04\/ecommerce_with_open_cart_b1_2_g_bf.jpg","_links":{"self":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/1530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/comments?post=1530"}],"version-history":[{"count":0,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/1530\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media\/9455"}],"wp:attachment":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media?parent=1530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/categories?post=1530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/tags?post=1530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}