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

#   Passing price in product link

##

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

Less More

- Posts: 1
- Thank you received: 0
-
-

4 years 5 months ago [\#342208](#342208) by [swgadmin](/forum/user/59536-swgadmin "View swgadmin's Profile")  *[Passing price in product link](/forum/27-checkout/904520-passing-price-in-product-link#342208 "-- HikaShop version -- : 4.5.1  Hi, I'm wondering how can I pass the price for a &quot;donation&quot; product in the product link.  What I need is to redirect to the product link &quot;  dev.mywebpage.com/index.php?option=com&#95;h...1&amp;cid=256&amp;Itemid=112 &quot;  but adding a price param &amp;price=123,  and add that price to the cart instead of the default price.  &quot;Add to cart&quot;  Is there a way to achieve that?  I'm using Hikashop bussines (4.5.1);  I'd appreciate any help or direction on this.")* was created by *[swgadmin](/forum/user/59536-swgadmin "View swgadmin's Profile")*

-- HikaShop version -- : 4.5.1

Hi, I'm wondering how can I pass the price for a "donation" product in the product link.

What I need is to redirect to the product link "[ dev.mywebpage.com/index.php?option=com\_h...1&amp;cid=256&amp;Itemid=112](https://dev.mywebpage.com/index.php?option=com_hikashop&ctrl=product&task=updatecart&quantity=1&cid=256&Itemid=112)"

but adding a price param &amp;price=123,

and add that price to the cart instead of the default price.

"&lt; a class="hikashop_html_add_to_cart_link" href="[ dev.mywebpage.com/index.php?option=com\_h...1&amp;cid=256&amp;Itemid=112](https://dev.mywebpage.com/index.php?option=com_hikashop&ctrl=product&task=updatecart&quantity=1&cid=256&Itemid=112)**&amp;price=123**"&gt;Add to cart&lt; / a &gt;"

Is there a way to achieve that?

I'm using Hikashop bussines (4.5.1);

I'd appreciate any help or direction on this.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNDUyMC1wYXNzaW5nLXByaWNlLWluLXByb2R1Y3QtbGluaz90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14327
-
-

4 years 5 months ago [\#342217](#342217) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Passing price in product link](/forum/27-checkout/904520-passing-price-in-product-link#342217 "-- HikaShop version -- : 4.5.1  Hi, I'm wondering how can I pass the price for a &quot;donation&quot; product in the product link.  What I need is to redirect to the product link &quot;  dev.mywebpage.com/index.php?option=com&#95;h...1&amp;cid=256&amp;Itemid=112 &quot;  but adding a price param &amp;price=123,  and add that price to the cart instead of the default price.  &quot;Add to cart&quot;  Is there a way to achieve that?  I'm using Hikashop bussines (4.5.1);  I'd appreciate any help or direction on this.")*

Hi,

Yes it's possible.
You need to create a custom field of the table "item" via the menu Display&gt;Custom fields where the value will be stored in the cart and in the order.
Then, you need to configure the HikaShop donation plugin (custom price) via the Joomla plugins manager and enter the column namre of that custom field in its settings.
Then, you can use a parameter with the name Code:

data[item][xxx]

where xxx is the column name:
[ www.hikashop.com/forum/2-general-talk-ab...ct-fields.html#16216](https://www.hikashop.com/forum/2-general-talk-about-hikashop/16216-add-to-cart-link-and-custom-product-fields.html#16216)

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

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