E-Commerce Content Management


Published on

Learn how to manage e-commerce/product content in ProdigyView's built in content management system.

Published in: Technology, News & Politics
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

E-Commerce Content Management

  1. 1. E-commerce/Product Content Management
  2. 2. OverviewObjectiveLearn how to manipulate product content of ProdigyView’sbuilt-in content management system.Requirements Installed version of ProdigyView with a database Understanding of base contentEstimated Time10 minutes www.prodigyview.com
  3. 3. Follow Along With Code Example1. Download a copy of the example code at www.prodigyview.com/source.2. Install the system in an environment you feel comfortable testing in.3. Proceed to examples/content/ProductContentExample.php www.prodigyview.com
  4. 4. What Is Product Content?Product content is content in the cms designed to facilitatedata that involves e-commerce or listing of inventory.Examples of what product content can be used for arethose listed below and other examples your imagination canthink of.  Clothing Store  Movies  Food Store  Calendars  Restaurant Menu  etc www.prodigyview.com
  5. 5. Extends Base ContentLike the other content types, product content extendsbase content. This means it has all the fields that basecontent has in addition to the fields that describes aproduct. Product Content Fields Base Content Fields www.prodigyview.com
  6. 6. Create Product Content Product content is relatively easy to create. In an array, passed defined fields into PVContent::createProductContent method. 1. Define the content that will be stored as product content3. Return content id 2. Pass the array to PVContent::createProductContent
  7. 7. Database ViewRemember that the product content utilizes both the basecontent and product content fields. This is accomplished byjoining two tables. Your two tables in the database should looksomething like below. Base Content Database View Product Content Database View
  8. 8. Product Content FieldsThe previous slide only showed afew fields that can be set whendefining product content. Thecomplete list of fields that apply onlyto the product content type is:
  9. 9. Search for Product Content Using the syntax from the PV Standard Search Query, we can search for content related to a product on fields for both base content and product content. 1. Search based on the passed arguments 2. Pass args into getProductContentList() method3. Returns an array of arrays thatcontains the list of product content www.prodigyview.com
  10. 10. Iterate Through The ListNext we can iterate through the list of product content tosee the data we just added.1. Iterate through the fields for base content 2. With the automatic joining of the tables, product content fields are also returned www.prodigyview.com
  11. 11. Retrieving Product ContentProduct content can also be retrieved directly using thecontent id. The data associated with that product id willbe returned in array. 1. Pass in the content id2. Content is returned in an array4. Get the values of the array by 3. Or get the content id through thespecifying the associated index content’s alias www.prodigyview.com
  12. 12. Updating Product ContentThe array that contains the information for a product can also beused for updating the product. Simply change a value at an indexin the array and pass it to PVContent::updateProductContent()method. Remember the content_id variable is required. 1. Set a new value for the product color 2. Pass the array back to update www.prodigyview.com
  13. 13. Deleting Event ContentThe last action to take place is deleting the productcontent. To delete content, we pass the content id intoPVContent::deleteContent method.All the content types(audio, video, event, etc) use thePVContent::deleteContent method. www.prodigyview.com
  14. 14. Review1. Create product content by passing an array of arguments into PVContent::createProductContent()2. PVContent::createProductContent() will return the id of the newly generated product content3. Search for event content by using the syntax from PV Standard Search Query and passing those arguments into PVContent::getProductContentList()4. Update content by passing an array of accepted fields in PVContent::updateProductContent(). The content_id must be present for this method to work.5. Delete product content by passing the content_id into PVContent::deleteContent(). www.prodigyview.com
  15. 15. API ReferenceFor a better understanding of base content, visit the apiby clicking on the link below.PVContent More TutorialsFor more tutorials, please visit:http://www.prodigyview.com/tutorials www.prodigyview.com