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

#   Donation Plugin

##

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

Less More

- Posts: 259
- Thank you received: 22
-
-

13 years 4 months ago [\#109804](#109804) by [rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")  *[Donation Plugin](/forum/4-how-to/83889-donation-plugin#109804 "I'm really struggling to get my head around how the custom proice plugin works. I have a Fabrik form that generates a product price that is represented by $this-&gt;data  How do I pass this figure into the custom price field that I have linked to a product?")* was created by *[rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")*

I'm really struggling to get my head around how the custom proice plugin works. I have a Fabrik form that generates a product price that is represented by $this-&gt;data

How do I pass this figure into the custom price field that I have linked to a product?

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 4 months ago -  13 years 4 months ago [\#109822](#109822) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Donation Plugin](/forum/4-how-to/83889-donation-plugin#109822 "I'm really struggling to get my head around how the custom proice plugin works. I have a Fabrik form that generates a product price that is represented by $this-&gt;data  How do I pass this figure into the custom price field that I have linked to a product?")*

Hi,

Here is the custom price plugin, if you want to use is you'll have to :
- create a category named donation
- create a product named donation set the price to 0 and the category to donation

- go to "*Hikashop -&gt; Display -&gt; Custom fields*"
- create a new field
- set the "label" field to **amount**
- set the "table" field to **item**
- set the "Column name" field to **amount**
- set the "field type" to **texte**
- set the "default value" to 0
- add the donation category

- add the custom price plugin and enable it.

Hope this will help you a little .

Last edit: 13 years 4 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

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

Less More

- Posts: 259
- Thank you received: 22
-
-

13 years 4 months ago -  13 years 4 months ago [\#109961](#109961) by [rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")  Replied by *[rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")* on topic *[Donation Plugin](/forum/4-how-to/83889-donation-plugin#109961 "I'm really struggling to get my head around how the custom proice plugin works. I have a Fabrik form that generates a product price that is represented by $this-&gt;data  How do I pass this figure into the custom price field that I have linked to a product?")*

Sorry, I don't understand how that gets the data from the Fabrik form? I've done all of the above but what changes in the code need to be made for the field value in Fabrik to be passed to the amount field in the product?

Last edit: 13 years 4 months ago by [rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 4 months ago [\#110008](#110008) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Donation Plugin](/forum/4-how-to/83889-donation-plugin#110008 "I'm really struggling to get my head around how the custom proice plugin works. I have a Fabrik form that generates a product price that is represented by $this-&gt;data  How do I pass this figure into the custom price field that I have linked to a product?")*

Ok, Can you show me where your "Fabrik form" is ?

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

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

Less More

- Posts: 259
- Thank you received: 22
-
-

13 years 4 months ago [\#110489](#110489) by [rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")  Replied by *[rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")* on topic *[Donation Plugin](/forum/4-how-to/83889-donation-plugin#110489 "I'm really struggling to get my head around how the custom proice plugin works. I have a Fabrik form that generates a product price that is represented by $this-&gt;data  How do I pass this figure into the custom price field that I have linked to a product?")*

Sorry for the delay. I've been moving the site to a live server for you to see. [ www.trueerp.co.uk/licenses/](http://www.trueerp.co.uk/licenses/)

The "Addjusted Price with Training" is the amount to be passed into the shopping Cart

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 4 months ago [\#110498](#110498) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Donation Plugin](/forum/4-how-to/83889-donation-plugin#110498 "I'm really struggling to get my head around how the custom proice plugin works. I have a Fabrik form that generates a product price that is represented by $this-&gt;data  How do I pass this figure into the custom price field that I have linked to a product?")*

Ok, the problem is coming from the fact that you'll have to do it through a product page which is in the "donation" category.

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

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

Less More

- Posts: 259
- Thank you received: 22
-
-

13 years 4 months ago [\#110637](#110637) by [rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")  Replied by *[rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")* on topic *[Donation Plugin](/forum/4-how-to/83889-donation-plugin#110637 "I'm really struggling to get my head around how the custom proice plugin works. I have a Fabrik form that generates a product price that is represented by $this-&gt;data  How do I pass this figure into the custom price field that I have linked to a product?")*

Sorry Mohamed but I'm at a loss as to what you are trying to say. I've changed the name of both the product and category to Donation but I can't see how that helps get the amount from the form variable into the amount field in the donation product.

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 4 months ago [\#110707](#110707) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Donation Plugin](/forum/4-how-to/83889-donation-plugin#110707 "I'm really struggling to get my head around how the custom proice plugin works. I have a Fabrik form that generates a product price that is represented by $this-&gt;data  How do I pass this figure into the custom price field that I have linked to a product?")*

Hi,

As Mohamed said, I think that you have to move your Fabrik form that generates a product price in a product page (the Donation product page) by editing the view "product / show_default".
If it's a module, just add it with a loadmodule (joomla function) and then when the price is updated in your Fabrik form, update the value of the custom field in the product page.

Make this field not editable by the user, by this way when the Fabrik form price change, you change the value of the custom field.

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

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

Less More

- Posts: 259
- Thank you received: 22
-
-

13 years 4 months ago [\#110828](#110828) by [rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")  Replied by *[rodfarrell](/forum/user/5859-rodfarrell "View rodfarrell's Profile")* on topic *[Donation Plugin](/forum/4-how-to/83889-donation-plugin#110828 "I'm really struggling to get my head around how the custom proice plugin works. I have a Fabrik form that generates a product price that is represented by $this-&gt;data  How do I pass this figure into the custom price field that I have linked to a product?")*

"when the price is updated in your Fabrik form, update the value of the custom field in the product page"

That's the bit I am asking about. How do I do that?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgzODg5LWRvbmF0aW9uLXBsdWdpbj90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14276
-
-

13 years 4 months ago [\#110888](#110888) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Donation Plugin](/forum/4-how-to/83889-donation-plugin#110888 "I'm really struggling to get my head around how the custom proice plugin works. I have a Fabrik form that generates a product price that is represented by $this-&gt;data  How do I pass this figure into the custom price field that I have linked to a product?")*

When the user click on the "purchase now" button of your fabrik form, you need to redirect the user to the add to cart HTML link of your product like that:
[ www.trueerp.co.uk/index.php?option=com\_h...=1&amp;product\_id=2&amp;data](http://www.trueerp.co.uk/index.php?option=com_hikashop&ctrl=product&task=updatecart&quantity=1&product_id=2&data)[item][amount]={amount}

and replace {amount} by the amount that fabrik gives you.

That will automatically add the product to the cart with the amount that fabrik calculated and display the checkout to the user.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgzODg5LWRvbmF0aW9uLXBsdWdpbj90bXBsPW1hcmtkb3du) 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.154 seconds

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

[](#top)
