• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: payment discount code

payment discount code 9 years 2 months ago #34209

  • adambako
  • adambako's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
hi,
im using payment plugin in my form to order online services. also i use paypal payment..

what im looking for is a field for customers so they can get a discount.. just simple field where they put a code and total price will change..

dont you plan this feature? or its possible get this some way right now??

thanks a lot
The administrator has disabled public write access.

payment discount code 9 years 2 months ago #34244

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
This is not a default functionality of RSForm!Pro PayPal Plugin. Due to the components' flexibility, it can be achieved through custom scripting.

Basically, you can alter the PayPal parameters depending on the output of your form. Example:
if ($_POST['form']['form_field_name'] == 'discount_code'){
  $paypal = RSFormProPayPal::getInstance();
  $paypal->args['discount_rate'] = 50;
}

Note that the above is an example and should be treated as is.

For your scenario to be feasible, you need to create an array of discount codes ( the array can be created manually or taken from a database, it would be pref. to be taken from the database so you can remove the codes that were already used) and check if the field value exists in it.

I would recommend taking a look at our PHP Scripting documentation articles:

www.rsjoomla.com/support/documentation/r...ted/php-scripts.html

and search the forums through various php scripting examples.
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.

payment discount code 9 years 2 months ago #34245

  • adambako
  • adambako's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
hi,

thanks a lot for your answer.. im start getting the picture..

just for you understand more what i need you can check the form here - www.registrujeme.sk/online-objednavka.html

first 3 fields are services. and im displaying the total price... thats what i need to change as well (displayed price)

my idea is-
create text field under total price field.. and small button to check code.. if code exist total price change..

and at the end of the form i use payment methods - paypal and bank transfer as well.

so do you think that there is a way to get this? (not just paypal plugin)

thanks you a lot..
The administrator has disabled public write access.

payment discount code 7 years 4 months ago #37683

  • danieljtamayo
  • danieljtamayo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 1
Cosmin.Cristea:


Question: any chance you would allow me to pay you to create a discount code script on one of the forms on my joomla website that checks a database for a specific code and once that code is used eliminates it?

I am using stripe.
I would be happy to pay you to:
write and place the script on the form
and
create the database
and
connect the form to the database to validate (I don't know if this is the actual process)
Last Edit: 7 years 4 months ago by danieljtamayo.
The administrator has disabled public write access.
The following user(s) said Thank You: bryan53b
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!