-- 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 :
<td id="hikashop_checkout_donation_title" class="hikashop_checkout_donation_title">
<?php echo JText::_('HIKASHOP_DONATION'); ?>
</td>
<td>
<form method="post">
<input type="number" name="donation" style="width:30%" value="0" min="0">
<input type="submit" value="Ok">
</form>
</td>
Then I recover the value here :
<td class="hikashop_cart_total_value" data-title="<?php echo Jtext::_('HIKASHOP_TOTAL'); ?>">
<span class="hikashop_checkout_cart_final_total">
<?php
$total = $this->currencyHelper->format($this->full_total->prices[0]->price_value_with_tax,$this->full_total->prices[0]->price_currency_id);
if (isset($_POST["donation"]))
$total += $_POST["donation"];
echo $total;
?>
</span>
</td>
So the client enter the price and press enter or click on the button "Ok".
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,