Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: PayPal - Bezahllink in Bestellbestätigung

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.200
    • Geschlecht:
    PayPal - Bezahllink in Bestellbestätigung
    Antwort #15 am: 04. Juni 2010, 10:41:26
    Ja, genau so ist das gedacht. ;-)

    Grüße

    Torsten

    Managed Server

    chris030

    • Neu im Forum
    • Beiträge: 32
    PayPal - Bezahllink in Bestellbestätigung
    Antwort #16 am: 05. Juni 2010, 11:16:47
    Super, hab das Teil mal eingebaut! Läuft wunderbar  :thumbs:

    dully007

    • Frisch an Board
    • Beiträge: 53
    PayPal - Bezahllink in Bestellbestätigung
    Antwort #17 am: 05. Juni 2010, 14:44:25
    Moin Jungs,
    verstehe ich

    [...] dass dies wohl mit Version 1.04 kommen wird.
    [...]

    [...]
    das neue/alte IPN-Modul wird in modified eCommerce Shopsoftware verfügbar sein, was spätestens zum 11.06. veröffentlicht wird. ;-)
    [...]

    richtig, dass die Version 1.04 bis zum 11.06. veröffentlicht wird, oder nur einzelne Module?

    LG Andreas

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.200
    • Geschlecht:
    PayPal - Bezahllink in Bestellbestätigung
    Antwort #18 am: 06. Juni 2010, 10:41:30
    Ja, das war bisher so gedacht. ;-)

    Grüße

    Torsten

    dully007

    • Frisch an Board
    • Beiträge: 53
    PayPal - Bezahllink in Bestellbestätigung
    Antwort #19 am: 07. Juni 2010, 08:28:22
    Hi Torsten,

    Ja, das war bisher so gedacht. ;-)
    [...]

    OK, dann warte ich mit der Umstellung des Shops nochmal bis nach dem Wochenende.

    LG Andreas

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.200
    • Geschlecht:
    Re: PayPal - Bezahllink in Bestellbestätigung
    Antwort #20 am: 24. Juni 2014, 10:28:02
    So, nach langem Gebastel habe ich jetzt meinen Link in der Bestellbestätigung hin bekommen.

    Code: PHP  [Auswählen]
    <a href="https://www.paypal.com/de/cgi-bin/webscr?cmd=_xclick&business=<eigene_eMail>&item_name=Bestellnummer: {$oID}&amount=$order_total_values.VALUE|number_format:2:'.':''}&currency_code=EUR&no_shipping=1">PayPal Bezahl-Link</a>

    Einfach nur <eigene_eMail> ersetzten gegen die bei PayPal registrierte eMail... ohne <> natürlich :)
    [...]

    Da ich das Thema interessant finde, habe ich mich da auch mal ran gesetzt... Deine Umsetzung wird so nicht funktionieren. Abgesehen vom Klammer-Fehler stimmt da noch einiges nicht. ;-)

    Versucht es mal wie folgt:

    In Datei "/send_order.php" suchen:

    Code: PHP  [Auswählen]
      $smarty->assign('PHONE',$order->customer['telephone']);

    Danach einfügen:

    Code: PHP  [Auswählen]
      $smarty->assign('STORE_NAME', STORE_NAME);
      $smarty->assign('EMAIL_BILLING_ADDRESS', EMAIL_BILLING_ADDRESS);

      //$shipping = round($order_total['shipping'], $xtPrice->get_decimal_places($order->info['currency'])); //The cost of shipping this item. If you specify shipping  and shipping2 is not defined, this flat amount is charged regardless of the quantity of items purchased.
      //$amount = round($order_total['total'], $xtPrice->get_decimal_places($order->info['currency'])); //The price or amount of the product, service, or contribution, not including shipping, handling, or tax.

      $total_value = $xtPrice->xtcFormat($order_total['total'], false);
      //$smarty->assign('PAYPAL_VALUE', $total_value);

      $shipping_value = $xtPrice->xtcFormat($order_total['shipping'], false);
      $smarty->assign('PAYPAL_SHIPPING', $shipping_value);

      $paypal_amount = $total_value - $shipping_value;
      $smarty->assign('PAYPAL_AMOUNT', $paypal_amount);

    Datei "/templates/<template-name>/mail/<sprache>/order_mail.txt" an gewünschter Stelle erweitern um:

    Code: PHP  [Auswählen]
    https://www.paypal.com/de/cgi-bin/webscr?cmd=_xclick&business={$EMAIL_BILLING_ADDRESS}&item_name={$STORE_NAME}{$oID}&item_number={$oID}&amount={$PAYPAL_AMOUNT|number_format:2:'.':''}&currency_code=EUR&no_shipping=0&shipping={$PAYPAL_SHIPPING|number_format:2:'.':''}

    Datei "/templates/<template-name>/mail/<sprache>/order_mail.html" an gewünschter Stelle erweitern um:

    Code: PHP  [Auswählen]
    <a href="https://www.paypal.com/de/cgi-bin/webscr?cmd=_xclick&business={$EMAIL_BILLING_ADDRESS}&item_name={$STORE_NAME}{$oID}&item_number={$oID}&amount={$PAYPAL_AMOUNT|number_format:2:'.':''}&currency_code=EUR&no_shipping=0&shipping={$PAYPAL_SHIPPING|number_format:2:'.':''}">PayPal Bezahl-Link</a>

    Ist auch erstmal nur ein Ansatz, der zur Mitarbeit anregen soll. ;-)

    Grüße

    Torsten
    Templateshop - Eine große Auswahl an neuen und modernen Templates für die modified eCommerce Shopsoftware
               
    anything