SlideShare a Scribd company logo
Extending
Wp E-Commerce
Extending WP-e-Commerce WordCamp UK
Does What you’d
       expect
Product management
Does What you’d
        expect
Product management

Shipping Calculations
Does What you’d
        expect
Product management

Shipping Calculations

Tax Calculations
Does What you’d
        expect
Product management

Shipping Calculations

Tax Calculations

Coupons / Promotions
Does What you’d
        expect
Product management

Shipping Calculations

Tax Calculations

Coupons / Promotions

Payment Gateways
Gives you theming
     options
Full Product / Category List (products_page.php)
Gives you theming
     options
Full Product / Category List (products_page.php)

Single Product Page (single_product.php)
Gives you theming
     options
Full Product / Category List (products_page.php)

Single Product Page (single_product.php)

Checkout Page (shopping_cart_page.php)
Gives you theming
     options
Full Product / Category List (products_page.php)

Single Product Page (single_product.php)

Checkout Page (shopping_cart_page.php)

Transaction Results Page and User Profiles
Gives you theming
     options
Full Product / Category List (products_page.php)

Single Product Page (single_product.php)

Checkout Page (shopping_cart_page.php)

Transaction Results Page and User Profiles

Cart Widget - (cart_widget.php)
Extending
      WP e-Commerce
     the right way!
Keep WordPress and WP e-Commerce free from
modifications.

Make Plugins

Submit code for contribution / review
  http://getshopped.org/forums
  http://code.google.com/p/wp-e-commerce/
Extending
       WP e-Commerce
     the right way?
Use Hooks - make Plugins and/or Upgrades

Utilize hooks available:
  http://getshopped.org/resources/hooks-and-filters/

Currently there are limitations, but we are quickly
over coming them.

Talk to us!
More Than One Way
    ‘to skin a cat’
More Than One Way
    ‘to skin a cat’




 Hack the Plugin files
More Than One Way
    ‘to skin a cat’

                               Text



 Hack the Plugin files
 ---------------------------
 Make an Upgrade script
More Than One Way
    ‘to skin a cat’




 Hack the Plugin files
 ---------------------------
 Make an Upgrade script
 Make a Plugin
More Than One Way
    ‘to skin a cat’




 Hack the Plugin files
 ---------------------------
 Make an Upgrade script
 Make a Plugin
 Make your own custom theme
Plugin
• Starts with a Plugin Header
Plugin
• Hooks into WP e-Commerce and WordPress via
 hooks




   http://getshopped.org/resources/hooks-and-filters/
Plugin
• Hooks into WP e-Commerce and WordPress via
  hooks

• Starts with a Plugin Header
• Lives in the Plugin Directory
• Needs to be Activated from the Plugins Page
Plugin - examples
• The WPEC Plugin Skeleton
• WPEC-disable-dynamic-stylesheets
• Downloadables Importer
• jPlayerPlugin
Upgrade Modules
• Starts with an Upgrade header (just like Plugins only
  different)
Upgrade Modules
• Hooks into WP e-Commerce and WordPress via
 hooks




   http://getshopped.org/resources/hooks-and-filters/
Upgrade Modules
• Starts with an Upgrade header (just like Plugins only
  different)


• Hooks into WP e-Commerce and WordPress via
  hooks

• Code is placed in:
    • WordPress : `wp-content/uploads/wpsc/upgrades/`
    • MS : `wp-content/blogs.dir/blog_ID/files/wpsc/upgrades/`
Upgrade Modules
       Examples
• Upgrades Skeleton
• No point showing you any other Upgrades all of
  them are being converted into Plugins
Theming
Default Location:
wp-content/plugins/wp-e-commerce/themes/

Safe Place Location:
WordPress: wp-content/uploads/wpsc/themes/
MS: wp-content/blogs.dir/blog_ID/files/wpsc/themes/

3.8 is moving to WordPress Themes - Even Better!
Demonstration




Warning: Live Coding ahead,, which could
      potentially lead to screaming
Extending
       WP e-Commerce
      the right way!
Make Plugins

Make WPSC Themes

Talk to us!
Questions ?
http://instinct.co.nz
http:// getshopped.org
twitter: @getshopped
twitter: @danmilward

Resource Link: Link to Post .....

             email : jeff@instinct.co.nz
             twitter : @jghazally
             blog: screamingcodemonkey.com

More Related Content

