{"id":137245,"date":"2021-03-05T17:20:32","date_gmt":"2021-03-05T17:20:32","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/easy-cart\/"},"modified":"2025-12-01T17:13:17","modified_gmt":"2025-12-01T17:13:17","slug":"easy-cart","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/easy-cart\/","author":15662038,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.8","stable_tag":"trunk","tested":"6.9.4","requires":"5.3","requires_php":"5.6","requires_plugins":null,"header_name":"Easy Cart","header_author":"Zeshan B","header_description":"A simply shopping cart using shortcodes. You desginate a page with slug \/cart and add  [easy_cart\/] shortcode to the \/cart page and post [add_to_cart] short codes in other places on your wordpress site. This also serves as a example on using transient storage.","assets_banners_color":"","last_updated":"2025-12-01 17:13:17","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.zdatatech.com\/portfolio\/plugins\/easy-cart","header_author_uri":"https:\/\/www.zdatatech.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1179,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.2":"<ul>\n<li>Added output buffer to support shortcode content appearance where shortcode is placed using editor.<\/li>\n<\/ul>","1.1":"<ul>\n<li>Add to cart buttons support full site url. Support for easy cart usage in subfolder wordpress installations.<\/li>\n<\/ul>","1.0":"<ul>\n<li>List items and display total. Use shortcode to create add to cart buttons and display cart<\/li>\n<\/ul>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2492268,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2492412,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.PNG":{"filename":"screenshot-1.PNG","revision":2488042,"resolution":"1","location":"assets","locale":""},"screenshot-2.PNG":{"filename":"screenshot-2.PNG","revision":2488042,"resolution":"2","location":"assets","locale":""},"screenshot-3.PNG":{"filename":"screenshot-3.PNG","revision":2488042,"resolution":"3","location":"assets","locale":""},"screenshot-4.PNG":{"filename":"screenshot-4.PNG","revision":2488042,"resolution":"4","location":"assets","locale":""},"screenshot-5.PNG":{"filename":"screenshot-5.PNG","revision":2488042,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":2580040,"resolution":"6","location":"assets","locale":""},"screenshot-7.png":{"filename":"screenshot-7.png","revision":2580040,"resolution":"7","location":"assets","locale":""},"screenshot-8.png":{"filename":"screenshot-8.png","revision":2580042,"resolution":"8","location":"assets","locale":""},"screenshot-9.png":{"filename":"screenshot-9.png","revision":2972320,"resolution":"9","location":"assets","locale":""}},"screenshots":{"1":"After activating the plugin create a page with name (also known as slug) cart and add [easy_cart \/] and [empty_cart \/] shortcodes.","2":"On other pages you can create add to cart buttons using [add_to_cart \/] shortcodes using the following attributes - itemid, product_name, product_desc, product_qty.","3":"Add to cart button takes on the button styling from your Wordpress theme.\\","4":"Cart page displays and totals the items selected using add to cart button.","5":"This is the JSON error in the editor you can simply ignore.","6":"Use shortcode blocks and column block to create cart page slug.","7":"Minimum permalink setting uses post name for the cart to function properly","8":"Add to cart buttons using shortcode blocks. Notice there are no quote marks used for product_qty and price.","9":"Using Gutenberg shortcode"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[30471,3045,80,197006],"plugin_category":[43],"plugin_contributors":[146630],"plugin_business_model":[],"class_list":["post-137245","plugin","type-plugin","status-publish","hentry","plugin_tags-sessions","plugin_tags-shopping-cart","plugin_tags-shortcode","plugin_tags-transient-storage","plugin_category-customization","plugin_contributors-zeshanb","plugin_committers-zeshanb"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/easy-cart\/assets\/icon-128x128.png?rev=2492268","icon_2x":"https:\/\/ps.w.org\/easy-cart\/assets\/icon-256x256.png?rev=2492412","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/easy-cart\/assets\/screenshot-1.PNG?rev=2488042","caption":"After activating the plugin create a page with name (also known as slug) cart and add [easy_cart \/] and [empty_cart \/] shortcodes."},{"src":"https:\/\/ps.w.org\/easy-cart\/assets\/screenshot-2.PNG?rev=2488042","caption":"On other pages you can create add to cart buttons using [add_to_cart \/] shortcodes using the following attributes - itemid, product_name, product_desc, product_qty."},{"src":"https:\/\/ps.w.org\/easy-cart\/assets\/screenshot-3.PNG?rev=2488042","caption":"Add to cart button takes on the button styling from your Wordpress theme.\\"},{"src":"https:\/\/ps.w.org\/easy-cart\/assets\/screenshot-4.PNG?rev=2488042","caption":"Cart page displays and totals the items selected using add to cart button."},{"src":"https:\/\/ps.w.org\/easy-cart\/assets\/screenshot-5.PNG?rev=2488042","caption":"This is the JSON error in the editor you can simply ignore."},{"src":"https:\/\/ps.w.org\/easy-cart\/assets\/screenshot-6.png?rev=2580040","caption":"Use shortcode blocks and column block to create cart page slug."},{"src":"https:\/\/ps.w.org\/easy-cart\/assets\/screenshot-7.png?rev=2580040","caption":"Minimum permalink setting uses post name for the cart to function properly"},{"src":"https:\/\/ps.w.org\/easy-cart\/assets\/screenshot-8.png?rev=2580042","caption":"Add to cart buttons using shortcode blocks. Notice there are no quote marks used for product_qty and price."},{"src":"https:\/\/ps.w.org\/easy-cart\/assets\/screenshot-9.png?rev=2972320","caption":"Using Gutenberg shortcode"}],"raw_content":"<!--section=description-->\n<p>A simple shopping cart using shortcodes.<\/p>\n\n<p>Be sure your permalinks in Wordpress settings supports slug urls e.g. your-domain.tld\/slug. Once you have proper permalink setting, Create a page with slug \/cart. Then edit the cart page and add [easy_cart \/] and [empty_cart \/] shortcodes.<\/p>\n\n<p>Create add to cart buttons using [add_to_cart \/] shortcodes on other posts or pages of your WordPress site.<\/p>\n\n<p>To display cart:\n    `\n[easy_cart \/]<\/p>\n\n<pre><code>`\n<\/code><\/pre>\n\n<p>To display empty cart link on cart page:\n    `\n[empty_cart \/]<\/p>\n\n<pre><code>`\n<\/code><\/pre>\n\n<p>Use the following attributes to define your add_to_cart products:<\/p>\n\n<ol>\n<li>itemid<\/li>\n<li>product_name<\/li>\n<li>product_desc<\/li>\n<li>product_qty<\/li>\n<li>price<\/li>\n<\/ol>\n\n<p>Here is a example usage of add_to_cart shortcode using all the attributes. Use quotes around text but not numbers:<\/p>\n\n<p>[add_to_cart itemid=your-item-id product_name=\"Your product name\" product_desc=\"description of your product.\" product_qty=1 price=1.00 \/]<\/p>\n\n<pre><code>`\n<\/code><\/pre>\n\n<p>[add_to_cart itemid=1111 product_name=\"Your product name\" product_desc=\"description of your product.\" product_qty=1 price=1.25 \/]<\/p>\n\n<pre><code>`\n<\/code><\/pre>\n\n<p>You can have as many add_to_cart shortcodes as you like, in posts and pages.<\/p>\n\n<p>Shopping cart allows you to store items and calculate total but doesn't allow you to checkout. At least not yet as of version 1.2.<\/p>\n\n<p>[youtube https:\/\/youtu.be\/dN5QkERCRuo]<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Unzip the plugin archive into plugins directory<\/li>\n<li>Login to Wordpress admin dashboard<\/li>\n<li>Mouse over plugins on left dashboard menu and click installed plugins<\/li>\n<li>Click Activiate under \"Easy Cart\"<\/li>\n<li>Click Permalinks under settings and select postname or custom configure to allow for page slug in URL<\/li>\n<li>Create a page with slug \"cart\" in Wordpress Admin<\/li>\n<li>Edit cart page and add shortcode [easy_cart \/] and [empty_cart \/]<\/li>\n<li>On other posts or pages add [add_to_cart \/] shortcodes<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='there%20is%20no%20checkout%3F'><h3>There is no checkout?<\/h3><\/dt>\n<dd><p>sorry, not at the moment. Easy Cart is GPLv2 and the code is self explanitory.<\/p><\/dd>\n<dt id='why%20is%20there%20a%20json%20error%20notification%20when%20i%20add%20%5Beasy_cart%20%2F%5D%20shortcode%20on%20cart%20page%3F'><h3>Why is there a JSON error notification when I add [easy_cart \/] shortcode on cart page?<\/h3><\/dt>\n<dd><p>You can ignore JSON error. When testing your add to cart button be sure to close the browser window entirely and open a new browser window. This will create a new session. You can also click on clear cart link. When testing your add to cart buttons also remember to monitor easy-cart cookie by pressing [shift] + [F9] on Firefox browser.<\/p><\/dd>\n<dt id='what%20about%20templates%3F'><h3>What about templates?<\/h3><\/dt>\n<dd><p>Use standard WordPress templates. You can create a wordpress page template for the cart display e.g \"pagetemplate-cart.php\". Even the cart uses basic html table tags to display items and the item list table may be stylized to your desire.<\/p><\/dd>\n<dt id='what%20about%20the%20use%20of%20cookie%3F'><h3>What about the use of cookie?<\/h3><\/dt>\n<dd><p>You can add the following text to your sites privacy policy:\nThis site uses \"easy-cart\" cookie to allow this site to temporarily store and display your item selections. The sites database auto garbage collects and deletes your selection after sixty minutes.<\/p><\/dd>\n<dt id='how%20can%20i%20create%20my%20own%20checkout%3F'><h3>How can I create my own checkout?<\/h3><\/dt>\n<dd><p>In a pagetemplate-cart.php file in your wordpress you may do as you wish with the total amount and the post requests. Use the results and pass to a checkout slug, pagetemplate-checkout.php. Have fun!<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.8<\/h4>\n\n<ul>\n<li>Registered shortcodes as block patterns<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Attributes itemid, product_name, product_desc required single quotes<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Added output buffer to support shortcode content appearance where shortcode is placed using editor.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Add to cart buttons support full site url. Support for easy cart usage in subfolder wordpress installations. <\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>List items and display total. Use shortcode to create add to cart buttons and display cart<\/li>\n<\/ul>","raw_excerpt":"A simple shopping cart using shortcodes. You designate a page with slug \/cart and add  [easy_cart\/] shortcode","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/137245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=137245"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/zeshanb"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=137245"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=137245"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=137245"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=137245"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=137245"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=137245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}