Changeset 192356
- Timestamp:
- 01/10/2010 09:03:55 PM (16 years ago)
- Location:
- dpd-cart/trunk
- Files:
-
- 1 deleted
- 1 edited
- 7 copied
-
DPDCartApi.php (copied) (copied from dpd-cart/trunk/dpd-wpcart/DPDCartApi.php) (5 diffs)
-
LICENSE (copied) (copied from dpd-cart/trunk/dpd-wpcart/LICENSE)
-
buttons (copied) (copied from dpd-cart/trunk/dpd-wpcart/buttons)
-
dpd-cart.php (copied) (copied from dpd-cart/trunk/dpd-wpcart/dpd-wpcart.php) (1 diff)
-
dpd-product-ui.php (copied) (copied from dpd-cart/trunk/dpd-wpcart/dpd-product-ui.php) (1 diff)
-
dpd-wpcart (deleted)
-
readme.txt (modified) (5 diffs)
-
resources (copied) (copied from dpd-cart/trunk/dpd-wpcart/resources)
-
templates (copied) (copied from dpd-cart/trunk/dpd-wpcart/templates)
Legend:
- Unmodified
- Added
- Removed
-
dpd-cart/trunk/DPDCartApi.php
r174224 r192356 26 26 var $success = true; 27 27 28 publicfunction DPDCartApi($user, $key)28 function DPDCartApi($user, $key) 29 29 { 30 30 $this->user = $user; … … 32 32 } 33 33 34 publicfunction ping()34 function ping() 35 35 { 36 36 return $this->doApiRequest('', array(), 'GET'); 37 37 } 38 38 39 publicfunction getStorefronts()39 function getStorefronts() 40 40 { 41 41 $response = $this->doApiRequest('/storefront', array(), 'GET'); … … 43 43 } 44 44 45 publicfunction getProducts()45 function getProducts() 46 46 { 47 47 $response = $this->doApiRequest('/product', array(), 'GET'); … … 50 50 51 51 52 protectedfunction doApiRequest($action, $params, $method='POST')52 function doApiRequest($action, $params, $method='POST') 53 53 { 54 54 $this->success = false; … … 85 85 $raw = curl_exec($ch); 86 86 if($raw === false) 87 throw new Exception(curl_error($ch), null); 87 return false; 88 //throw new Exception(curl_error($ch), null); 88 89 89 90 $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); -
dpd-cart/trunk/dpd-cart.php
r174224 r192356 32 32 33 33 define("DPDCART_DEFAULT_BUTTON_STYLE", 'white-1'); 34 define("DPDCART_FOLDER", '/wp-content/plugins/dpd- wpcart'); // You shouldn't need to change this ;))34 define("DPDCART_FOLDER", '/wp-content/plugins/dpd-cart'); // You shouldn't need to change this ;)) 35 35 define("DPDCART_FULLFOLDER_URL", get_bloginfo('wpurl') . DPDCART_FOLDER); 36 36 37 37 class DPDCart 38 38 { 39 var $version = '1. 2.0';39 var $version = '1.3.0'; 40 40 var $api; 41 41 -
dpd-cart/trunk/dpd-product-ui.php
r174211 r192356 25 25 include_once(ABSPATH . '/wp-includes/version.php'); 26 26 require_once (ABSPATH . '/wp-admin/admin-functions.php'); 27 require_once('dpd- wpcart.php');27 require_once('dpd-cart.php'); 28 28 29 29 // Strip slashes and HTMLify all POST variables and store them in -
dpd-cart/trunk/readme.txt
r174224 r192356 1 1 === DPD-Cart eCommerce Plugin === 2 2 Contributors: DPDplugins 3 Tags: ecommerce, cart, widget 3 Tags: ecommerce, cart, widget, sell downloads 4 4 Requires at least: 2.8.0 5 Tested up to: 2. 8.45 Tested up to: 2.9.1 6 6 Stable tag: trunk 7 7 … … 31 31 == Installation == 32 32 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.33 1. 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. 34 34 1. Activate the plugin in your Wordpress admin. 35 35 1. 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. … … 66 66 == Changelog == 67 67 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 68 72 = 1.2 = 69 * php < 5.2 compatibility fix 73 * php < 5.2 compatibility fix. 70 74 71 75 = 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. 75 79 76 80 = 1.0 = 77 * Initial Public Release 81 * Initial Public Release. 78 82 79 83 … … 85 89 **Adding Custom Button Sets** 86 90 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:91 DPD-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: 88 92 89 93 Add-to-cart button displayed in posts/pages: 90 94 91 dpd- wpcart/buttons/MyCustomFolder/atc.png95 dpd-cart/buttons/MyCustomFolder/atc.png 92 96 93 97 View Cart / Checkout button displayed in sidebar widget: 94 98 95 dpd- wpcart/buttons/MyCustomFolder/viewcart.png99 dpd-cart/buttons/MyCustomFolder/viewcart.png 96 100 97 101 … where /MyCustomFolder/ is the name of your custom button set. … … 103 107 The 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. 104 108 105 The template is located in your dpd- wpcart plugin folder here:109 The template is located in your dpd-cart plugin folder here: 106 110 107 /wp-content/plugins/dpd- wpcart/templates/cart-widget.php111 /wp-content/plugins/dpd-cart/templates/cart-widget.php 108 112 109 113 You 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.