SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Oct 2009
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PayPal Button in Drupal

    Hi,

    I need to find a way to give a user friendly option to my client to be able to add PayPal buttons in their site but not by having to insert raw HTML code, they are very scared of that, please, any ideas are very welcome, thanks a lot!

  2. #2
    SitePoint Addict
    Join Date
    Mar 2010
    Location
    UK
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would recommend that you create a block with the HTML in it, but that seems so obvious a suggestion that I am half expecting you to tell me why this is not an option in this instance. There are modules available to give more options for the placement of blocks if you need the button to appear in different regions on different pages.

  3. #3
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,182
    Mentioned
    17 Post(s)
    Tagged
    4 Thread(s)
    The ideal option that comes to mind for that would be using the commerce module to create a store. Once the commerce store is set-up the client would be able to create products and user-users would be able to pay for them through Paypal. The other option would be a custom field that can be added to an entity. It all depends on the amount flexibility required. Writing a module to supply a custom field to do this might be less work than putting together a commerce package. I'm not very familiar with the HTML Paypal button snippets but it seems like it could be done using a multiple value field.
    The only code I hate more than my own is everyone else's.

  4. #4
    SitePoint Wizard bronze trophy
    Join Date
    Oct 2001
    Location
    Vancouver BC Canada
    Posts
    2,032
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Off the top of my head, I would create a "product" content type, add custom fields for the various bits of data required by the PayPal button form and then probably use Views to list out the products with a global text field where I would assemble the form for each product.

    I haven't tried that but it stands to reason that it should work.
    Andrew Wasson | www.lunadesign.org
    Principal / Internet Development


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •