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

#   Pass URL Parameter to Product Page/Checkout Page

##

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

Less More

- Posts: 10
- Thank you received: 0
-
-

12 years 6 months ago [\#155459](#155459) by [convergent](/forum/user/32499-convergent "View convergent's Profile")  *[Pass URL Parameter to Product Page/Checkout Page](/forum/27-checkout/868085-pass-url-parameter-to-product-page-checkout-page#155459 "How do I pass a custom parameter to the product checkout page?  Example: I have a custom field named 'serialno' and the product URL is   www.MYWEBSITE.com/index.php/option=com&#95;h...ckout=1&amp;product&#95;id=1  - I was hoping that I could simply add '&amp;serialno=12345' to the URL and it would populate the field, but that did not work.  If this can't be done I'd like to be able to populate a custom dropdown field with the results of a MySQL query so I can have the customer select one of their serial numbers and attach the purchase to that item.  One way or the other I need the purchase to be associated with a given serial number of a device that the customer has registered in their profile in the Joomla DB.  Thanks in advance for your help. I really look forward to using this extension to its full potential.  -- url of the page with the problem -- :   mywebsite.com/index.php?option=com&#95;hikas...ckout=1&amp;product&#95;id=1  -- HikaShop version -- :Business: 2.3.0 -- Joomla version -- : 3.3.0 -- PHP version -- : 5.x.x -- Browser(s) name and version -- : ALL/ANY -- Error-message(debug-mod must be tuned on) -- : No errors")* was created by *[convergent](/forum/user/32499-convergent "View convergent's Profile")*

How do I pass a custom parameter to the product checkout page?

Example: I have a custom field named 'serialno' and the product URL is [ www.MYWEBSITE.com/index.php/option=com\_h...ckout=1&amp;product\_id=1](http://www.MYWEBSITE.com/index.php/option=com_hikashop&ctrl=product&task=updatecart&quantity=1&checkout=1&product_id=1) - I was hoping that I could simply add '&amp;serialno=12345' to the URL and it would populate the field, but that did not work.

If this can't be done I'd like to be able to populate a custom dropdown field with the results of a MySQL query so I can have the customer select one of their serial numbers and attach the purchase to that item.

One way or the other I need the purchase to be associated with a given serial number of a device that the customer has registered in their profile in the Joomla DB.

Thanks in advance for your help. I really look forward to using this extension to its full potential.

-- url of the page with the problem -- : [ mywebsite.com/index.php?option=com\_hikas...ckout=1&amp;product\_id=1](http://mywebsite.com/index.php?option=com_hikashop&ctrl=product&task=updatecart&quantity=1&checkout=1&product_id=1)
-- HikaShop version -- :Business: 2.3.0
-- Joomla version -- : 3.3.0
-- PHP version -- : 5.x.x
-- Browser(s) name and version -- : ALL/ANY
-- Error-message(debug-mod must be tuned on) -- : No errors

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2ODA4NS1wYXNzLXVybC1wYXJhbWV0ZXItdG8tcHJvZHVjdC1wYWdlLWNoZWNrb3V0LXBhZ2U/dG1wbD1tYXJrZG93bg==) 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: 14325
-
-

12 years 6 months ago [\#155487](#155487) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Pass URL Parameter to Product Page/Checkout Page](/forum/27-checkout/868085-pass-url-parameter-to-product-page-checkout-page#155487 "How do I pass a custom parameter to the product checkout page?  Example: I have a custom field named 'serialno' and the product URL is   www.MYWEBSITE.com/index.php/option=com&#95;h...ckout=1&amp;product&#95;id=1  - I was hoping that I could simply add '&amp;serialno=12345' to the URL and it would populate the field, but that did not work.  If this can't be done I'd like to be able to populate a custom dropdown field with the results of a MySQL query so I can have the customer select one of their serial numbers and attach the purchase to that item.  One way or the other I need the purchase to be associated with a given serial number of a device that the customer has registered in their profile in the Joomla DB.  Thanks in advance for your help. I really look forward to using this extension to its full potential.  -- url of the page with the problem -- :   mywebsite.com/index.php?option=com&#95;hikas...ckout=1&amp;product&#95;id=1  -- HikaShop version -- :Business: 2.3.0 -- Joomla version -- : 3.3.0 -- PHP version -- : 5.x.x -- Browser(s) name and version -- : ALL/ANY -- Error-message(debug-mod must be tuned on) -- : No errors")*

You can. You were actually almost there. The name of the parameter in the URL must be data[item][serialno] and then it will work. See here for more information:
[ www.hikashop.com/forum/2-general-talk-ab...-product-fields.html](http://www.hikashop.com/forum/2-general-talk-about-hikashop/16216-add-to-cart-link-and-custom-product-fields.html)

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

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