<![CDATA[ Shopkeeper - Placeholders - Paypal - My Forums]]> https://forums.modx.com/thread/?thread=95115 <![CDATA[Shopkeeper - Placeholders - Paypal]]> https://forums.modx.com/thread/95115/shopkeeper---placeholders---paypal#dis-post-515040
I'm working with Shopkeeper and trying to connect it to Paypal using a snippet and a hook to send the info.

I need to send the total price and other placeholders but I don't know exactly how.

I have the shop call in the page:
[[!Shopkeeper@custom? &propertySetName=`custom` &noJQuery= `1` & LinkAllow = `0` &Lang=`english` ]]

Everything works perfect, but if I try to display the total price in any other area in the page I can't.
I'm trying using the placeholder [[+total_price]] doesn't work, and move the shopkeeper data to the snippet is not working at all.

can anyone please tell me how to move the info?

Thank you very much!!!]]>
Ysanmiguel Nov 17, 2014, 07:00 PM https://forums.modx.com/thread/95115/shopkeeper---placeholders---paypal#dis-post-515040
<![CDATA[Re: Shopkeeper - Placeholders - Paypal]]> https://forums.modx.com/thread/95115/shopkeeper---placeholders---paypal#dis-post-515199
Thank you!!!]]>
Ysanmiguel Nov 19, 2014, 06:32 AM https://forums.modx.com/thread/95115/shopkeeper---placeholders---paypal#dis-post-515199
<![CDATA[Re: Shopkeeper - Placeholders - Paypal]]> https://forums.modx.com/thread/95115/shopkeeper---placeholders---paypal#dis-post-515089
https://github.com/phpfour/php-payment

and this:

    $order_id = $_SESSION [ 'shk_order_id' ]; 
    $fields [ 'payment' ]  = $_SESSION [ 'shk_payment_method' ]; 
    $price = $_SESSION [ 'shk_order_price' ]; 
    $currency = $_SESSION [ 'shk_currency' ]; 
    $userId = $_SESSION [ 'shk_order_user_id' ];


any advice?

thank you!!!]]>
Ysanmiguel Nov 18, 2014, 06:06 AM https://forums.modx.com/thread/95115/shopkeeper---placeholders---paypal#dis-post-515089
<![CDATA[Re: Shopkeeper - Placeholders - Paypal]]> https://forums.modx.com/thread/95115/shopkeeper---placeholders---paypal#dis-post-515085

I'm following the instructions in shopkeeper documentation, they have this example to move the info using php.

<? Php
$ Data = array (
    'ID' => '123456'
    'Totalcount' => '200'
    'ReturnUrl' => 'http://mysite.com/return.html'
);

$modx->sendRedirect("http://payment-operator.com?ID={$data['ID']}&totalcount={$data['totalcount']}&returnUrl={$data['returnUrl']}");


With paypal should be similar, but I'm not sure how to call this info: [[+shk.price_total]], [[+shk.items_total]], [[+shk.currency]] insithe the snippet, once I know that I can continue doing the paypal connection.]]>
Ysanmiguel Nov 18, 2014, 05:23 AM https://forums.modx.com/thread/95115/shopkeeper---placeholders---paypal#dis-post-515085
<![CDATA[Re: Shopkeeper - Placeholders - Paypal]]> https://forums.modx.com/thread/95115/shopkeeper---placeholders---paypal#dis-post-515084 sottwell Nov 18, 2014, 05:15 AM https://forums.modx.com/thread/95115/shopkeeper---placeholders---paypal#dis-post-515084 <![CDATA[Re: Shopkeeper - Placeholders - Paypal]]> https://forums.modx.com/thread/95115/shopkeeper---placeholders---paypal#dis-post-515082
[[+shk.price_total]] - The total price of the order.

[[+shk.items_total]] - The number of items in the cart.

[[+shk.items_unique_total]] - The number of items in the cart unikalnyz.

[[+shk.currency]] - Currency.

This are the placeholders to show the info in the page...


Now what is the structure to show this in the snippet to send that info to paypal?]]>
Ysanmiguel Nov 18, 2014, 05:10 AM https://forums.modx.com/thread/95115/shopkeeper---placeholders---paypal#dis-post-515082