Why you should make a product add-on?
-
Upload
sh-shanker -
Category
Technology
-
view
33 -
download
4
Transcript of Why you should make a product add-on?
![Page 1: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/1.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Why you shouldmake a product add-on?
W o r d P r e s s K a t h m a n d u , N e p a l D e c e m b e r 2 0 1 6 M e e t u p
![Page 2: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/2.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Shiva Shanker BhattaT e a m L e a d a n d S r . W o r d P r e s s D e v e l o p e r
W e b E x p e r t s N e p a lw o r d p r e s s . o r g / s h i v a s h a n k e r b h a t t a
@ s w e e k a r s h a h n
![Page 3: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/3.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
What is add-on?
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
![Page 4: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/4.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Any third-party software program or script Added to a program that enhances the functionality
Giving it additional features and abilitiesUsually cannot be run independently
![Page 5: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/5.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Making iPhone Cover
iPhone 7 PlusHeight: 6.23 inches (158.2 mm)Width: 3.07 inches (77.9 mm)Depth:0.29 inch (7.3 mm)
iPhone 7Height: 5.44 inches (138.3 mm)Width: 2.64 inches (67.1 mm)Depth:0.28 inch (7.1 mm)
![Page 6: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/6.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
What should you know before making add-on?
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
![Page 7: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/7.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Know the Purpose of your add-on.Feasibility
![Page 8: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/8.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Don't Forget About Compatibility.
Compatibility
![Page 9: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/9.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
It Should be the "Sun" in Your Product "Universe".Capability
![Page 10: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/10.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Best Practices and Patterns
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
![Page 11: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/11.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Do your research If you didn't make it, don't edit it!
Learn to create child themes Learn to create site-specific plugins
For site builders
![Page 12: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/12.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Readability Reliability
Re-usability Flexibility
Extensibility
For coders
![Page 13: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/13.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Floating Minicart
What I have learned from making add-on of WooCommerce
![Page 14: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/14.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
•Nomenclature •Basic rules on making plugin: Add-on as a plugin what
information I should have to include.
![Page 15: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/15.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
•Check if WooCommerce is active •Splitting code snippets into backend module and frontend module.
![Page 16: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/16.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Better Management
![Page 17: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/17.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
•Distinct file.•Backend compatible script, styling and hook.•WooCommerce general setting hook structure. •Setting options and abilities based on WooCommerce Native
approaches.
Backend
![Page 18: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/18.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
•Definitely, Distinct file and compatible scripts.•What exactly WooCommerce minicart template includes?•Which WooCommerce hook is dealing with minicart.
Frontend
![Page 19: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/19.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
•Display minicart information wherever you want.“add_to_cart_fragments”
![Page 20: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/20.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
What is better than that?
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
![Page 21: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/21.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
It is better than writing all of above codes and clauses on functions.php.
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
![Page 22: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/22.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
In this case, its even better than including the snippet upon the theme folder.
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
![Page 23: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/23.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Easy to activate, deactivate, edit and migrate add-on functionality.
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
![Page 24: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/24.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Make it as yet another add-on.
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
![Page 25: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/25.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
It's your.
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
![Page 26: Why you should make a product add-on?](https://reader035.fdocuments.in/reader035/viewer/2022062522/58716fb21a28ab58758b73d1/html5/thumbnails/26.jpg)
Shiva Shanker Bhatta | @sweekarshahn | 25/12/2016
Thank you