New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Paypal item_name help
Hello Everyone.
Am searching in internet since 3-4 hours and cant find a solution. Thats why am asking for help the community.
How to get the Website title in the Paypal checkout page when I click the button:
Here is the code that should be changed:
input type="hidden" name="item_name" value="Here should be the website title" "
I have tested this one:
input type="hidden" name="item_name" value="<?php the_title();?>
But without success!
Thank you for your help!
Comments
thank you man but is not working
here is the full button code am using: http://pastebin.com/raw.php?i=zYeSzk22
That code is for a Wordpress blog. You're using this inside a Wordpress template, right?
No no, am using it into a html template.
Then neither your code not my code will work. Out of my head, 2 options:
input type="hidden" name="item_name" value="Hardcode the Title Here"
andor use this code:http://pastebin.com/jrbPDZ33
Am getting blank item name when I use your code.
Is that output being echoed, you may need the word echo before, otherwise it won't echo the output into something that the HTML can read.
http://pastebin.com/GG1wnPxP