PPTX
The Power of a Video Library - WordCamp Raleigh
PPTX
20 tips, tricks and secrets to making your WordPress website look professional
POT
Set up dev environment
PPTX
PDF
Skillfeed word press-course-anouncement-april-23-2015
PDF
Making WooCommerce Your Own
PPTX
WooCommerce: How to Customize WordPress via PHP Snippets
PPTX
Word press in 60 minutes
The Power of a Video Library - WordCamp Raleigh
20 tips, tricks and secrets to making your WordPress website look professional
Set up dev environment
Skillfeed word press-course-anouncement-april-23-2015
Making WooCommerce Your Own
WooCommerce: How to Customize WordPress via PHP Snippets
Word press in 60 minutes

What's hot (20)

PPTX
20171214_EC-CUBE meetup in Malaysia
PDF
Master WooCommerce Troubleshooting
PPT
Using Established e-Marketplace
PPTX
uWebshop Presentation @ BuugBE
PDF
Genesis and AMP: Amp-le room to build amazing digital experiences
PDF
promotional-campaign-wordpress-woocommerce-service
PDF
5 wordpress squeeze site plugins
KEY
WDC - Presentation
PPTX
Your WordPress Freelance Business Site
DOCX
Assignment 4 word press digi skill
PPTX
HighEdWeb 2014: Confessions of a CMS Generalist
PDF
Roel van bueren bundle commander
PPT
Getting Started With Wordpress
ZIP
WordcampNYC 2010 - Wordpress & Multimedia (Updated)
PPT
WooCommerce-The Best Alternative - by Sadip
PPT
How to install computer repair joomla 3.1 website theme
PDF
WooCommerce Customization Masterclass (WordCamp Dublin 2017)
PPT
Funny Christmas
20171214_EC-CUBE meetup in Malaysia
Master WooCommerce Troubleshooting
Using Established e-Marketplace
uWebshop Presentation @ BuugBE
Genesis and AMP: Amp-le room to build amazing digital experiences
promotional-campaign-wordpress-woocommerce-service
5 wordpress squeeze site plugins
WDC - Presentation
Your WordPress Freelance Business Site
Assignment 4 word press digi skill
HighEdWeb 2014: Confessions of a CMS Generalist
Roel van bueren bundle commander
Getting Started With Wordpress
WordcampNYC 2010 - Wordpress & Multimedia (Updated)
WooCommerce-The Best Alternative - by Sadip
How to install computer repair joomla 3.1 website theme
WooCommerce Customization Masterclass (WordCamp Dublin 2017)
Funny Christmas
Ad

Viewers also liked (6)

PDF
PPTX
WordCamp Philly - WP e-Commerce
 
PDF
Distributed Computing
PPT
Distributed computing ).ppt him
PPTX
Distributed computing
PPTX
Distributed Computing
WordCamp Philly - WP e-Commerce
 
Distributed Computing
Distributed computing ).ppt him
Distributed computing
Distributed Computing
Ad

Similar to Extending WP-e-Commerce WordCamp UK (20)

PDF
Amazing WordPress & Productivity Tips
PDF
Top 100 wordpress plugins
PDF
5 年後還是新手 - WordPress Plugin 開發大冒險 - GOTY
PDF
WordCamp Belfast DevOps for Beginners
PDF
How to Import CSV or XML to WordPress.pdf
PPT
Internet Librarian Slides
PPTX
Getting started with WordPress development
PPTX
Word press in 30 minutes
PPTX
WordPress Resources Nov 2014
KEY
Optimize wordpress
PPTX
WordPress in 90 minutes
PDF
Seven deadly theming sins
PDF
Switching from Canvas to Storefront
PPT
Wordpress Beyond A Blog Word Camp Toronto08
PPTX
WordPress
PDF
45 in 45 - A WalkThrough the Joomla Extensions Directory
PPTX
Faster WordPress Workflows
PPT
WordPress Plugin Development- Rich Media Institute Workshop
PDF
WordPress Plugin Development 201
PDF
Creating Your First WordPress Plugin
Amazing WordPress & Productivity Tips
Top 100 wordpress plugins
5 年後還是新手 - WordPress Plugin 開發大冒險 - GOTY
WordCamp Belfast DevOps for Beginners
How to Import CSV or XML to WordPress.pdf
Internet Librarian Slides
Getting started with WordPress development
Word press in 30 minutes
WordPress Resources Nov 2014
Optimize wordpress
WordPress in 90 minutes
Seven deadly theming sins
Switching from Canvas to Storefront
Wordpress Beyond A Blog Word Camp Toronto08
WordPress
45 in 45 - A WalkThrough the Joomla Extensions Directory
Faster WordPress Workflows
WordPress Plugin Development- Rich Media Institute Workshop
WordPress Plugin Development 201
Creating Your First WordPress Plugin

