#1469 new
peters@slx-online.biz

PayPal buttons / form tags

Reported by peters@slx-online.biz | August 15th, 2022 @ 12:30 PM | in User issues

Hi Dave. Is there any way I can put PayPal button form tags into a text module. I have built our shop page with code snippets, but I'd like to simplify if possible for the shop support guy. See https://www.britishtrolley.org.uk/2-6-0/ShopProductsTB . I have tried adding the PayPal form code to a text module but it just screws it up. Thanks. Peter.

Comments and changes to this ticket

  • peters@slx-online.biz

    peters@slx-online.biz August 15th, 2022 @ 12:33 PM

    I looked at the Forms modules but that doesn't seem like the right solution.

  • dleffler

    dleffler August 15th, 2022 @ 12:34 PM

    • Milestone set to User issues

    Think of it as a 'feature' to prevent editors from embedding malicious code into a text module. When saving a text module item it is scrubbed for any possible code. You're stuck with using a Code Snippet module, but maybe if you select one of the Snippet Editors on the Site Configuration Content Management tab (Ace Editor, or Code Mirror), it might help a little (line numbers, syntax coloring, etc...)

  • dleffler

    dleffler August 15th, 2022 @ 12:35 PM

    BTW, if I don't get too distracted this week, I have v2.7.0 w/ Bootstrap 5 all but ready to release.

  • peters@slx-online.biz

    peters@slx-online.biz August 15th, 2022 @ 01:35 PM

    Thanks! Timing sounds good. We're hoping to go live this weekend, so latest level would be great!

    I'm guessing I need to update the live site to the same level then copy themes, files and config across to go live? I already put the graphics inboth Files folders so I don't have to port the links straight away.

  • dleffler

    dleffler August 15th, 2022 @ 02:30 PM

    I believe a PayPal button is a snippet of code which is partly HTML and partly Javascript with external src

  • peters@slx-online.biz
  • peters@slx-online.biz

    peters@slx-online.biz August 15th, 2022 @ 03:39 PM

    I pasted the code but your system removed it. I'll try and explain.

    It is within form tags with action post to a URL. There are two type hidden naming the button and specifying the value of the button in their system. Then there's an input type image for the button.

    I'll have to do a line-by-line tutorial for the shopkeeper. :-)

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Bug Tracker for Exponent CMS

Shared Ticket Bins

Pages