Catégories
Web wpcb

Woocommerce

Bonsoir à tous,
Au vu du grand nombre de personnes me demandant des informations sur mes plugins pour woocommerce, les voici en téléchargement gratuit :

Pour sips atos : https://rationalk.ch/blog/wp-content/uploads/2013/04/woocommerce-gateway-atos1.zip

Pour cyberplus systempay : https://rationalk.ch/blog/wp-content/uploads/2013/04/woocommerce-gateway-systempay-cyberplus.zip

Ces deux plugins fonctionnaient très bien mais je ne les ai pas testés avec les mise à jour de woocommerce.

Attention, je ne fais aucun support ni par mail ni par téléphone. Donc si vous avez l’âme d’un débrouillard en php. C’est pour vous !

17 réponses sur « Woocommerce »

Hi,
I had a problem with woocommerce 2.0.5. Settings couldn’t be saved so I couldn’t activate the gateway.

Fixed it by replacing line 57 (in index.php):
add_action(‘woocommerce_update_options_payment_gateways’, array(&$this, ‘process_admin_options’));

with

add_action(‘woocommerce_update_options_payment_gateways_’ . $this->id, array( &$this, ‘process_admin_options’ ) );

Hope it helps someone.

This would handle all WOO versions

if ( version_compare( WOOCOMMERCE_VERSION, ‘2.0.0’, ‘>=’ ) ) {
add_action( ‘woocommerce_update_options_payment_gateways_’ . $this->id, array( &$this, ‘process_admin_options’ ) );
} else {
add_action( ‘woocommerce_update_options_payment_gateways’, array( &$this, ‘process_admin_options’ ) );
}

Hi Filip,
J’ai changé les lignes du code, mais ça ne sauvegarde toujours pas pour moi avec Woocommerce 2.0.12 🙁
Il faut encore changer des autres lignes, tu crois ? Merci pour ton aide.

Il faut aussi changer ligne 181:
$order = &new woocommerce_order($order_id);
par
$order = &new WC_order($order_id);

et ligne 195
$order = &new woocommerce_order($order_id);
par
$order = &new WC_order($order_id);

si ça peu aider

Il faut aussi changer ligne 181:
$order = &new woocommerce_order($order_id);
par
$order = &new WC_order($order_id);

et ligne 195
$order = &new woocommerce_order($order_id);
par
$order = &new WC_order($order_id);

si ça peu aider

Good afternoon

I currently run WordPress 3.5 in multisite and WooCommerce 2.0.19. I installed your Atos plugin and made the changes mentioned in the comments below but I am not able to make any changes to the setting panel.
Plus when I go on the system status and look at the line Woo Atos Gateway, it says version 1.0.0 – version 1.0.1 is available.

Could you tell me where can I find the version 1.0.1 which could answer my technical problem.

thanks

romain tordo

With WooCommerce 2.16 you have to replace also on line 182
return array(‘result’ => ‘success’, ‘redirect’ => add_query_arg(‘order’,$order->id, add_query_arg(‘key’, $order->order_key, get_permalink(get_option(‘woocommerce_pay_page_id’))))
with
return array(‘result’ => ‘success’,’redirect’ => $order->get_checkout_payment_url( true )

Hi, I have a problem. After fixing all lines in php code, it works but I debug mode is always active and I do not know how to deactivate it. Any ideas to do it?
You see this because you are in debug mode :

merchant_id=xxxxxxxxxxxx
merchant_country=fr
amount=1768
currency_code=978
pathfile=/chemin_du_pathfile
normal_return_url=http://xxxx
cancel_return_url=http://www.advanz.fr/mon-compte
automatic_response_url=http://xxx
language=fr
payment_means=CB,2,VISA,2,MASTERCARD,2,PAYLIB,2
header_flag=no
order_id=288
logo_id2=logo_id2.gif
advert=advert.gif
End of debug mode

Hi,
I’ve done all the steps but in my page appears {« result »: »failure », »messages »: » », »refresh »: »false », »reload »: »false »} when i’ve changed the line 182  »
return array(‘result’ => ‘success’, ‘redirect’ => add_query_arg(‘order’,$order->id, add_query_arg(‘key’, $order->order_key, get_permalink(get_option(‘woocommerce_pay_page_id’))))
with
return array(‘result’ => ‘success’,’redirect’ => $order->get_checkout_payment_url( true )

I have woocommerce 2.2.8 indeed.

To sum up, There is no redirection to the payment page.

Any help ?

Hi, i have trouble with the module and when i try to fix it with the tips done here i get errors. If somebody have this module which works, is it possible to post it or send me by mail please ?
fredajt@hotmail.fr
I work on the last wordpress and the last woocomerce

Bonjour, il semble qu’il y ai un bug récent au moment d’afficher les cartes de paiement avant le réglement final:
« Numéro de commande : 16221
Date : 2 avril 2016
Total : 25,00€
Méthode de paiement : Carte de crédit

Merci pour votre commande, merci de cliquer sur l’un des boutons ci-dessous.

Erreur de l’API Atos : Invalid Keyword in parameter (logo_id1=logo_id1.gif) »

Répondre à DBC Annuler la réponse

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *