Giftwrapping (legacy)

no check box - Giftwrapping (legacy)

Re: no check box

by Omar_one » Fri Apr 23, 2021 11:16 am

Kofod95 wrote:, but I have seen from other posts you have made, that you know what you are doing (most likely better than I do)
//Daniel
this make me laugh so loud,, but thank you for you words..
I will try to update the payment module and if I need help I will ask you :)
Omar_one
Senior Contributor
Posts: 677
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Contact:

Re: no check box

by Omar_one » Tue Apr 27, 2021 10:40 am

Thank you Daniel for uploading new version..

I have try to fix the gift wrap fee in payment module but no luck :( :(
Kofod95 wrote: You should be able to use the

Code: Select all

if ($_SESSION[$gift_wrap] == 'true'){
 //Echo giftwrap and price
//Daniel
I planning to upload the payment module(paytrail) to addon when I get it done I am not sure how many people use it
Omar_one
Senior Contributor
Posts: 677
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Contact:

Re: no check box

by Kofod95 » Tue Apr 27, 2021 5:41 pm

Omar_one wrote: I have try to fix the gift wrap fee in payment module but no luck :(
Just to make sure: You need the payment-module to inform the customer that the fee is added for giftwrapping, right? The fee is added to the order-total, and included in the payment due I presume?

If I find the time tommorow, I'll give a hook a shot, showing the info on checkout_payment, and include instructions on how to show it on the payment-module as well (if my abilities allow me to, that is)
Omar_one wrote: I planning to upload the payment module(paytrail) to addon when I get it done I am not sure how many people use it
Nice! I don't know paytrail, but I don't have a shop, so it would only be accidential if I did ;)

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Contact:

Re: no check box

by Kofod95 » Wed Apr 28, 2021 11:31 am

Just as an example, this is a hook to be placed in templates/override/includes/hooks/shop/checkout_payment, which will in a very ugly manner show that the fee is added. Just added here as an example of how to retrieve the data to use other places.
gift_wrap_on_payment.zip
(1.2 KiB) Downloaded 53 times
//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Contact:

Re: no check box

by Omar_one » Fri Apr 30, 2021 9:48 am

Hello Daniel,
I sent to you the payment module via PM
Omar
Omar_one
Senior Contributor
Posts: 677
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Contact: