Jump to content

PayPal Subscription Name Change


Recommended Posts

Hello,

 

I need to change PayPal Subscription name.

 

This is what need to be done:

 

Change the current format of the PayPal subscription name...

 

from:

Company Name - Invoice #

 

to:

Company Name - Product Name

 

This was the guidance I received from the support:

 

So looking over the module, you would need to adjust the description portion of the paypal.php module file:

 

$code.='<input type="hidden" name="item_name" value="'.$params['description'].'">

 

This exact code is in the onetime and recurring subscription portions of the code.

 

What you are seeing from your screenshot is what is dumped from the $params['description'] portion in that code line.

 

However, we do not pass product information over in the params global variable, so you will need to query the database to grab the tblinvoiceitems line item description and pass this into the line I mentioned above which will then show on the Paypal page.

 

How do I call the database and retrieve the tblinvoiceitems, then insert it correctly into value="" field?

 

 

Thank you in advance.

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.

Guest
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated