Changeset 2580040
- Timestamp:
- 08/08/2021 09:56:22 PM (5 years ago)
- Location:
- easy-cart
- Files:
-
- 2 added
- 2 edited
-
assets/screenshot-6.png (added)
-
assets/screenshot-7.png (added)
-
trunk/plugin.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-cart/trunk/plugin.php
r2488042 r2580040 4 4 * Plugin URI: https://www.zdatatech.com/portfolio/plugins/easy-cart 5 5 * Description: A simple 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] shortcodes in other places on your wordpress site. This also serves as a example on using transient storage instead of sessions. 6 * Version: 1. 06 * Version: 1.1 7 7 * Requires at least: 5.3 8 8 * Requires PHP: 5.6 … … 258 258 $product_qty = sanitize_text_field($product_qty); 259 259 $price = sanitize_text_field($price); 260 $site_fullurl = site_url(); 260 261 261 262 //create a form but that sends get request to /cart page 262 $output = '<form name="'.$itemid.'" action=" /cart/" method="POST">';263 $output = '<form name="'.$itemid.'" action="'.$site_fullurl.'/cart/" method="POST">'; 263 264 264 265 //editing name property to other then $itemid require modification of array_key_first in add_item_to_cart() … … 278 279 function ectp_empty_cart(){ 279 280 280 $output = '<a href="?EmptyCart=yes"> ClearCart</a>';281 $output = '<a href="?EmptyCart=yes">Empty Cart</a>'; 281 282 282 283 return $output; -
easy-cart/trunk/readme.txt
r2492268 r2580040 4 4 Tags: Shopping Cart, Transient Storage, Sessions, shortcode 5 5 Requires at least: 5.3 6 Tested up to: 5. 76 Tested up to: 5.8 7 7 Requires PHP: 8.0 8 8 Stable tag: 1.0 … … 15 15 A simple shopping cart using shortcodes. 16 16 17 Create a page with slug /cart. Then edit the cart page and add [easy_cart /] and [empty_cart /] shortcodes.17 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. 18 18 19 19 Create add to cart buttons using [add_to_cart /] shortcodes on other posts or pages of your WordPress site. … … 47 47 1. On other posts or pages add [add_to_cart /] shortcodes 48 48 49 == Changelog == 49 == Changelog == 50 51 = 1.1 = 52 * Add to cart buttons support full site url. Support for easy cart usage in subfolder wordpress installations. 50 53 51 54 = 1.0 = 52 53 55 * List items and display total. Use shortcode to create add to cart buttons and display cart 54 56 55 57 == Upgrade Notice == 56 58 59 = 1.1 = 60 * Add to cart buttons support full site url. Support for easy cart usage in subfolder wordpress installations. 61 57 62 = 1.0 = 58 59 * List items and display total. Use shortcode to create add to cart buttons and display cart 63 * List items and display total. Use shortcode to create add to cart buttons and display cart 60 64 61 65 … … 90 94 4. Cart page displays and totals the items selected using add to cart button. 91 95 5. This is the JSON error in the editor you can simply ignore. 96 6. Use shortcode blocks to create cart page. 97 7. Minimum permalink setting uses post name for the cart to function properly 92 98 93 99
Note: See TracChangeset
for help on using the changeset viewer.