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

#   Pulling URL of purchased product

##

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

Less More

- Posts: 78
- Thank you received: 5
-
-

11 years 3 weeks ago [\#218251](#218251) by [brentwilliams2](/forum/user/1200-brentwilliams2 "View brentwilliams2's Profile")  *[Pulling URL of purchased product](/forum/31-development/880036-pulling-url-of-purchased-product#218251 "The majority of purchases made on my site are individual products, and I would like to include the social share buttons on the thank you page (after&#95;end) tying back to the product they purchased. Is...")* was created by *[brentwilliams2](/forum/user/1200-brentwilliams2 "View brentwilliams2's Profile")*

The majority of purchases made on my site are individual products, and I would like to include the social share buttons on the thank you page (after_end) tying back to the product they purchased. Is it possible to find out if the purchase was for an individual product, and if so, pull the URL for that product?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4MDAzNi1wdWxsaW5nLXVybC1vZi1wdXJjaGFzZWQtcHJvZHVjdD90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

11 years 2 weeks ago [\#218275](#218275) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Pulling URL of purchased product](/forum/31-development/880036-pulling-url-of-purchased-product#218275 "The majority of purchases made on my site are individual products, and I would like to include the social share buttons on the thank you page (after&#95;end) tying back to the product they purchased. Is...")*

Hi,

There is no option to do that.
You'll have to edit the file "after_end" of the view "checkout" via the menu Display&gt;Views to add custom code for that.
If you're a developer, it won't be a problem, although it's not just a few lines of code. You'll have to first get the order_id from the user state, and then load the order data:
[ www.hikashop.com/forum/4-how-to/68733-ge...id-in-after-end.html](http://www.hikashop.com/forum/4-how-to/68733-get-order-total-and-id-in-after-end.html)
Then, you can look at $order-&gt;products to identify the products of the order and add your share button custom HTML/JS/PHP based on that.

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

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