Plugin Directory

Changeset 2580040


Ignore:
Timestamp:
08/08/2021 09:56:22 PM (5 years ago)
Author:
zeshanb
Message:

Tested up to 5.8, support for subfolder installations, and added screenshots

Location:
easy-cart
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • easy-cart/trunk/plugin.php

    r2488042 r2580040  
    44 * Plugin URI:        https://www.zdatatech.com/portfolio/plugins/easy-cart
    55 * 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.0
     6 * Version:           1.1
    77 * Requires at least: 5.3
    88 * Requires PHP:      5.6
     
    258258    $product_qty  = sanitize_text_field($product_qty);
    259259    $price = sanitize_text_field($price);
     260    $site_fullurl = site_url();
    260261   
    261262    //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">';
    263264   
    264265    //editing name property to other then $itemid require modification of array_key_first in add_item_to_cart()
     
    278279 function ectp_empty_cart(){
    279280     
    280      $output = '<a href="?EmptyCart=yes">Clear Cart</a>';
     281     $output = '<a href="?EmptyCart=yes">Empty Cart</a>';
    281282     
    282283     return $output;
  • easy-cart/trunk/readme.txt

    r2492268 r2580040  
    44Tags: Shopping Cart, Transient Storage, Sessions, shortcode
    55Requires at least: 5.3
    6 Tested up to: 5.7
     6Tested up to: 5.8
    77Requires PHP: 8.0
    88Stable tag: 1.0
     
    1515A simple shopping cart using shortcodes.
    1616
    17 Create a page with slug /cart. Then edit the cart page and add [easy_cart /] and [empty_cart /] shortcodes.
     17Be 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.
    1818
    1919Create add to cart buttons using [add_to_cart /] shortcodes on other posts or pages of your WordPress site.
     
    47471. On other posts or pages add [add_to_cart /] shortcodes
    4848
    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.
    5053 
    5154= 1.0 =
    52 
    5355* List items and display total. Use shortcode to create add to cart buttons and display cart
    5456
    5557== Upgrade Notice ==
    5658
     59= 1.1 =
     60* Add to cart buttons support full site url. Support for easy cart usage in subfolder wordpress installations.
     61
    5762= 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
    6064
    6165 
     
    90944. Cart page displays and totals the items selected using add to cart button.
    91955. This is the JSON error in the editor you can simply ignore.
     966. Use shortcode blocks to create cart page.
     977. Minimum permalink setting uses post name for the cart to function properly
    9298 
    9399 
Note: See TracChangeset for help on using the changeset viewer.