Recently uploaded (20)

PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
cuic standard and advanced reporting.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Empathic Computing: Creating Shared Understanding
PDF
Approach and Philosophy of On baking technology
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Electronic commerce courselecture one. Pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
cuic standard and advanced reporting.pdf
Spectroscopy.pptx food analysis technology
NewMind AI Weekly Chronicles - August'25 Week I
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Building Integrated photovoltaic BIPV_UPV.pdf
sap open course for s4hana steps from ECC to s4
Dropbox Q2 2025 Financial Results & Investor Presentation
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Empathic Computing: Creating Shared Understanding
Approach and Philosophy of On baking technology
MIND Revenue Release Quarter 2 2025 Press Release
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Review of recent advances in non-invasive hemoglobin estimation
Electronic commerce courselecture one. Pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Encapsulation_ Review paper, used for researhc scholars
Mobile App Security Testing_ A Comprehensive Guide.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm

Extending WP-e-Commerce WordCamp UK

  • 3. Does What you’d expect Product management
  • 4. Does What you’d expect Product management Shipping Calculations
  • 5. Does What you’d expect Product management Shipping Calculations Tax Calculations
  • 6. Does What you’d expect Product management Shipping Calculations Tax Calculations Coupons / Promotions
  • 7. Does What you’d expect Product management Shipping Calculations Tax Calculations Coupons / Promotions Payment Gateways
  • 8. Gives you theming options Full Product / Category List (products_page.php)
  • 9. Gives you theming options Full Product / Category List (products_page.php) Single Product Page (single_product.php)
  • 10. Gives you theming options Full Product / Category List (products_page.php) Single Product Page (single_product.php) Checkout Page (shopping_cart_page.php)
  • 11. Gives you theming options Full Product / Category List (products_page.php) Single Product Page (single_product.php) Checkout Page (shopping_cart_page.php) Transaction Results Page and User Profiles
  • 12. Gives you theming options Full Product / Category List (products_page.php) Single Product Page (single_product.php) Checkout Page (shopping_cart_page.php) Transaction Results Page and User Profiles Cart Widget - (cart_widget.php)
  • 13. Extending WP e-Commerce the right way! Keep WordPress and WP e-Commerce free from modifications. Make Plugins Submit code for contribution / review http://getshopped.org/forums http://code.google.com/p/wp-e-commerce/
  • 14. Extending WP e-Commerce the right way? Use Hooks - make Plugins and/or Upgrades Utilize hooks available: http://getshopped.org/resources/hooks-and-filters/ Currently there are limitations, but we are quickly over coming them. Talk to us!
  • 15. More Than One Way ‘to skin a cat’
  • 16. More Than One Way ‘to skin a cat’ Hack the Plugin files
  • 17. More Than One Way ‘to skin a cat’ Text Hack the Plugin files --------------------------- Make an Upgrade script
  • 18. More Than One Way ‘to skin a cat’ Hack the Plugin files --------------------------- Make an Upgrade script Make a Plugin
  • 19. More Than One Way ‘to skin a cat’ Hack the Plugin files --------------------------- Make an Upgrade script Make a Plugin Make your own custom theme
  • 20. Plugin • Starts with a Plugin Header
  • 21. Plugin • Hooks into WP e-Commerce and WordPress via hooks http://getshopped.org/resources/hooks-and-filters/
  • 22. Plugin • Hooks into WP e-Commerce and WordPress via hooks • Starts with a Plugin Header • Lives in the Plugin Directory • Needs to be Activated from the Plugins Page
  • 23. Plugin - examples • The WPEC Plugin Skeleton • WPEC-disable-dynamic-stylesheets • Downloadables Importer • jPlayerPlugin
  • 24. Upgrade Modules • Starts with an Upgrade header (just like Plugins only different)
  • 25. Upgrade Modules • Hooks into WP e-Commerce and WordPress via hooks http://getshopped.org/resources/hooks-and-filters/
  • 26. Upgrade Modules • Starts with an Upgrade header (just like Plugins only different) • Hooks into WP e-Commerce and WordPress via hooks • Code is placed in: • WordPress : `wp-content/uploads/wpsc/upgrades/` • MS : `wp-content/blogs.dir/blog_ID/files/wpsc/upgrades/`
  • 27. Upgrade Modules Examples • Upgrades Skeleton • No point showing you any other Upgrades all of them are being converted into Plugins
  • 28. Theming Default Location: wp-content/plugins/wp-e-commerce/themes/ Safe Place Location: WordPress: wp-content/uploads/wpsc/themes/ MS: wp-content/blogs.dir/blog_ID/files/wpsc/themes/ 3.8 is moving to WordPress Themes - Even Better!
  • 29. Demonstration Warning: Live Coding ahead,, which could potentially lead to screaming
  • 30. Extending WP e-Commerce the right way! Make Plugins Make WPSC Themes Talk to us!
  • 32. http://instinct.co.nz http:// getshopped.org twitter: @getshopped twitter: @danmilward Resource Link: Link to Post ..... email : jeff@instinct.co.nz twitter : @jghazally blog: screamingcodemonkey.com

