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

#   Product URL only shown after purchase

##

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

Less More

- Posts: 14
- Thank you received: 0
-
-

15 years 4 months ago -  15 years 4 months ago [\#20359](#20359) by [snatrott](/forum/user/2238-snatrott "View snatrott's Profile")  Replied by *[snatrott](/forum/user/2238-snatrott "View snatrott's Profile")* on topic *[Re: Product URL only shown after purchase](/forum/4-how-to/14808-product-url-only-shown-after-purchase?start=20#20359 "I am selling digital books with a downloadable copy and a copy that is viewable on the site. I figured out how to do the regular downloadable file on the product, but now I need to be able to also...")*

I only added the spaces so that it would appear in the post. There are no spaces in my PHP code in the actual file.
I am attaching the show.php file, so you can see what the code actually looks like:

####  *This attachment is hidden for guests.
Please log in or register to see it.*

Last edit: 15 years 4 months ago by [snatrott](/forum/user/2238-snatrott "View snatrott's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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: 86561
- Thank you received: 14307
-
-

15 years 4 months ago [\#20383](#20383) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Product URL only shown after purchase](/forum/4-how-to/14808-product-url-only-shown-after-purchase?start=20#20383 "I am selling digital books with a downloadable copy and a copy that is viewable on the site. I figured out how to do the regular downloadable file on the product, but now I need to be able to also...")*

Then it's good. However, looking at the code on our end, I see that the product information is not loaded at that point. So you will have to do like this instead :

if(!empty($product-&gt;product_id)){
$class = hikashop::get('class.product');
$prod = $class-&gt;get($product-&gt;product_id);
echo $prod-&gt;product_url;
}

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

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

Less More

- Posts: 14
- Thank you received: 0
-
-

15 years 4 months ago [\#20391](#20391) by [snatrott](/forum/user/2238-snatrott "View snatrott's Profile")  Replied by *[snatrott](/forum/user/2238-snatrott "View snatrott's Profile")* on topic *[Re: Product URL only shown after purchase](/forum/4-how-to/14808-product-url-only-shown-after-purchase?start=20#20391 "I am selling digital books with a downloadable copy and a copy that is viewable on the site. I figured out how to do the regular downloadable file on the product, but now I need to be able to also...")*

Awesome!! That worked perfectly! Thanks SO much. At some point I will have to make it so that you can view all of the downloaded products in one area instead of going to the orders screen first, but that will have to wait. ![:)](/media/kunena/emoticons/3.png ":)")

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

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