How do you pass item desc to pAypal

  • Posts: 18
  • Thank you received: 0
12 years 1 month ago #66892

Love the cart. Almost ready to launch but noticed when an item is purchase with PayPal pro via credit card that only customer details sent over. We need the item desc sent as well how do we do this? Using business edition

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
12 years 1 month ago #66904

Hi,

I think that you'll have to directly edit the code of the Paypal pro payment plugin through your file "'Your Hikashop'\plugins\hikashoppayment".

Hope this will help you.

Please Log in or Create an account to join the conversation.

  • Posts: 18
  • Thank you received: 0
12 years 1 month ago #66947

Hi Mohamed - Im able to find the files- but its way over my ability to decifer the variables assigned from hika to paypal.

Anyone else modify these files to do this?

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #67104

Hi,

The paypal pro plugin also send the products name/code/price/quantity/tax to paypal automatically, not only the user details.

If you want to add the beginning (127 first chars) of the description of the product in paypal, you would have to add the code:
$class = hikashop_get('class.product');
$prod = $class->get($product->product_id);
$vars["L_DESC".$i]=substr(strip_tags($prod->product_description),0,127);

after the line:
$vars["L_NUMBER".$i]=$product->order_product_code;

of the paypalpro.php file.

Please Log in or Create an account to join the conversation.

  • Posts: 18
  • Thank you received: 0
12 years 1 month ago #67129

THANK YOU! Perfect answer - I suggest making that a must add for the plugin for all. Perfect! Works.

Please Log in or Create an account to join the conversation.

  • Posts: 18
  • Thank you received: 0
12 years 1 month ago #67205

hi nicolas - thought it worked sorry -

What payapal shows for the desc is

Description:
(NAME) has just sent you $(amount) USD with PayPal

Would like it to just be
Description:
(ITEM NAME)

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #67206

You can't control that from the shopping cart.

Please Log in or Create an account to join the conversation.

  • Posts: 18
  • Thank you received: 0
12 years 1 month ago #67208

Sorry meant that we want to show shopping cart contents in paypal - as paypal does if you make a paypal button:
Shopping Cart Contents
Qty Item Price
1 ITEM NAME $49.99 USD
Amount $49.99 USD

right now if someone chooses pay bu paypal and then abandons the cart at the paypal screen and goes back to the main cart and uses a credit card - hikashop shows 2 orders created (because that is what happened), this added layer of customer service research could be avoided if we just go to paypal to pick up all orders or the abandoned paypal order doesnt show up.

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #67487

If you want to hide the cancelled orders on the orders listing of the user control panel, you can edit the file "listing" of the view "order" of the front end via the menu Display>Views, and add the line:
if($row->order_status=='cancelled') continue;

after the line:
$row =& $this->rows[$i];

Please Log in or Create an account to join the conversation.

Time to create page: 0.081 seconds
Powered by Kunena Forum