Appendix C[ 323 ] Summary In this chapter, we have looked at how we can make some really simple but useful improvements to our framework, by utilizing other services and libraries and
Trang 1Appendix C
[ 323 ]
Summary
In this chapter, we have looked at how we can make some really simple but useful
improvements to our framework, by utilizing other services and libraries and just
adding a few lines of code to our system The number of improvements we can make
are endless; some options include:
Integrating graphs and charts into our administration area, using
Google charts PHP chart libraries JavaScript chart libraries Bringing jQuery improvements to the design jQuery is a great JavaScript
library, which can enhance the user interface It has a number of plugins
and code snippets available, including:
autocomplete: This plugin makes searching for products easier by auto-completing products in the database
uploadprogress: When a customer uploads a file for a customizable product, this plugin would show the progress
of the upload
Toggle images: For products where we have a number
of photographs uploaded, we could use JavaScript to toggle between the different images, swapping a larger image with the larger version of a thumbnail image This
is a code snippet, which can be copied from http://www
michaelpeacock.co.uk/blog/entry/manual-photo-filmstrip-in-jQuery
•
°
°
°
•
°
°
°
Trang 3Symbols
deconstruct method 37
1&1 Internet Inc 275
eBay 12
A
addProduct method 165-168
administration
categories 261
customer area 269
dashboard 260
miscellaneous 269
orders 267
products 261
administration areas, extending
See payment areas, extending
affectedRows method 36
Amazon, features
delivery address choosing flexibility 185
detailed basket 184
gift wrapping 184
payment history, tracking 185
streamlined authentication 184
Amazon
about 8, 12
checkout button 183
features 12, 184
limitation 183
stages 182, 183
Amazon's Market Web Service See
Amazon MWS
Amazon MWS 309
A Small Orange, hosting providers 275
authentication, order process
about 225, 226
delivery address, considering 226
authentication, process
login 191 need for 191 registering 191
authentication reminders
about 317 password, recovering 317 pwd_reset_key 317 username, recovering 319
B backing up, site maintenance
cPanel, using 284 SSH 286
basket, process
overview 190 shipping method 190 voucher codes, adding 189
Basketcontroller
empty basket template, inserting 180 smallBasket method, adding 179
Brick 'N Mortar stores 8 C
cacheData method 33 cacheQuery method 32 campaign monitor
about 320 uses 320
categories
about 83 controller 89-91 creating 265 deleting 266
Trang 4[ 326 ]
editing 266
getCategory method 84
images 92
model 84-87
new category, adding 266
routing 92, 93
view, building 87
viewCategory method 89
centralized download area
creating 315
checkBasket method 162, 164
closeConnection method 31
content, structuring
additonal functionality 63
advanced content types 63
pages 63
versioning 64
content_types_products table
extending 311
tables, adding 311
contents, embedding
about 93
featured product, viewing 93
contents, shopping basket
addProduct method 165-168
controller 168-170
customizable products, adding 170
etiquette 170
products, adding 165
product variants, adding 172
quantities, editing 174-176
viewing 162
controller
tasks 74, 76
cost determination, shipping
location-based shipping cost 201
product-based shipping cost 200
shipping methods, using 199
ways 199
weight-based shipping cost 200, 201
cPanel
backup, restoring from 285
database, backing up 284, 285
database, restoring from 285
site, backing up 284, 285
using 284
credit card
details, not storing 243
details, storing 242, 243
CubeCart 10 customer's basket
empty basket 159 main page, viewing 159 viewing 159
customer area
about 269 listing 269 selected user's ID, detecting 269
customer retention
coupons 301 newsletters, sending 301 social features 301 techniques 301 voucher codes 301
customizable products, shopping basket
adding 170 basket, viewing 171 basket templates 111 controller 172 database, modifying 171 model changes, making 171, 172 product customizations 111 product variations 111 purchasing 170 stock control 110 subtotals 111
D dashboard
sample screen 261 statistics 260 statistics, generating 260
data, discount codes
database fields 215 storing 214 types, fixed amount deducted 214 types, fixed amount set to shipping 214 types, percentage 214
database, manual deployment
creating, on hosting account 277, 278 local database, exporting 278, 279 local database, importing 279 setting up 276
database changes, referrals
credit field 221
Trang 5[ 327 ]
referrers table, fields 221
database object
deconstruct method 37
affectedRows method 36
cacheData method 33
cacheQuery method 32
closeConnection method 31
dataFromCache method 33
deleteRecords method 34
executeQuery method 35
extending 37
getRows method 36
information, debugging 37
inheritance 37
insertRecords method 35
logic abstraction, to queries 37
newConnection method 31
numRowsFromCache method 32
resultsFromCache method 33
sanitizeData method 36
setActiveConnection method 32
updateRecords method 34, 35
database structure, users control
changing 107
products table, allow_upload (Boolean)
field 107
products table, changing 107
products table, custom_text_inputs
(longtext) field 107
dataFromCache method 33
data management
categories 70
content 65
content, types 67
content, versions 68
database, designing 65
products 69
deleteRecords method 34
delivery address, order process
confirmation page 228
setting 227
delivery address, process 191
directCall parameter 81
discount codes
about 213
data, storing 214
functionality 215, 216
options 213
discount codes functionality
code quantity, reducing 219 codes 216-218
tasks 216
Drupal e-commerce 10 E
e-commerce
about 7, 59 administration 259 applications 7, 10 checkout process 14 CubeCart 10 Drupal e-commerce 10 examples 181
Magento 10 need for 9 overview 7 product-related features 13 registry 59
required key features 13 shipping 197
shopping basket 157 site 10
supplementary features 14 tax 209
users 8 users choice 95
e-commerce, examples
Amazon 182 eBay 185 Play.com 187 reviewing 181
e-commerce, Google Analytics
item, adding 308 tracking 307 transaction, adding 307, 308 transaction, tracking 308
e-commerce, sites
Amazon 12 eBay 12 iStockphoto 11 Play.com 12 WooThemes 11
e-commerce, users
Amazon 8