×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Calculated price not right from backend booking

Calculated price not right from backend booking 11 years 9 months ago #19204

  • Dirk Smit
  • Dirk Smit's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
When I'm making a booking for customers in de backend that's no problem.
An email confirmation is sent to the customer with the calculation of the reservated places.
That's the same as a booking from the frontend.
There is a problem with the calculated price. From the frontend the costs are calculated and is mentioned in the email confirmation.
When the booking is done from the backend, the calculated price is 0 (zero). So it's not calculated when the booking is done from the backend.
What can be done to solve that problem?

Calculated price not right from backend booking 11 years 9 months ago #19205

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hi Dirk,

just took a look at the code again, in the backend the fee calculation line is missing. This will be fixed with the next version.

If you are in are in a hurry you could easily fix it yourself by editing administrator/components/com_matukio/controllers/bookings.php after line 258 you have to add the following code:

if (!empty($event->fees)) {
                $neu->payment_method = $payment_method;
 
                if($nrbooked > 0)
                    $neu->payment_brutto = $event->fees * $nrbooked;
                else
                    $neu->payment_brutto = $event->fees;
}

Best regards,

Yves

Calculated price not right from backend booking 11 years 9 months ago #19207

  • Dirk Smit
  • Dirk Smit's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
Thanks Yves! That works.

But there is one problem left: the couponcode for discount is not calculated in the price.

Calculated price not right from backend booking 11 years 9 months ago #19208

  • Dirk Smit
  • Dirk Smit's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
The couponcode for discount is also not calculated in the price which is shown in the frontend for customers (my bookings).

Calculated price not right from backend booking 11 years 9 months ago #19209

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Aye you are right, this needs to be added there also, going to fix this with the next version.

Best regards,

Yves

Calculated price not right from backend booking 11 years 9 months ago #19210

  • Dirk Smit
  • Dirk Smit's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
The discount of the couponcode has to be calculated in the confirmation email as it is when bookings are made from the frontend. It doesn't matter if the booking is from frontend (that works) or from backend. Actually it's the price the customer has to pay. So is it important to mention the right price in the email.

The price mentioned in 'my bookings' can be discussed. When you're writing in the description text above the items that all prices are excluded discount (as I did) than it's not a problem. When it was shown to me the first time, I expected a price included the discount (the price I had to pay).

Calculated price not right from backend booking 11 years 9 months ago #19341

  • Rafael
  • Rafael's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 148
  • Thank you received: 0
Den Fehler mit den 0 Euro musste ich heute leider auch feststellen - sehr ärgerlich wenn man zig Leute anmeldet und diese nun 0 Euro in Ihrer E-Mail stehen haben darf man denen hitnerher telefonieren.

Also das System ist teilweise noch sehr verbuggt - sollte eher beta Version heißen!

Calculated price not right from backend booking 11 years 9 months ago #19342

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Das stand extra in den Release Notes.. das war nur eine Notlösung weil sich einige Leute auf die schnelle ein Feature wünschten um leute manuell anzumelden.. Zum anderen schreibt man nicht einfach in englisch-sprachigen Threads auf deutsch.. Und weiter oben steht ein Fix.

Yves

Calculated price not right from backend booking 11 years 9 months ago #19343

  • Rafael
  • Rafael's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 148
  • Thank you received: 0
Ok then I write in english: I did not read the release notes - I will do that.

I do not recommend to implement unfinished, bug filled features in a software. It should work 100% or should not be integrated. Just my opinion.

Calculated price not right from backend booking 11 years 9 months ago #19344

  • Rafael
  • Rafael's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 148
  • Thank you received: 0
Sorry, where can I find the release notes? In Downloads/Matukio I just find:

"+ Added Joomla plugin events (onValidateBooking, onBeforeSaveBooking, onAfterBooking etc.)
# Bugfix in contact participants form
# Fixed some small bugs in the backend"

Calculated price not right from backend booking 11 years 9 months ago #19345

  • Rafael
  • Rafael's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 148
  • Thank you received: 0

Yves Hoppe wrote: Hi Dirk,

just took a look at the code again, in the backend the fee calculation line is missing. This will be fixed with the next version.

If you are in are in a hurry you could easily fix it yourself by editing administrator/components/com_matukio/controllers/bookings.php after line 258 you have to add the following code:

if (!empty($event->fees)) {
                $neu->payment_method = $payment_method;
 
                if($nrbooked > 0)
                    $neu->payment_brutto = $event->fees * $nrbooked;
                else
                    $neu->payment_brutto = $event->fees;
}

Best regards,

Yves


I changed the code according to the recommendation to:
if (!empty($event->fees)) {
                $neu->payment_method = $payment_method;
 
  if($nrbooked > 0)
                    $neu->payment_brutto = $event->fees * $nrbooked;
                else
                    $neu->payment_brutto = $event->fees;
            }

But still get price = 0 in the confirmation mail. What did I do wrong? Thanks!

Gebühren: € 0.00

Calculated price not right from backend booking 11 years 9 months ago #19346

  • Rafael
  • Rafael's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 148
  • Thank you received: 0
It works! But only if you are in the Joomla backend! If you add someone by loging into the page and go to "my offers" "booking" it will NOT work.
  • Page:
  • 1
Time to create page: 0.127 seconds