Editor's Notes

  • #2: Hello Thank You Tony Scott and all the organizers and volunteers for putting together an amazing event! Who Am I? Name/From NZ 1 1/2 yrs Plugin Development Learnt Lots, Learning more Work for Instinct and the GetShopped Crew Technical Support Person Maintain Plugin, release new versions Create additional Modules and Plugins to extend WPEC
  • #3: WPEC is around 6-5 years old, downloaded over 500.000 times, FREE PLUGIN that transforms your blog into an online store,
  • #4: Control 1. (A means of managing your products )add/edit products & product categories
  • #5: Control 2. handles shipping methods (external/internal) UPS, FEDEX, USPS, flat rate, weight rate
  • #6: 3. handles tax - currently working on a new tax system with full user control
  • #7: Coupons, Promotions Specific Price or Percentage off price
  • #8: 4. Pays You! handles gateways - paypal, google checkout, sagepay, chronopay, DPS +++ So thats the Control is gives you, It also provides some theming options...>next slide
  • #9: Standard Theming for the front end of your site, Display (mini-themes) WPEC comes with basic styling of the front end, display 1. product-list A list of your products or category
  • #10: 2. single-product Specific Page to show case a particular product
  • #11: 3. checkout page A page used for calculating shipping and tax costs, and capturing billing and shipping details and sends request through to payment gateway
  • #12: 4. transaction results and User Profiles Soon to be in a template of it’s own
  • #13: Cart Widget,
  • #14: How many people use wp-e-commerce personal or clients? How may of you are theme developers? How many of you are WordPress Developers or PHP Developers? What I mean Extending WP e-Commerce? What is the right way?
  • #17: If you can’t do something using a hook or filter, then you should talk to us, maybe there is something we can do to help. We could: 1. Add a filter / action 2. Recommend a different approach
  • #18: Upgrade scripts was the answer to extending WP e-Commerce for GetShopped for the past few years, however after conversations with WP developers, we have been advised that it does not follow WP best practices,, Ability to use Upgrades is still available, but if you are starting a new project I would recommend
  • #19: Plugins, Follows along WP best practices, Only thing about Plugins is with the current WP-e-Commerce setup it is difficult to control when your Plugin will run, be it before or after WP e-Commerce, some say Plugins run alphabetically,, but we found this to be unreliable. We are working together with a few developers, and are getting advice from buddyPress core developers (who I believe have structured their Plugin in the best way in regards to extensibility)
  • #20: If all you are planning on doing is customizing the esthetics then don’t worry about the Upgrade scripts and the Plugins,, make a WPEC custom theme. So there you have it. there is a few ways you can extend WP e-Commerce right now. The most exciting of all is Plugins. We are embracing Plugins in a big way,, My only tiff, with Extending through Plugins, is the fact it messes up the Plugins page,,, Unless the developer uses a naming convention that makes the Plugin noticeably an extension of WP e-Commerce then it becomes very difficult to tell whats what,, In my opinion it would be really cool if it worked in the same strain as Child Themes. but that’s just nit picking.
  • #21: Pros: Developers are already familiar with Plugins Keeps WP e-Commerce Plugin free from modifications, allowing you to Upgrade worry free Keeps to WordPress best practices, Cons: Currently some filters, and actions are not included in the correct sequence, therefore some hooks and filters are not as reliable when used through a Plugin so should be done as an Upgrade instead. This is a known issue, we plan on rectifying in the 3.8 release. One such hook would be the `wpsc_gateway_modules` filter, as it is run on the main Plugin file,, :(
  • #22: Pros: Developers are already familiar with Plugins Keeps WP e-Commerce Plugin free from modifications, allowing you to Upgrade worry free Keeps to WordPress best practices, Cons: Currently some filters, and actions are not included in the correct sequence, therefore some hooks and filters are not as reliable when used through a Plugin so should be done as an Upgrade instead. This is a known issue, we plan on rectifying in the 3.8 release. One such hook would be the `wpsc_gateway_modules` filter, as it is run on the main Plugin file,, :(
  • #23: Pros: Developers are already familiar with Plugins Keeps WP e-Commerce Plugin free from modifications, allowing you to Upgrade worry free Keeps to WordPress best practices, Cons: Currently some filters, and actions are not included in the correct sequence, therefore some hooks and filters are not as reliable when used through a Plugin so should be done as an Upgrade instead. This is a known issue, we plan on rectifying in the 3.8 release. One such hook would be the `wpsc_gateway_modules` filter, as it is run on the main Plugin file,, :(
  • #24: Open up Coda and Google Chrome
  • #25: Pros: Files get included at the same time as the WP e-Commerce plugin No activation, works immediately Keeps WP e-Commerce Plugin free from modifications, allowing you to Upgrade worry free Keeps Plugin Page clean (with a whole lot of Plugins the Plugin Page can sometimes look a little over the top..) Cons: 1. Permissions can be a pain, Some hosts have PHP running on a different group than your average FTP User, which means Users sometimes have to talk to their hosting provider about changing the groups / owners permissions for the uploads/wpsc/* folder tree. I've seen this happen a fair amount, and it is a right pain. 2. Confusing for Users, more and more Users switching to WP e-Commerce are entirely clueless when it comes to servers, PHP, and file management. So having them FTP? and Copy Files? becomes frustrating for them,, 3. WordPress says NO, Many WordPress developers have approached us and told us that this way of adding additional functionality is not quite best practice, and we should embrace Plugins.
  • #26: Pros: Files get included at the same time as the WP e-Commerce plugin No activation, works immediately Keeps WP e-Commerce Plugin free from modifications, allowing you to Upgrade worry free Keeps Plugin Page clean (with a whole lot of Plugins the Plugin Page can sometimes look a little over the top..) Cons: 1. Permissions can be a pain, Some hosts have PHP running on a different group than your average FTP User, which means Users sometimes have to talk to their hosting provider about changing the groups / owners permissions for the uploads/wpsc/* folder tree. I've seen this happen a fair amount, and it is a right pain. 2. Confusing for Users, more and more Users switching to WP e-Commerce are entirely clueless when it comes to servers, PHP, and file management. So having them FTP? and Copy Files? becomes frustrating for them,, 3. WordPress says NO, Many WordPress developers have approached us and told us that this way of adding additional functionality is not quite best practice, and we should embrace Plugins.
  • #27: Pros: Files get included at the same time as the WP e-Commerce plugin No activation, works immediately Keeps WP e-Commerce Plugin free from modifications, allowing you to Upgrade worry free Keeps Plugin Page clean (with a whole lot of Plugins the Plugin Page can sometimes look a little over the top..) Cons: 1. Permissions can be a pain, Some hosts have PHP running on a different group than your average FTP User, which means Users sometimes have to talk to their hosting provider about changing the groups / owners permissions for the uploads/wpsc/* folder tree. I've seen this happen a fair amount, and it is a right pain. 2. Confusing for Users, more and more Users switching to WP e-Commerce are entirely clueless when it comes to servers, PHP, and file management. So having them FTP? and Copy Files? becomes frustrating for them,, 3. WordPress says NO, Many WordPress developers have approached us and told us that this way of adding additional functionality is not quite best practice, and we should embrace Plugins.
  • #29: same problem as Upgrades, Permissions are a pain. Confusing for Average User
  • #33: Who am I? Jeffry Ghazally screamingcodemonkey.com Web Developer that has been using WordPress for about 2 years I work for getshopped.org Main Support Technician and Main Code Co-ordinator