paaubert

Utilisateur open source
  • Compteur de contenus

    6
  • Inscrit(e) le

  • Dernière visite


Réputation sur la communauté

0 Neutral

À propos de paaubert

  • Rang
    Nouveau

Activité de paaubert

  1. paaubert a ajouté un message dans un sujet  Problème bouton Paypal "acheter maintenant"   



    Super, ça fonctionne nickel, merci encore pour votre précieuse aide.

    Amicalement

    Pierre-André
    • 0
  2. paaubert a ajouté un message dans un sujet  Problème bouton Paypal "acheter maintenant"   

    Bonjour,
    Heu, en fait non, car je ne suis pas très doué en php :wacko: et je n'ai pas vraiment trouvé ou la mettre.

    Merci pour votre patience.
    • 0
  3. paaubert a ajouté un message dans un sujet  Problème bouton Paypal "acheter maintenant"   


    Merci pour la réponse,
    J'ai essayé avec un include mais ça ne fonctionne pas mieux, car sitôt que je clique sur un lien de la boutique, je sort de mon site.
    <?php include("boutique/index.php"); ?>
    • 0
  4. paaubert a ajouté un message dans un sujet  Problème bouton Paypal "acheter maintenant"   


    Merci beaucoup, ça ouvre bien une autre fenêtre, mais pas la page paypal. En fait ça me met comme lien http://www.laplancharde.ch/boutique/undefined

    J'ai remplacer ici ?

    function getPaypalForm($order_id, $lang, $amount, $currency_code, $user_email, $payment_times = 1, $sTexteLibre = '', $user_id, $prenom_ship, $nom_ship, $adresse_ship, $zip_ship, $ville_ship, $pays_ship, $telephone_ship, $prenom_bill = null, $nom_bill = null, $adresse_bill = null, $zip_bill = null, $ville_bill = null, $pays_bill = null, $telephone_bill = null)
    {
    if (PAYPAL_SANDBOX) {
    $url = 'https://www.sandbox.paypal.com/cgi-bin/webscr';
    } else {
    $url = 'https://www.paypal.com/cgi-bin/webscr';
    }
    // <input type="hidden" name="no_shipping" value="1" />
    $form = '
    <form id="paypalForm" action="' . $url . '" method="post">
    <input type="hidden" name="charset" value="' . GENERAL_ENCODING . '">
    <input type="hidden" name="cmd" value="_ext-enter" />
    <input type="hidden" name="redirect_cmd" value="_xclick" />
    <input type="hidden" name="business" value="' . String::str_form_value(vb($GLOBALS['site_parameters']['email_paypal'])) . '" />
    <input type="hidden" name="item_name" value="' . String::str_form_value($GLOBALS['site'] . ' COMMANDE ' . $order_id) . '" />
    <input type="hidden" name="item_number" value="' . intval($order_id) . '" />
    <input type="hidden" name="amount" value="' . number_format($amount, 2) . '" />
    <input type="hidden" name="page_style" value="Primary" />
    <input type="hidden" name="first_name" value="' . String::str_form_value(str_replace(array("\n", "\r", "\r\n"), "", $prenom_ship)) . '" />
    <input type="hidden" name="last_name" value="' . String::str_form_value(str_replace(array("\n", "\r", "\r\n"), "", $nom_ship)) . '" />
    <input type="hidden" name="address1" value="' . String::str_form_value(String::substr(str_replace(array("\n", "\r", "\r\n"), "", $adresse_ship), 0, 100)) . '" />
    <input type="hidden" name="address2" value="' . String::str_form_value(String::substr(str_replace(array("\n", "\r", "\r\n"), "", $adresse_ship), 100, 100)) . '" />
    <input type="hidden" name="zip" value="' . String::str_form_value(str_replace(array("\n", "\r", "\r\n"), "", $zip_ship)) . '" />
    <input type="hidden" name="city" value="' . String::str_form_value(str_replace(array("\n", "\r", "\r\n"), "", $ville_ship)) . '" />
    <input type="hidden" name="country" value="' . String::str_form_value(String::strtoupper(String::substr(get_country_iso_2_letter_code(trim($pays_ship)), 0, 2))) . '" />
    ' . ($prenom_bill !== null?'<input type="hidden" name="billing_first_name" value="' . String::str_form_value(str_replace(array("\n", "\r", "\r\n"), "", $prenom_bill)) . '" />':'') . '
    ' . ($nom_bill !== null?'<input type="hidden" name="billing_last_name" value="' . String::str_form_value(str_replace(array("\n", "\r", "\r\n"), "", $nom_bill)) . '" />':'') . '
    ' . ($adresse_bill !== null?'<input type="hidden" name="billing_address1" value="' . String::str_form_value(String::substr(str_replace(array("\n", "\r", "\r\n"), "", $adresse_bill), 0, 100)) . '" />':'') . '
    ' . ($adresse_bill !== null?'<input type="hidden" name="billing_address2" value="' . String::str_form_value(String::substr(str_replace(array("\n", "\r", "\r\n"), "", $adresse_bill), 100, 100)) . '" />':'') . '
    ' . ($zip_bill !== null?'<input type="hidden" name="billing_zip" value="' . String::str_form_value(str_replace(array("\n", "\r", "\r\n"), "", $zip_bill)) . '" />':'') . '
    ' . ($ville_bill !== null?'<input type="hidden" name="billing_city" value="' . String::str_form_value(str_replace(array("\n", "\r", "\r\n"), "", $ville_bill)) . '" />':'') . '
    ' . ($pays_bill !== null?'<input type="hidden" name="billing_country" value="' . String::str_form_value(String::strtoupper(String::substr(get_country_iso_2_letter_code(trim($pays_bill)), 0, 2))) . '" />':'') . '
    <input type="hidden" name="return" value="' . String::str_form_value($GLOBALS['wwwroot'] . '/modules/paypal/ok.php?id=' . $order_id) . '" />
    <input type="hidden" name="cancel_return" value="' . String::str_form_value($GLOBALS['wwwroot'] . '/modules/paypal/nok.php?id=' . $order_id) . '" />
    <input type="hidden" name="notify_url" value="' . String::str_form_value($GLOBALS['wwwroot'] . '/modules/paypal/ipn.php') . '" />
    <input type="hidden" name="no_note" value="1" />
    <input type="hidden" name="currency_code" value="' . String::str_form_value($currency_code) . '" />
    <input type="hidden" name="lc" value="' . String::str_form_value(strtoupper($lang)) . '" />
    <input type="hidden" name="email" value="' . String::str_form_value($user_email) . '" />
    <input type="image" src="' . String::str_form_value(PAYPAL_BOUTON) . '" border="0" name="submit" alt="' . String::str_form_value(PAYPAL_BUTTON_ALT) . '" onclick="return(window.open(this.href)?false:true);" />

    J'ai pas fait juste ?

    A+
    • 0
  5. paaubert a ajouté un message dans un sujet  Problème bouton Paypal "acheter maintenant"   


    Merci pour la réponse paulanna,

    Je sais ouvrir un lien dans une nouvelle fenêtre, mais je ne sais pas sur quel fichier il faut modifier le lien.

    Je suppose qu'il s'agit du fichier paypal/fonction.php

    if (PAYPAL_SANDBOX) {
    $url = 'https://www.sandbox.paypal.com/cgi-bin/webscr';
    } else {
    $url = 'https://www.paypal.com/cgi-bin/webscr';
    }
    // <input type="hidden" name="no_shipping" value="1" />
    $form = '
    <form id="paypalForm" action="' . $url . '" method="post">

    il faudrait que le bouton post s'ouvre sur une nouvelle fenêtre, mais je ne sais pas comment.

    Merci
    • 0
  6. paaubert a ajouté un sujet dans PEEL SHOPPING : logiciel open source de boutique en ligne   

    Problème bouton Paypal "acheter maintenant"
    Bonjour,

    Tout d'abord félicitation pour ce script vraiment super bien fait et facile à mattre en oeuvre.

    J'ai juste un problème, je veux insérer la boutique dans un site existant, je l'ai insérée avec un Iframe, tout fonctionne bien, sauf au momment de payer avec le bouton "acheter maintenant" de paypal, rien ne souvre dans l'Iframe, Est-il possible que le bouton ouvre la page Paypal dans un autre onglet du navigateur ?



    Résultat



    Merci et meilleures salutations.
    • 10 réponses
    • 3 292 vues

Twitter Advisto ecommerce

Facebook PEEL Shopping