Changeset 3407078
- Timestamp:
- 12/01/2025 05:13:17 PM (3 months ago)
- Location:
- easy-cart/trunk
- Files:
-
- 2 edited
-
plugin.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-cart/trunk/plugin.php
r2972425 r3407078 3 3 * Plugin Name: Easy Cart 4 4 * Plugin URI: https://www.zdatatech.com/portfolio/plugins/easy-cart 5 * Description: A simple shopping cart using shortcodes. You des ginate 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.5 * Description: A simple shopping cart using shortcodes. You designate 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 6 * Version: 1.8 7 7 * Requires at least: 5.3 8 * Tested up to: 6. 38 * Tested up to: 6.9 9 9 * Requires PHP: 5.6 10 10 * Author: Zeshan B -
easy-cart/trunk/readme.txt
r2972425 r3407078 3 3 Tags: Shopping Cart, Transient Storage, Sessions, shortcode 4 4 Requires at least: 5.3 5 Tested up to: 6. 35 Tested up to: 6.9 6 6 Requires PHP: 8.0 7 7 Stable tag: 1.8 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 A simple shopping cart using shortcodes. You designate a page with slug /cart and add [easy_cart/] shortcode 11 11 12 12 === Description === … … 18 18 Create add to cart buttons using [add_to_cart /] shortcodes on other posts or pages of your WordPress site. 19 19 20 To display cart: 21 ``` 22 [easy_cart /] 23 24 ``` 25 26 To display empty cart link on cart page: 27 ``` 28 [empty_cart /] 29 30 ``` 31 20 32 Use the following attributes to define your add_to_cart products: 21 33 … … 26 38 1. price 27 39 28 Here is a example usage of add_to_cart shortcode using all the attributes. Be sure to use single quotes:40 Here is a example usage of add_to_cart shortcode using all the attributes. Use quotes around text but not numbers: 29 41 30 [add_to_cart itemid='your-item-id' product_name='Your product name' product_desc='description of your product.' product_qty=1 price=1.00 /] 42 [add_to_cart itemid=your-item-id product_name="Your product name" product_desc="description of your product." product_qty=1 price=1.00 /] 43 44 ``` 45 [add_to_cart itemid=1111 product_name="Your product name" product_desc="description of your product." product_qty=1 price=1.25 /] 46 47 ``` 31 48 32 49 You can have as many add_to_cart shortcodes as you like, in posts and pages.
Note: See TracChangeset
for help on using the changeset viewer.