Posted: March 13, 2018 at 9:18 am
Hi, i wonder if it is possible to add a dropdown for an additional fee for postal. We ship the tickets and i can not add any fields. Hard to explain. For example.: The customer want to buy a ticket or another scenario for 2 tickets: Thank you in advance |
|
Hi there, This is possible where you can add a question to the registration form, then add some PHP code to map the answers to that question to add a conditional fee for shipping. There’s some example PHP code in the custom code library: The code from the example can be adapted by a PHP programmer and added to a functions plugin. |
|
hello Josh and thank you for your reply. I have the Dropdown and i can chose between printing myself and shipping but if i chose shipping there is no fee added to the ticketprice. In the code it says 2.50 for ship. I did not change anything and first i wanted to try with no changes just to see if it works. Would be grat if you can give me a hint. Cheers |
|
Hi there, The snippet Josh linked to will not work out of the box and will always require modification for it to function on any site, did you change line 13 to use the ID of your dropdown question? |
|
Hi, Yes i did change the ID from 13 to 12 like shown in the browser. I followed the instructions but no success. |
|
Can you link me to an event you have this set up on so I can take a look? |
|
Sure Thank you |
|
May I ask was the code added into its own plugin, and is the plugin activated on the WP > Plugins page? |
|
Hi, |
|
Is the plugin activated on the WP > Plugins page? |
|
Okay, it wasnt activated. But now after trying to activate i get following error: Parse error: syntax error, unexpected ‘*’, expecting end of file in /homepages/7/d466324795/htdocs/web/wp-content/plugins/boatevent/event_functions.php on line 7 |
|
Can you either add all of your plugins code to PasteBin or create Gist and post the URL to either one here so we can view the code, please? |
|
Sure |
|
Looks like a copy → paste error. You’ll need to remove lines 7 and 8. |
|
IT IS WORKING. THANK YOU VERY MUCH FOR YOUR SUPPORT. |
|
The support post ‘Fee for shipping’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.