[Skip to main content](#vessel-content)

#   Cart page : add donation line

##

- **[newt](/forum/user/39210-newt "View newt's Profile")**
- [![newt's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39210-newt "View newt's Profile") Topic Author
- [ Offline](/forum/user/39210-newt)

Less More

- Posts: 36
- Thank you received: 0
-
-

10 years 10 months ago [\#223351](#223351) by [newt](/forum/user/39210-newt "View newt's Profile")  Replied by *[newt](/forum/user/39210-newt "View newt's Profile")* on topic *[Cart page : add donation line](/forum/27-checkout/880481-cart-page-add-donation-line?start=20#223351 "-- url of the page with the problem -- : solishop.fr -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5  Hello,  I add a line just above the total line on the cart page. I already add the html part :  Then I recover the value here :  So the client enter the price and press enter or click on the button &quot;Ok&quot;. The page refresh and print the new price, but instead of print the price for example : 32,42 € It print only : 32  And I don't know how to correct this...  And for the mail sent to the client and vendor I want to also put the donation line to inform them. But how can I send and retrieve the value to the file where I custom the mail sent ?  Thank you,")*

It doesn't work. ..
I put it in the beginning of the file and I have a error message when I confirm the command.

[ zupimages.net/viewer.php?id=15/50/yhg1.png](http://zupimages.net/viewer.php?id=15/50/yhg1.png)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDQ4MS1jYXJ0LXBhZ2UtYWRkLWRvbmF0aW9uLWxpbmU/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14276
-
-

10 years 10 months ago [\#223375](#223375) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart page : add donation line](/forum/27-checkout/880481-cart-page-add-donation-line?start=20#223375 "-- url of the page with the problem -- : solishop.fr -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5  Hello,  I add a line just above the total line on the cart page. I already add the html part :  Then I recover the value here :  So the client enter the price and press enter or click on the button &quot;Ok&quot;. The page refresh and print the new price, but instead of print the price for example : 32,42 € It print only : 32  And I don't know how to correct this...  And for the mail sent to the client and vendor I want to also put the donation line to inform them. But how can I send and retrieve the value to the file where I custom the mail sent ?  Thank you,")*

It says that you're using "my_data" and that there is no "my_data" custom field configured on your website.
Please make sure that you use the exact same name as you've set in the column name of your custom field.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDQ4MS1jYXJ0LXBhZ2UtYWRkLWRvbmF0aW9uLWxpbmU/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[newt](/forum/user/39210-newt "View newt's Profile")**
- [![newt's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39210-newt "View newt's Profile") Topic Author
- [ Offline](/forum/user/39210-newt)

Less More

- Posts: 36
- Thank you received: 0
-
-

10 years 10 months ago -  10 years 10 months ago [\#223903](#223903) by [newt](/forum/user/39210-newt "View newt's Profile")  Replied by *[newt](/forum/user/39210-newt "View newt's Profile")* on topic *[Cart page : add donation line](/forum/27-checkout/880481-cart-page-add-donation-line?start=20#223903 "-- url of the page with the problem -- : solishop.fr -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5  Hello,  I add a line just above the total line on the cart page. I already add the html part :  Then I recover the value here :  So the client enter the price and press enter or click on the button &quot;Ok&quot;. The page refresh and print the new price, but instead of print the price for example : 32,42 € It print only : 32  And I don't know how to correct this...  And for the mail sent to the client and vendor I want to also put the donation line to inform them. But how can I send and retrieve the value to the file where I custom the mail sent ?  Thank you,")*

If I do this ? Code:

$orderClass = hikashop_get('class.order'); $order = new stdClass(); $order-&gt;order_id = $data-&gt;order_id; $order-&gt;donation = $_SESSION['donation']; $orderClass-&gt;save($order);

Last edit: 10 years 10 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile"). Reason: please use the code tags in your messages on the forum

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDQ4MS1jYXJ0LXBhZ2UtYWRkLWRvbmF0aW9uLWxpbmU/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14276
-
-

10 years 10 months ago [\#223926](#223926) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart page : add donation line](/forum/27-checkout/880481-cart-page-add-donation-line?start=20#223926 "-- url of the page with the problem -- : solishop.fr -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5  Hello,  I add a line just above the total line on the cart page. I already add the html part :  Then I recover the value here :  So the client enter the price and press enter or click on the button &quot;Ok&quot;. The page refresh and print the new price, but instead of print the price for example : 32,42 € It print only : 32  And I don't know how to correct this...  And for the mail sent to the client and vendor I want to also put the donation line to inform them. But how can I send and retrieve the value to the file where I custom the mail sent ?  Thank you,")*

Yes, you can do that, if you have a custom order field with the column name "donation"

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDQ4MS1jYXJ0LXBhZ2UtYWRkLWRvbmF0aW9uLWxpbmU/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[newt](/forum/user/39210-newt "View newt's Profile")**
- [![newt's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39210-newt "View newt's Profile") Topic Author
- [ Offline](/forum/user/39210-newt)

Less More

- Posts: 36
- Thank you received: 0
-
-

10 years 10 months ago [\#224008](#224008) by [newt](/forum/user/39210-newt "View newt's Profile")  Replied by *[newt](/forum/user/39210-newt "View newt's Profile")* on topic *[Cart page : add donation line](/forum/27-checkout/880481-cart-page-add-donation-line?start=20#224008 "-- url of the page with the problem -- : solishop.fr -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5  Hello,  I add a line just above the total line on the cart page. I already add the html part :  Then I recover the value here :  So the client enter the price and press enter or click on the button &quot;Ok&quot;. The page refresh and print the new price, but instead of print the price for example : 32,42 € It print only : 32  And I don't know how to correct this...  And for the mail sent to the client and vendor I want to also put the donation line to inform them. But how can I send and retrieve the value to the file where I custom the mail sent ?  Thank you,")*

the order field with the column name 'donation' is already set in the line 4 no ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDQ4MS1jYXJ0LXBhZ2UtYWRkLWRvbmF0aW9uLWxpbmU/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14276
-
-

10 years 10 months ago [\#224017](#224017) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart page : add donation line](/forum/27-checkout/880481-cart-page-add-donation-line?start=20#224017 "-- url of the page with the problem -- : solishop.fr -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5  Hello,  I add a line just above the total line on the cart page. I already add the html part :  Then I recover the value here :  So the client enter the price and press enter or click on the button &quot;Ok&quot;. The page refresh and print the new price, but instead of print the price for example : 32,42 € It print only : 32  And I don't know how to correct this...  And for the mail sent to the client and vendor I want to also put the donation line to inform them. But how can I send and retrieve the value to the file where I custom the mail sent ?  Thank you,")*

Yes.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDQ4MS1jYXJ0LXBhZ2UtYWRkLWRvbmF0aW9uLWxpbmU/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[newt](/forum/user/39210-newt "View newt's Profile")**
- [![newt's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39210-newt "View newt's Profile") Topic Author
- [ Offline](/forum/user/39210-newt)

Less More

- Posts: 36
- Thank you received: 0
-
-

10 years 10 months ago -  10 years 10 months ago [\#224129](#224129) by [newt](/forum/user/39210-newt "View newt's Profile")  Replied by *[newt](/forum/user/39210-newt "View newt's Profile")* on topic *[Cart page : add donation line](/forum/27-checkout/880481-cart-page-add-donation-line?start=20#224129 "-- url of the page with the problem -- : solishop.fr -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5  Hello,  I add a line just above the total line on the cart page. I already add the html part :  Then I recover the value here :  So the client enter the price and press enter or click on the button &quot;Ok&quot;. The page refresh and print the new price, but instead of print the price for example : 32,42 € It print only : 32  And I don't know how to correct this...  And for the mail sent to the client and vendor I want to also put the donation line to inform them. But how can I send and retrieve the value to the file where I custom the mail sent ?  Thank you,")*

I don't understand..
It doesn't work.

If the column name 'donation' is set in the line 4 then this code should work no ? Code:

$orderClass = hikashop_get('class.order'); $order = new stdClass(); $order-&gt;order_id = $data-&gt;order_id; $order-&gt;donation = $_SESSION['donation']; $orderClass-&gt;save($order);

Last edit: 10 years 10 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDQ4MS1jYXJ0LXBhZ2UtYWRkLWRvbmF0aW9uLWxpbmU/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14276
-
-

10 years 10 months ago [\#224147](#224147) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart page : add donation line](/forum/27-checkout/880481-cart-page-add-donation-line?start=20#224147 "-- url of the page with the problem -- : solishop.fr -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5  Hello,  I add a line just above the total line on the cart page. I already add the html part :  Then I recover the value here :  So the client enter the price and press enter or click on the button &quot;Ok&quot;. The page refresh and print the new price, but instead of print the price for example : 32,42 € It print only : 32  And I don't know how to correct this...  And for the mail sent to the client and vendor I want to also put the donation line to inform them. But how can I send and retrieve the value to the file where I custom the mail sent ?  Thank you,")*

Hi,

So are you sure that you have something in Code:

$_SESSION['donation']

where you have that code ?
Because the rest of the code is definitely correct.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDQ4MS1jYXJ0LXBhZ2UtYWRkLWRvbmF0aW9uLWxpbmU/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[newt](/forum/user/39210-newt "View newt's Profile")**
- [![newt's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39210-newt "View newt's Profile") Topic Author
- [ Offline](/forum/user/39210-newt)

Less More

- Posts: 36
- Thank you received: 0
-
-

10 years 10 months ago [\#224219](#224219) by [newt](/forum/user/39210-newt "View newt's Profile")  Replied by *[newt](/forum/user/39210-newt "View newt's Profile")* on topic *[Cart page : add donation line](/forum/27-checkout/880481-cart-page-add-donation-line?start=20#224219 "-- url of the page with the problem -- : solishop.fr -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5  Hello,  I add a line just above the total line on the cart page. I already add the html part :  Then I recover the value here :  So the client enter the price and press enter or click on the button &quot;Ok&quot;. The page refresh and print the new price, but instead of print the price for example : 32,42 € It print only : 32  And I don't know how to correct this...  And for the mail sent to the client and vendor I want to also put the donation line to inform them. But how can I send and retrieve the value to the file where I custom the mail sent ?  Thank you,")*

Yes because I can display it.
It's the value that the client put in the donation input in the command page.

I made another test.

$order-&gt;donation = 42;

but I have the same error where the donation column is unknown...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDQ4MS1jYXJ0LXBhZ2UtYWRkLWRvbmF0aW9uLWxpbmU/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14276
-
-

10 years 10 months ago [\#224223](#224223) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart page : add donation line](/forum/27-checkout/880481-cart-page-add-donation-line?start=20#224223 "-- url of the page with the problem -- : solishop.fr -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5  Hello,  I add a line just above the total line on the cart page. I already add the html part :  Then I recover the value here :  So the client enter the price and press enter or click on the button &quot;Ok&quot;. The page refresh and print the new price, but instead of print the price for example : 32,42 € It print only : 32  And I don't know how to correct this...  And for the mail sent to the client and vendor I want to also put the donation line to inform them. But how can I send and retrieve the value to the file where I custom the mail sent ?  Thank you,")*

So did you create a custom field of the table "order" and with the column name "donation" like I said before ?
Otherwise, you won't be able to save anything in it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDQ4MS1jYXJ0LXBhZ2UtYWRkLWRvbmF0aW9uLWxpbmU/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[newt](/forum/user/39210-newt "View newt's Profile")**
- [![newt's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39210-newt "View newt's Profile") Topic Author
- [ Offline](/forum/user/39210-newt)

Less More

- Posts: 36
- Thank you received: 0
-
-

10 years 10 months ago [\#224336](#224336) by [newt](/forum/user/39210-newt "View newt's Profile")  Replied by *[newt](/forum/user/39210-newt "View newt's Profile")* on topic *[Cart page : add donation line](/forum/27-checkout/880481-cart-page-add-donation-line?start=20#224336 "-- url of the page with the problem -- : solishop.fr -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5  Hello,  I add a line just above the total line on the cart page. I already add the html part :  Then I recover the value here :  So the client enter the price and press enter or click on the button &quot;Ok&quot;. The page refresh and print the new price, but instead of print the price for example : 32,42 € It print only : 32  And I don't know how to correct this...  And for the mail sent to the client and vendor I want to also put the donation line to inform them. But how can I send and retrieve the value to the file where I custom the mail sent ?  Thank you,")*

No i didn't.
I read again but I don't find how can I create it ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDQ4MS1jYXJ0LXBhZ2UtYWRkLWRvbmF0aW9uLWxpbmU/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14276
-
-

10 years 10 months ago [\#224347](#224347) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart page : add donation line](/forum/27-checkout/880481-cart-page-add-donation-line?start=20#224347 "-- url of the page with the problem -- : solishop.fr -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5  Hello,  I add a line just above the total line on the cart page. I already add the html part :  Then I recover the value here :  So the client enter the price and press enter or click on the button &quot;Ok&quot;. The page refresh and print the new price, but instead of print the price for example : 32,42 € It print only : 32  And I don't know how to correct this...  And for the mail sent to the client and vendor I want to also put the donation line to inform them. But how can I send and retrieve the value to the file where I custom the mail sent ?  Thank you,")*

Hi,

Go in the menu Display&gt;Custom fields, click on the "new" button and select the "order" choice in the "table" setting.
Note that this is only available with the Business edition of HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDQ4MS1jYXJ0LXBhZ2UtYWRkLWRvbmF0aW9uLWxpbmU/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[newt](/forum/user/39210-newt "View newt's Profile")**
- [![newt's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39210-newt "View newt's Profile") Topic Author
- [ Offline](/forum/user/39210-newt)

Less More

- Posts: 36
- Thank you received: 0
-
-

10 years 10 months ago [\#224476](#224476) by [newt](/forum/user/39210-newt "View newt's Profile")  Replied by *[newt](/forum/user/39210-newt "View newt's Profile")* on topic *[Cart page : add donation line](/forum/27-checkout/880481-cart-page-add-donation-line?start=20#224476 "-- url of the page with the problem -- : solishop.fr -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5  Hello,  I add a line just above the total line on the cart page. I already add the html part :  Then I recover the value here :  So the client enter the price and press enter or click on the button &quot;Ok&quot;. The page refresh and print the new price, but instead of print the price for example : 32,42 € It print only : 32  And I don't know how to correct this...  And for the mail sent to the client and vendor I want to also put the donation line to inform them. But how can I send and retrieve the value to the file where I custom the mail sent ?  Thank you,")*

Thank you

To use it I just do for example

echo $order-&gt;donation;

?

I tried this in the order_status_notification file but it display nothing.
And to edit the total in the database I can use the previous code to modify it ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDQ4MS1jYXJ0LXBhZ2UtYWRkLWRvbmF0aW9uLWxpbmU/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14276
-
-

10 years 10 months ago [\#224507](#224507) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart page : add donation line](/forum/27-checkout/880481-cart-page-add-donation-line?start=20#224507 "-- url of the page with the problem -- : solishop.fr -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5  Hello,  I add a line just above the total line on the cart page. I already add the html part :  Then I recover the value here :  So the client enter the price and press enter or click on the button &quot;Ok&quot;. The page refresh and print the new price, but instead of print the price for example : 32,42 € It print only : 32  And I don't know how to correct this...  And for the mail sent to the client and vendor I want to also put the donation line to inform them. But how can I send and retrieve the value to the file where I custom the mail sent ?  Thank you,")*

It should be:
&lt;?php echo $order-&gt;cart-&gt;donation; ?&gt;
in the HTML version of the email.

Normally, to have the total take it into account, you would have to develop a plugin like I said previously:
[ www.hikashop.com/forum/checkout/880481-c...ion-line.html#221354](https://www.hikashop.com/forum/checkout/880481-cart-page-add-donation-line.html#221354)
Otherwise, it require code modifications a bit everywhere in order to take into account the donation.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDQ4MS1jYXJ0LXBhZ2UtYWRkLWRvbmF0aW9uLWxpbmU/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.170 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
