paypal button linked to the author

More
5 years 2 months ago #77177 by 2CPRESTA
Hello,

Is it possible to include a paypal button, that would have as parameters the e-mail account from author + price to pay ?

How can i do that ? Thanks

i'd like the author to enter paypal datas in his profile
Price would be a classic flexicontent field.

Thanks for your help.

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #77178 by ggppdk
Hello

1. create a text field

2. hide it in item form (via field configuration),
and set a default value for the field, and configure the default value to be "used instead of empty"

3. create a custom layout
(make a copy of /flexicontent_fields/text/tmpl/value_default.php)
value_paypal.php)
4. select the new layout in field configuration inside the viewing TAB

5. customize the PHP code of the layout
e.g. you can use
Code:
$item->createdby
Code:
$item->fields['FIELDNAME']->value
etc


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #77180 by 2CPRESTA
Wow , so fast ! Thanks

I will try ..; i'm not such a good developer as you... for sure i will come back to you.

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago - 5 years 2 months ago #77181 by ggppdk
Hello

i can give you code on how to get email of author (email of Joomla user account)
but how will you get the price ? to use for the URL ?

Is the price inside a field of current flexicontent item ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 5 years 2 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #77182 by 2CPRESTA
Each item would be a course, so the price would be entered in a flexicontent field.

You mean it is possible to custom paypal link ?
Thanks

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #77186 by micker
hello you can di it more easly without too much code
set s a default value for the field, and configure the default value to be "used instead of empty"
use prefix and suffix of value
prefix
Code:
<a href="THELINKFORMAT+USERVARIABLE
suffix
[code]" >Pay via paypal</a>
that it ...
you just need to decompose paypal menu link and adapt to you case

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.428 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline