Changeset 591480
- Timestamp:
- 08/28/2012 06:59:13 PM (14 years ago)
- Location:
- wpcb/trunk
- Files:
-
- 3 edited
-
atos.merchant.php (modified) (1 diff)
-
index.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpcb/trunk/atos.merchant.php
r591065 r591480 30 30 } 31 31 else {// Affiche les icônes des cartes bancaires : 32 wp_redirect(site_url('?action=securepayment&gateway=atos&sessionid='.$sessionid)); 32 33 if ((array_key_exists('mode_shortcode', $options)) && ($options['mode_shortcode'])){ 34 // Trouver la page où le shortcode [wpcb] se situe. Bug si plusieurs fois le shortcode [wpcb], à résoudre todo 35 $wpcb_checkout_page=$wpdb->get_row("SELECT ID FROM $wpdb->posts WHERE `post_content` LIKE '%[wpcb]%' AND `post_status`='publish'"); 36 wp_redirect(site_url('?p='.$wpcb_checkout_page->ID.'&sessionid='.$sessionid.'&action=CB')); 37 } 38 else { 39 wp_redirect(site_url('?action=securepayment&gateway=atos&sessionid='.$sessionid)); 40 } 33 41 } 34 42 } -
wpcb/trunk/index.php
r591110 r591480 5 5 Plugin URI: http://wpcb.fr 6 6 Description: Plugin de paiement par CB, paypal, ... et de calcul de frais de port (WP e-Commerce requis) 7 Version: 2.4. 27 Version: 2.4.3 8 8 Author: 6WWW 9 9 Author URI: http://6www.net … … 924 924 add_settings_field('mode_debugatos','Mode Debug Atos','wpcb_mode_debugatos_callback','wpcb_dev','dev_settings_section'); 925 925 add_settings_field('mode_test','Mode Test','wpcb_mode_test_callback','wpcb_dev','dev_settings_section'); 926 add_settings_field('mode_shortcode','Utilisez la page avec le shortcode [wpcb]','wpcb_mode_shortcode_callback','wpcb_dev','dev_settings_section'); 926 927 register_setting('wpcb_dev','wpcb_dev',''); 927 928 } // end wpcb_intialize_atos_options … … 1010 1011 $html = '<input type="checkbox" id="mode_test" name="wpcb_dev[mode_test]" value="1" ' . checked(1, $options['mode_test'], false) . '/>'; 1011 1012 $html .= '<label for="mode_test"> ' . $args[0] . '</label>'; 1013 echo $html; 1014 } 1015 function wpcb_mode_shortcode_callback($args){ 1016 $options = get_option( 'wpcb_dev'); 1017 $html = '<input type="checkbox" id="mode_shortcode" name="wpcb_dev[mode_shortcode]" value="1" ' . checked(1, $options['mode_shortcode'], false) . '/>'; 1018 $html .= '<label for="mode_shortcode"> ' . $args[0] . '</label>'; 1012 1019 echo $html; 1013 1020 } … … 1907 1914 1908 1915 function wpcb_display_payment_icon_page_content($content) { 1916 $wpcb_atos = get_option ( 'wpcb_atos' ); 1917 $message=$content; 1909 1918 global $wpdb, $purchase_log, $wpsc_cart; 1910 if ($_GET['action'] == 'securepayment') { 1911 $wpcb_atos = get_option ( 'wpcb_atos' ); 1919 if ($_GET['action'] == 'securepayment') { 1912 1920 $message.=$wpcb_atos['display_before_creditcardlogo'].'<br/>'; 1913 1921 $sessionid=$_GET['sessionid']; … … 2048 2056 } 2049 2057 } 2050 else {2051 $message=$content;2052 }2053 2058 return $message; 2054 2059 } -
wpcb/trunk/readme.txt
r591110 r591480 6 6 Requires at least: 2.7 7 7 Tested up to: 3.4.1 8 Stable tag: 2.4. 28 Stable tag: 2.4.3 9 9 10 10 Paiement par cartes bancaires (majoritée des banques françaises), paypal, chèques et virement pour le plugin WP e-Commerce. … … 235 235 236 236 = 2.4.3 = 237 238 * Il est à nouveau possible d'utiliser le shortcode wpcb 239 240 = 2.4.2 = 237 241 238 242 * Bug corrigé, affiche toujours un text erroné
Note: See TracChangeset
for help on using the changeset viewer.