Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Getting Paypal to list individual items sold.


Recommended Posts

Please can someone help with updating the code within the paypal,php so that one can send individual items, amounts and prices to paypal. See code below. Any tips would be greatful! Need to know how to write the php to pull the items from the cart and send to paypal? is it $products etc?






$process_button_string = tep_draw_hidden_field('cmd', '_xclick') .


tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) .


tep_draw_hidden_field('item_name', [WHAT TO PUT HERE]) .


tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) .


tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) .


tep_draw_hidden_field('currency_code', $my_currency) .


tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) .


tep_draw_hidden_field('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));



Seriously bugging on this one...HELP!!!! >_<



Link to comment
Share on other sites



Thanks. I'm going to give that a whirl...









Try this link:

Paypal Ad variables


These instructions allow you to pass the name, price, order id, ect. so it doesn't come up as (your store name)

Though it does not pass a total price into the payment total within paypal.


That is what I can't figure out.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...