Posted: June 30, 2013 at 4:05 am
|
My client offers two delivery options for bought tickets: You can either get them at arrival or they can be shipped via mail. I know how I can add an additional question in the plugin, but is there a way to add additional shipping costs to the total price depending on the delivery option? |
|
Hi Joel, You may want to try the pre release add on Price Modifier. It uses questions to modify the overall price of the ticket. However it does not at this time work alongside Multiple Event Registration add on. |
|
Thanks for your answer. I have two delivery options, the first modifies the price, the second doesn’t. Unfortunately, the free option isn’t displayed. I tried this: None of those work. Is there a solution or is it a bug? |
|
Hi, This is the correct format: Selbstabholung|0.00,Postversand|8.00 It is expected behaviour for just one price to appear. Adding a price modifier of zero doesnt modify the price so it ignores it. As soon as you make the price modifier a penny/cent or more then it will affect the price. |
|
I think it should still show in the dropmenu. |
|
Because I want to give two options without making one of them the default. There might also be two free options and one with a fee, which would also be impossible. |
|
Hi Joel, I will certainly add this as a feature request, but currently it isnt possible with the default add on without making some changes to the code, which could be a total re-write of the add on. As I say though I will certainly add this to the feature request list. |
|
Great, thanks. Unfortunately, I notice now that the amount isn’t added to the total price on the confirmation page. |
|
Hi, I am not seeing that issue on my test server, do you have an example page on your site I can look at please? |
|
Here. You can choose any event. The checkbox at the end of the form is supposed to add 8 euros, yet it doesn’t show on the confirmation page. |
|
Hi Thanks for the link, that clarifies the issue. The Seating chart pricing over rules other pricing options. It seems the price modifier doesnt affect the seating chart. I’ll raise a ticket and see if we can get that resolved. |
|
Thanks. I’ve edited the plugin files to solve this problem. |
|
Okay, I thought I fixed it, but I didn’t. In the database entry of the primary attendee, final_price is modified correctly, while total_cost stays unchanged. In EE_Price_Modifier.class.php the final_price is updated with the following lines: <code>$SQL = 'UPDATE '. EVENTS_ATTENDEE_TABLE .' SET final_price = final_price ' . $plus_or_minus . ' %f where id = %d'; if ( ! $wpdb->query( $wpdb->prepare( $SQL, $price_mod, $attendee_id ))) { $success = FALSE; }</code> I added code to update the total price likewise, but it didn’t work. I don’t know where the total price is generated and updated, can you please help me with this? |
|
Here’s the code again. <pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”>$SQL = 'UPDATE '. EVENTS_ATTENDEE_TABLE .' SET final_price = final_price ' . $plus_or_minus . ' %f where id = %d'; |
|
Last try. Sorry. <pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”>$SQL = 'UPDATE '. EVENTS_ATTENDEE_TABLE .' SET final_price = final_price ' . $plus_or_minus . ' %f where id = %d'; |
|
In the confirmation page template, it’s using $display_cost. It’s getting that from includes/process-registration/payment_page.php line 183. The $total_cost it uses there is getting overwritten by the seating chart add-on up on line 124. What you might want to do is update the seating chart seat purchase price where you are updating the final_price now. |
|
Thanks for your help, it works. |
The support post ‘Delivery options and shipping costs’ 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.