[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 6 months ago -  15 years 6 months ago [\#14808](#14808) by [snatrott](/forum/user/2238-snatrott "View snatrott's Profile")  *[Product URL only shown after purchase](/forum/4-how-to/14808-product-url-only-shown-after-purchase#14808 "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...")* was created by *[snatrott](/forum/user/2238-snatrott "View snatrott's Profile")*

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 post a URL that the customer can see and "View" when they log in to their account after purchasing. This "View" link would then take them to the HTML file that will display the Flash file of the book.

I am using the free version of HikaShop on Joomla 1.6. I don't have a problem adding code in order to achieve this, but I don't know what code or where to add it.

Thanks in advance for you help.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 6 months ago -  15 years 6 months ago [\#14819](#14819) 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#14819 "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...")*

What you could do is to create a new menu item only accessible to a certain group of users (you can create new groups in the joomla user manager). Then, on your product edition screen at the left bottom of the screen, with the Business version of HikaShop, you can select a group of users to which the user will be added once he buys the product. Thus, that will enable him to access to your menu item.

Last edit: 15 years 6 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 6 months ago [\#14837](#14837) 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#14837 "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...")*

That won't work because it should only be accessible to the person that ordered that specific book.

I am thinking though that it might be achievable by editing the view files. I could remove the Product URL from the product description and have it display in the orders area with the download link. I am unable to test this theory because of another issue, though. I edit a file under Display-&gt;Views, hit Save and then check the file and all my changes are gone. It says "Successfully Saved", but I changed it probably 30 times before it finally saved the changes on just the one file. I haven't been able to get any others to keep the changes even after dozens of tries.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 6 months ago [\#14843](#14843) 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#14843 "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...")*

If you have several templates on your website, you should have several times the view files, one per template. Please make sure that you're editing the correct file for the correct template.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 6 months ago [\#14846](#14846) 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#14846 "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 have 2 templates on my site (the admin one and the front end one), and I filtered them to only show the ones for the front end template. Also, I clicked on the exact same file right after saving and the changes are gone.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 6 months ago [\#14851](#14851) 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#14851 "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, maybe there is a glitch with the file saving process. It's handled by joomla. If it doesn't work it's probably because of an access right issue.

What strange is that you're saying that it works sometimes...
In all cases, you can always copy the view files from components/com_hikashop/views to templates/YOUR_TEMPLATE/html/com_hikashop via FTP and make your modifications directly without using the interface...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 6 months ago [\#14858](#14858) 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#14858 "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. I copied them over to my template directory and was able to save my changes in them. I tried just copying the Product URL code from the Product Show file, but it didn't work.
Code:

&lt;span id="hikashop_product_url_main" class="hikashop_product_url_main"&gt; &lt;?php if(!empty($this-&gt;element-&gt;product_url)){ echo JText::sprintf('MANUFACTURER_URL','&lt;a href="'.$this-&gt;element-&gt;product_url.'" target="_blank"&gt;'.$this-&gt;element-&gt;product_url.'&lt;/a&gt;'); } ?&gt; &lt;/span&gt;

What do I need to change to make the URL display on the Order Show page?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 6 months ago [\#14859](#14859) 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#14859 "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...")*

None of the PHP code displayed in that last post, but it is everything in file views/product/tmpl/show.php from lines 364 to 374.
Code:

&lt;span id="hikashop_product_url_main" class="hikashop_product_url_main"&gt; &lt; ? php if(!empty($this-&gt;element-&gt;product_url)){ echo JText::sprintf('MANUFACTURER_URL','&lt;a href="'.$this-&gt;element-&gt;product_url.'" target="_blank"&gt;'.$this-&gt;element-&gt;product_url.'&lt;/a&gt;'); } ? &gt; &lt;/span&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 6 months ago [\#14860](#14860) 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#14860 "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...")*

You can just replace $this-&gt;element by $product in that code and put it inside the foreach($this-&gt;order-&gt;products as $product) of the order show view file

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 6 months ago [\#14861](#14861) 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#14861 "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...")*

Here is my current code in the order show file that isn't displaying any URL:
Code:

&lt; ? php $k=0; global $Itemid; $url = ''; if(!empty($Itemid)){ $url='&amp;Itemid='.$Itemid; } foreach($this-&gt;order-&gt;products as $product){ if(!empty($product-&gt;product_url)){ echo JText::sprintf('MANUFACTURER_URL','&lt;a href="'.$product-&gt;product_url.'" target="_blank"&gt;'.$product-&gt;product_url.'&lt;/a&gt;'); } ? &gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 6 months ago [\#14862](#14862) 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#14862 "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...")*

Would there be a way to make a view that just shows the products that someone has downloaded in their history and skip the step of having to go look at each order to see all the products ordered?

I would like someone to be able to login and click a menu link such as "My Digital Products" and see all of their purchased digital downloads and the URLs that go with them. Instead of an Order Listing, I want a Product Listing of just purchased products for that particular user.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 6 months ago [\#14873](#14873) 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#14873 "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...")*

You might have to load the data of the product:
$p = hikashop::get('class.product');
$data = $p-&gt;get($product-&gt;product_id);

and then use $data instead of $product in your code.

Also not that the foreach is inside a table tag. so you need to add tr and td tags or move your code around so that it displays inside a tr td.

If you want to have a specific view listing the downloadable files of the user, there is no such feature in hikashop. You either need to write it or ask someone to develop it for you. We can propose such development. If you're interested, you can use our contact form to request a quote:
[ www.hikashop.com/en/support/contact-us.html](http://www.hikashop.com/en/support/contact-us.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#20122](#20122) 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#20122 "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 had to take some time off this project, but now I am back. ![:)](/media/kunena/emoticons/3.png ":)")

I am working on just displaying the Manufacturer URL in the Order view. I am editing the Order-&gt;Show page. I want the product code (and/or product name) to be a link to the manufacturer URL.

This is the section of code I want to change: Code:

&lt;?php if($this-&gt;invoice_type=='order' &amp;&amp; !empty($product-&gt;product_id)){ ?&gt; &lt;a class="hikashop_order_product_link" href="&lt;?php echo hikashop::completeLink('product&amp;task=show&amp;cid='.$product-&gt;product_id.$url); ?&gt;"&gt; &lt;?php } ?&gt; &lt;p class="hikashop_order_product_name"&gt;&lt;?php echo $product-&gt;order_product_name; ?&gt;&lt;/p&gt; &lt;p class="hikashop_order_product_code"&gt;&lt;?php echo $product-&gt;order_product_code; ?&gt;&lt;/p&gt; &lt;?php if($this-&gt;invoice_type=='order' &amp;&amp; !empty($product-&gt;product_id)){ ?&gt; &lt;/a&gt;

I have tried several different ways of writing the link, but none of them have been successful so I am back to square one. The code for the title link looks like it references the URL, but it doesn't ever go to the manufacturer URL.

Ideally, I would like to just change this section: Code:

href="&lt;?php echo hikashop::completeLink('product&amp;task=show&amp;cid='.$product-&gt;product_id.$url); ?&gt;"

to point to the manufacturer URL.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#20124](#20124) 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#20124 "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...")*

This is the section of code I want to change: Code:

&lt; ? php if($this-&gt;invoice_type=='order' &amp;&amp; !empty($product-&gt;product_id)){ ? &gt; &lt;a class="hikashop_order_product_link" href="&lt;?php echo hikashop::completeLink('product&amp;task=show&amp;cid='.$product-&gt;product_id.$url); ?&gt;"&gt; &lt; ? php } ? &gt; &lt;p class="hikashop_order_product_name"&gt;&lt;?php echo $product-&gt;order_product_name; ?&gt;&lt;/p&gt; &lt;p class="hikashop_order_product_code"&gt;&lt;?php echo $product-&gt;order_product_code; ?&gt;&lt;/p&gt; &lt; ? php if($this-&gt;invoice_type=='order' &amp;&amp; !empty($product-&gt;product_id)){ ? &gt; &lt;/a&gt;

Ideally, I would like to just change this section: Code:

&lt;a class="hikashop_order_product_link" href="&lt; ? php echo hikashop::completeLink('product&amp;task=show&amp;cid='.$product-&gt;product_id.$url); ? &gt;"&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#20131](#20131) 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#20131 "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...")*

You should try something like that instead:

&lt;a class="hikashop_order_product_link" href="&lt;?php echo $product-&gt;product_url; ?&gt;" target="_blank"&gt;&lt;?php echo $product-&gt;product_url; ?&gt;&lt;/a&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#20157](#20157) 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#20157 "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 tried that and the link shows up as: [ www.mydomain.com/$product-](http://www.mydomain.com/$product-)&gt;product_url

The link doesn't actually display the product url.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#20169](#20169) 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#20169 "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...")*

That's not possible. Could you double check that you used the same code as I wrote ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#20325](#20325) 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#20325 "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 just copied and pasted your code and the link goes to [ domain.com/$product-](http://domain.com/$product-)&gt;product_url

The full code from my Order Show page for the product display table is: Code:

&lt;table cellpadding="1" width="100%"&gt; &lt;thead&gt; &lt;tr&gt; &lt;th class="hikashop_order_item_name_title title"&gt; &lt; ? php echo JText::_('PRODUCT'); ? &gt; &lt;/th&gt; &lt;th class="hikashop_order_item_files_title title"&gt; &lt; ? php echo JText::_('HIKA_FILES'); ? &gt; &lt;/th&gt; &lt;th class="hikashop_order_item_price_title title"&gt; &lt; ? php echo JText::_('UNIT_PRICE'); ? &gt; &lt;/th&gt; &lt;th class="hikashop_order_item_quantity_title title titletoggle"&gt; &lt; ? php echo JText::_('PRODUCT_QUANTITY'); ? &gt; &lt;/th&gt; &lt;th class="hikashop_order_item_total_title title titletoggle"&gt; &lt; ? php echo JText::_('PRICE'); ? &gt; &lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt; ? php $k=0; global $Itemid; $url = ''; if(!empty($Itemid)){ $url='&amp;Itemid='.$Itemid; } foreach($this-&gt;order-&gt;products as $product){ ? &gt; &lt;tr class="row&lt;?php echo $k;?&gt;"&gt; &lt;td class="hikashop_order_item_name_value"&gt; &lt; ? php if($this-&gt;invoice_type=='order' &amp;&amp; !empty($product-&gt;product_id)){ ? &gt; &lt;a class="hikashop_order_product_link" href="&lt; ? php echo hikashop::completeLink('product&amp;task=show&amp;cid='.$product-&gt;product_id.$url); ? &gt;"&gt; &lt; ? php } ? &gt; &lt;p class="hikashop_order_product_name"&gt;&lt; ? php echo $product-&gt;order_product_name; ? &gt;&lt;/p&gt; &lt;p class="hikashop_order_product_code"&gt;&lt; ? php echo $product-&gt;order_product_code; ? &gt;&lt;/p&gt; &lt; ? php if($this-&gt;invoice_type=='order' &amp;&amp; !empty($product-&gt;product_id)){ ? &gt; &lt;/a&gt; &lt;span id="hikashop_product_url_main" class="hikashop_product_url_main"&gt; &lt;a class="hikashop_order_product_link" href="&lt; ? php echo $product-&gt;product_url; ? &gt;" target="_blank"&gt;View&lt;/a&gt; &lt;/span&gt; &lt; ? php } if($this-&gt;invoice_type=='order'){ ? &gt; &lt;p class="hikashop_order_product_custom_item_fields"&gt; &lt; ? php if(hikashop::level(2) &amp;&amp; !empty($this-&gt;fields['item'])){ foreach($this-&gt;fields['item'] as $field){ $namekey = $field-&gt;field_namekey; echo '&lt;p class="hikashop_order_item_'.$namekey.'"&gt;'.$this-&gt;fieldsClass-&gt;getFieldName($field).': '.$this-&gt;fieldsClass-&gt;show($field,$product-&gt;$namekey).'&lt;/p&gt;'; } }?&gt; &lt;/p&gt; &lt;?php }? &gt; &lt;/td&gt; &lt; ? php if($this-&gt;invoice_type=='order' &amp;&amp; !empty($product-&gt;files)){ ? &gt; &lt;td class="hikashop_order_item_files_value"&gt; &lt; ? php if($this-&gt;order_status_download_ok &#124;&#124; bccomp($product-&gt;order_product_price,0,5)==0){ $html = array(); foreach($product-&gt;files as $file){ if(empty($file-&gt;file_name)){ $file-&gt;file_name = $file-&gt;file_path; } $fileHtml = ''; if(!empty($this-&gt;download_time_limit) &amp;&amp; ($this-&gt;download_time_limit+$this-&gt;order-&gt;order_created)&lt;time()){ $fileHtml = JText::_('TOO_LATE_NO_DOWNLOAD'); } if(!empty($this-&gt;download_number_limit) &amp;&amp; $this-&gt;download_number_limit&lt;=$file-&gt;download_number){ $fileHtml = JText::_('MAX_REACHED_NO_DOWNLOAD'); } if(empty($fileHtml)){ $fileHtml = '&lt;a href="'.hikashop::completeLink('order&amp;task=download&amp;file_id='.$file-&gt;file_id.'&amp;order_id='.$this-&gt;order-&gt;order_id).'"&gt;&lt;img src="images/download.png" alt="Download" /&gt;&lt;/a&gt;'; if(!empty($this-&gt;download_time_limit))$fileHtml .= ' / '.JText::sprintf('UNTIL_THE_DATE',hikashop::getDate($this-&gt;order-&gt;order_created+$this-&gt;download_time_limit)); if(!empty($this-&gt;download_number_limit))$fileHtml .= ' / '.JText::sprintf('X_DOWNLOADS_LEFT',$this-&gt;download_number_limit-$file-&gt;download_number); }else{ $fileHtml = $file-&gt;file_name .' '.$fileHtml; } $html[]=$fileHtml; } echo implode('&lt;br/&gt;',$html); } ? &gt; &lt;/td&gt; &lt; ? php } ? &gt; &lt;td class="hikashop_order_item_price_value"&gt; &lt; ? php echo $this-&gt;currencyHelper-&gt;format($product-&gt;order_product_price,$this-&gt;order-&gt;order_currency_id);? &gt; &lt;/td&gt; &lt;td class="hikashop_order_item_quantity_value"&gt; &lt; ? php echo $product-&gt;order_product_quantity;? &gt; &lt;/td&gt; &lt;td class="hikashop_order_item_total_value"&gt; &lt; ? php echo $this-&gt;currencyHelper-&gt;format($product-&gt;order_product_total_price_no_vat,$this-&gt;order-&gt;order_currency_id);? &gt; &lt;/td&gt; &lt;/tr&gt; &lt; ? php $k=1-$k; } ? &gt; &lt;tr&gt; &lt;td style="border-top:2px solid #B8B8B8;" colspan="&lt; ? php echo $colspan; ? &gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_subtotal_title" style="border-top:2px solid #B8B8B8;" class="key"&gt; &lt;label&gt; &lt; ? php echo JText::_( 'SUBTOTAL' ); ? &gt; &lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_subtotal_value" style="border-top:2px solid #B8B8B8;"&gt; &lt; ? php echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_subtotal_no_vat,$this-&gt;order-&gt;order_currency_id); ? &gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="&lt; ? php echo $colspan; ? &gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_tax_title key"&gt; &lt;label&gt; &lt; ? php echo JText::_( 'VAT' ); ? &gt; &lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_tax_value"&gt; &lt; ? php echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_subtotal-$this-&gt;order-&gt;order_subtotal_no_vat,$this-&gt;order-&gt;order_currency_id); ? &gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="&lt; ? php echo $colspan; ? &gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_coupon_title key"&gt; &lt;label&gt; &lt; ? php echo JText::_( 'HIKASHOP_COUPON' ); ? &gt; &lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_coupon_value" &gt; &lt; ? php echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_discount_price*-1.0,$this-&gt;order-&gt;order_currency_id); ? &gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="&lt; ? php echo $colspan; ? &gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_shipping_title key"&gt; &lt;label&gt; &lt; ? php echo JText::_( 'SHIPPING' ); ? &gt; &lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_shipping_value" &gt; &lt; ? php echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_shipping_price,$this-&gt;order-&gt;order_currency_id); ? &gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="&lt; ? php echo $colspan; ? &gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_total_title key"&gt; &lt;label&gt; &lt; ? php echo JText::_( 'HIKASHOP_TOTAL' ); ? &gt; &lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_total_value" &gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_full_price,$this-&gt;order-&gt;order_currency_id); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#20326](#20326) 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#20326 "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...")*

Ok, I think we can all agree that I am terrible with posting the code. Just let me know if you want to see the full code. I previewed my post and it was fine, so I don't know what happened to it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0ODA4LXByb2R1Y3QtdXJsLW9ubHktc2hvd24tYWZ0ZXItcHVyY2hhc2U/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#20341](#20341) 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#20341 "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...")*

You wrote the code:
&lt; ? php echo $product-&gt;product_url; ? &gt;

instead of the code:
&lt;?php echo $product-&gt;product_url; ?&gt;

Because of the spaces you added in the tags, it doesn't work properly.

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

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