Plugin Directory

Changeset 192356


Ignore:
Timestamp:
01/10/2010 09:03:55 PM (16 years ago)
Author:
DPDplugins
Message:

version 1.3:

  • Removed dpd-wpcart directory. Installation now only requires copying the dpd-cart directory into your plugins directory.
  • Added php 4.3 compatibility.
Location:
dpd-cart/trunk
Files:
1 deleted
1 edited
7 copied

Legend:

Unmodified
Added
Removed
  • dpd-cart/trunk/DPDCartApi.php

    r174224 r192356  
    2626  var $success = true;
    2727 
    28   public function DPDCartApi($user, $key)
     28  function DPDCartApi($user, $key)
    2929  {
    3030    $this->user = $user;
     
    3232  }
    3333 
    34   public function ping()
     34  function ping()
    3535  {
    3636    return $this->doApiRequest('', array(), 'GET');
    3737  }
    3838 
    39   public function getStorefronts()
     39  function getStorefronts()
    4040  {
    4141    $response = $this->doApiRequest('/storefront', array(), 'GET');
     
    4343  }
    4444 
    45   public function getProducts()
     45  function getProducts()
    4646  {
    4747    $response = $this->doApiRequest('/product', array(), 'GET');
     
    5050 
    5151 
    52   protected function doApiRequest($action, $params, $method='POST')
     52  function doApiRequest($action, $params, $method='POST')
    5353  {
    5454    $this->success = false;
     
    8585    $raw = curl_exec($ch);
    8686    if($raw === false)
    87       throw new Exception(curl_error($ch), null);
     87      return false;
     88      //throw new Exception(curl_error($ch), null);
    8889     
    8990    $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  • dpd-cart/trunk/dpd-cart.php

    r174224 r192356  
    3232
    3333define("DPDCART_DEFAULT_BUTTON_STYLE", 'white-1');
    34 define("DPDCART_FOLDER", '/wp-content/plugins/dpd-wpcart'); // You shouldn't need to change this ;))
     34define("DPDCART_FOLDER", '/wp-content/plugins/dpd-cart'); // You shouldn't need to change this ;))
    3535define("DPDCART_FULLFOLDER_URL", get_bloginfo('wpurl') . DPDCART_FOLDER);
    3636
    3737class DPDCart
    3838{
    39   var $version = '1.2.0';
     39  var $version = '1.3.0';
    4040  var $api;
    4141 
  • dpd-cart/trunk/dpd-product-ui.php

    r174211 r192356  
    2525include_once(ABSPATH . '/wp-includes/version.php');
    2626require_once (ABSPATH . '/wp-admin/admin-functions.php');
    27 require_once('dpd-wpcart.php');
     27require_once('dpd-cart.php');
    2828
    2929// Strip slashes and HTMLify all POST variables and store them in
  • dpd-cart/trunk/readme.txt

    r174224 r192356  
    11=== DPD-Cart eCommerce Plugin ===
    22Contributors: DPDplugins
    3 Tags: ecommerce, cart, widget
     3Tags: ecommerce, cart, widget, sell downloads
    44Requires at least: 2.8.0
    5 Tested up to: 2.8.4
     5Tested up to: 2.9.1
    66Stable tag: trunk
    77
     
    3131== Installation ==
    3232
    33 1. Copy the entire dpd-wpcart directory to your /wp-content/plugins directory. Do not change the directory name or copy individual files- you must copy the entire directory to your /wp-content/plugins/ directory for the DPD-Cart plugin to work properly.
     331. Copy the entire dpd-cart directory to your /wp-content/plugins directory. Do not change the directory name or copy individual files- you must copy the entire directory to your /wp-content/plugins/ directory for the DPD-Cart plugin to work properly.  The correct path for the plugin is /wp-content/plugins/dpd-cart.
    34341. Activate the plugin in your Wordpress admin.
    35351. Go to the DPD-Cart configuration page under Plugins and enter your DPD username and API key. Your DPD username and API key can be found by logging in to DPD and then going to “Profile Options” under the “Profile” menu on the dashboard.
     
    6666== Changelog ==
    6767
     68= 1.3 =
     69* Removed dpd-wpcart directory.  Installation now only requires copying the dpd-cart directory into your plugins directory.
     70* Added php 4.3 compatibility.
     71
    6872= 1.2 =
    69 * php < 5.2 compatibility fix
     73* php < 5.2 compatibility fix.
    7074
    7175= 1.1 =
    72 * IE6 compatibility fixes
    73 * Button image URL fix
    74 * Added more button sets
     76* IE6 compatibility fixes.
     77* Button image URL fix.
     78* Added more button sets.
    7579
    7680= 1.0 =
    77 * Initial Public Release
     81* Initial Public Release.
    7882
    7983
     
    8589**Adding Custom Button Sets**
    8690
    87 DPD-Cart automatically looks in the dpd-wpcart/buttons folder for button sets. To add your own custom button set simply create a new folder in the /buttons folder that contains two image files with the following names:
     91DPD-Cart automatically looks in the dpd-cart/buttons folder for button sets. To add your own custom button set simply create a new folder in the /buttons folder that contains two image files with the following names:
    8892
    8993Add-to-cart button displayed in posts/pages:
    9094
    91     dpd-wpcart/buttons/MyCustomFolder/atc.png
     95    dpd-cart/buttons/MyCustomFolder/atc.png
    9296
    9397View Cart / Checkout button displayed in sidebar widget:
    9498
    95     dpd-wpcart/buttons/MyCustomFolder/viewcart.png
     99    dpd-cart/buttons/MyCustomFolder/viewcart.png
    96100
    97101… where /MyCustomFolder/ is the name of your custom button set.
     
    103107The DPD-Cart sidebar widget uses a simple template that you can customize to include additional information to be displayed along with the View Cart / Checkout button on each page.
    104108
    105 The template is located in your dpd-wpcart plugin folder here:
     109The template is located in your dpd-cart plugin folder here:
    106110
    107     /wp-content/plugins/dpd-wpcart/templates/cart-widget.php
     111    /wp-content/plugins/dpd-cart/templates/cart-widget.php
    108112
    109113You can add custom content such as text or images above and below the the DPD-Cart code in the widget template to display on your site.
Note: See TracChangeset for help on using the changeset viewer.