PHP 5 e-commerce Development- P5 pps

5 154 0
PHP 5 e-commerce Development- P5 pps

Đang tải... (xem toàn văn)

Thông tin tài liệu

Preface [ 3 ] Chapter 11, Taking Payment for Orders, introduces payment processing to the framework, covering different modes of payment and various post-payment steps involved. Chapter 12, User Account Features, walks through the development of a customers area where they can see as well as edit their orders and prole information. Chapter 13, Administration, walks through the development of an administrators area where they can see orders, products, and settings, and add, edit, and remove these. Chapter 14, Deploying, Security, and Maintenance, looks at deploying our site using the framework into a live environment and examines the security and maintenance concerns, introducing different ways to enhance security of our framework and to restore a live site from a backup. Chapter 15, Marketing, SEO, and Customer Retention, discusses hints and tips for effectively marketing and promoting websites and e-commerce stores with online marketing techniques, search engine optimization, and customer retention strategies. Appendix A, Interacting with Web Services, explains how we may interact with other e-commerce-related web services, such as Google products, Google Analytics, Amazon web services, and eBay developer center, in order to target new markets, or to make tasks easier for us. Appendix B, Downloadable products, illustrates how to extend our store to allow downloadable products. Appendix C, Cookbook, goes through a number of useful code snippets to enhance the framework and our store. What you need for this book In the course of this book, you will need the following software utilities to try out various code examples listed: Apache 1.3 or above (2 recommended) Apache mod_rewrite module MySQL 5.0 PHP 5.0 (5.2+ recommended) The above can be installed using a package such as WampServer 2.0 for Windows. For development, a text editor is all that is required, though one with syntax highlighting would be benecial. • • • • This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 Preface [ 4 ] Who this book is for If you are a web developer, or anyone looking to increase your understanding of e-commerce site development, this book is for you. Primarily aimed at PHP developers, it is suitable for any web developer interested in enhancing their e-commerce knowledge, or developers looking to move towards PHP. Intermediate knowledge of PHP development and object-oriented programming is assumed, and basic knowledge of e-commerce principles will be of benet too. Conventions In this book, you will nd a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning. Code words in text are shown as follows: "The sufx of ecomframe is used to allow us to store multiple database connection details within the same array." A block of code is set as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>{title}</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <meta name="description" content="{metadescription}" /> <meta name="keywords" content="{metakeywords}" /> </head> <body> When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold: SELECT v.name AS product_name, c.ID AS product_id, (SELECT GROUP_CONCAT( a.name,' AV ', av.ID, ' AV ', av.name SEPARATOR ' ATTR ' ) FROM product_attribute_values av, product_attribute_value_association ava, product_attributes a WHERE a.ID = av.attribute_id AND av.ID=ava.attribute_id AND ava.product_id=c.ID ORDER BY ava.order ) AS attributes, This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 Preface [ 5 ] p.image AS product_image, p.stock AS product_stock, p.weight AS product_weight, p.price AS product_price, p.SKU AS product_sku, p.featured AS product_featured, v.heading AS product_heading, v.content AS product_description, v.metakeywords AS metakeywords, v.metarobots AS metarobots, v.metadescription AS metadescription FROM content_versions v, content c, content_types t, content_types_products p WHERE c.active=1 AND c.secure=0 AND c.type=t.ID AND t.reference='product' AND p.content_version=v.ID AND v.ID=c.current_revision AND c.path='{$productPath}' Any command-line input or output is written as follows: Mysql –u username –p databasename < /home/junipert/backup.sql New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Once we have entered the username and password, we need to click on the Next Step button." Warnings or important notes appear in a box like this. Tips and tricks appear like this. Reader feedback Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of. To send us general feedback, simply send an email to feedback@packtpub.com, and mention the book title via the subject of your message. If there is a book that you need and would like to see us publish, please send us a note in the SUGGEST A TITLE form on www.packtpub.com or e-mail suggest@packtpub.com. If there is a topic that you have expertise in and you are interested in either writing or contributing to a book on, see our author guide on www.packtpub.com/authors. This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 Preface [ 6 ] Customer support Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase. Downloading the example code for the book Visit http://www.packtpub.com/files/code/9645_Code.zip to directly download the example code. Errata Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you nd a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration, and help us to improve subsequent versions of this book. If you nd any errata, please report them by visiting http://www.packtpub. com/support, selecting your book, clicking on the let us know link, and entering the details of your errata. Once your errata are veried, your submission will be accepted and the errata added to any list of existing errata. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support. Piracy Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or web site name immediately so that we can pursue a remedy. Please contact us at copyright@packtpub.com with a link to the suspected pirated material. We appreciate your help in protecting our authors, and our ability to bring you valuable content. Questions You can contact us at questions@packtpub.com if you are having a problem with any aspect of the book, and we will do our best to address it. This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 Download at Wow! eBook PHP e-commerce Welcome to building a PHP e-commerce framework! During the course of this book we are going to build a exible e-commerce framework using PHP, which can be extended and modied for the purposes of any e-commerce site. In this chapter, you will learn: The business logic behind e-commerce Why (and when) you should use your own system over an existing product The benets of a "framework" About existing e-commerce sites and products e-commerce: Who, what, where, why? e-commerce, or electronic commerce, is the sale and purchase of goods or services through electronic means. In our case, this electronic means is the Internet. There are so many different applications of e-commerce on the Internet, including: Online shops selling products, such as Amazon, or the online counterparts to Brick 'N Mortar stores Online auctions, such as eBay Online services/web services such as BaseCamp, or subscription-based websites An overview of e-commerce e-commerce is an incredibly popular way of doing business, so let's look at who is using e-commerce and what they are using it for. • • • • • • • This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 . 2010 953 Quincy Drive, , Brick, , 08724 Download at Wow! eBook PHP e-commerce Welcome to building a PHP e-commerce framework! During the course of this book we are going to build a exible e-commerce. aimed at PHP developers, it is suitable for any web developer interested in enhancing their e-commerce knowledge, or developers looking to move towards PHP. Intermediate knowledge of PHP development. code examples listed: Apache 1.3 or above (2 recommended) Apache mod_rewrite module MySQL 5. 0 PHP 5. 0 (5. 2+ recommended) The above can be installed using a package such as WampServer 2.0 for Windows. For

Ngày đăng: 07/07/2014, 10:20

Từ khóa liên quan

Mục lục

  • Preface

  • PHP e-commerce

    • e-commerce: who, what, where, why?

      • An overview of e-commerce

        • eBay

        • Amazon

        • Brick 'N Mortar stores

        • Service-based companies

        • Why use e-commerce?

        • Rolling out your own framework

          • Why PHP?

          • Why a framework?

          • When to use an existing package?

            • Existing products

            • A look at e-commerce sites

              • iStockphoto

              • WooThemes

              • eBay

              • Amazon

              • Play.com

              • e-commerce: what does it need to do/have?

                • Products

                • Checkout process

                • General

                • Our framework: what is it going to do?

                • Our framework: why is it going to do it?

                  • Juniper Theatricals

                  • Summary

Tài liệu cùng người dùng

Tài liệu liên quan