<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Change mf_get_payment_total() function in post-functions to show half amount?</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Change mf_get_payment_total() function in post-functions to show half amount?</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 23:09:50 +0000</pubDate>

<item>
<title>yuniar on "Change mf_get_payment_total() function in post-functions to show half amount?"</title>
<link>https://www.machform.com/forums/topic/change-mf_get_payment_total-function-in-post-functions-to-show-half-amount#post-18886</link>
<pubDate>Sat, 03 Aug 2013 10:58:51 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">18886@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;If you are using PayPal, you actually need to modify the &#34;mf_get_merchant_redirect_url()&#34; function. This is the function that passed the amounts into PayPal.&#60;/p&#62;
&#60;p&#62;At the end of that function, you should find this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$paypal_params[&#38;#39;item_name_&#38;#39;.$i] = $item_name;
$paypal_params[&#38;#39;amount_&#38;#39;.$i] 	  = $amount;
$paypal_params[&#38;#39;quantity_&#38;#39;.$i]  = $quantity;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;you can add some conditional code to reduce the $amount above.
&#60;/p&#62;</description>
</item>
<item>
<title>chickc on "Change mf_get_payment_total() function in post-functions to show half amount?"</title>
<link>https://www.machform.com/forums/topic/change-mf_get_payment_total-function-in-post-functions-to-show-half-amount#post-18879</link>
<pubDate>Fri, 02 Aug 2013 21:35:49 +0000</pubDate>
<dc:creator>chickc</dc:creator>
<guid isPermaLink="false">18879@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I am programmer and I need to change this form &#60;a href=&#34;http://www.webwizards.pro/machform/view.php?id=3902&#34; rel=&#34;nofollow&#34;&#62;http://www.webwizards.pro/machform/view.php?id=3902&#60;/a&#62; to show half amount when user selected radio button &#34;Payments (credit card or paypal account) &#34;, named &#34;Pay 50% deposit&#34;. I made this view in javascript, but it seems to change post-functions.php to make this amount saved to continue for review and payment. Now only full amount is go through to the paypal review page. I need someone to show me how to insert condition in loop and where if is picked this form and this radio button, cut amount and show total with half of amount.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
