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

#   Virtual7Downloadable products

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 9 months ago [\#186486](#186486) by [Butlerweb](/forum/user/31826-butlerweb "View Butlerweb's Profile")  *[Virtual7Downloadable products](/forum/32-content-creation/874226-virtual7downloadable-products#186486 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 2.5.28 -- Browser(s) name and version -- : Chrome  Hi there Im trying to create a new group of virtual products consisting of MP3's and movies. But I don't want the customers to be able to se the true URL. Preferable a URL that is time limited, but this isn't a necessity.  BUT... I can't figure out how! When I try I can only send the TRUE URL to the customer as a link, and that enables them to forward the e-mail and &quot;share&quot; the product.  How do I create the random URL for the products?  Brgds. Jacob")* was created by *[Butlerweb](/forum/user/31826-butlerweb "View Butlerweb's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 2.5.28
-- Browser(s) name and version -- : Chrome

Hi there
Im trying to create a new group of virtual products consisting of MP3's and movies. But I don't want the customers to be able to se the true URL. Preferable a URL that is time limited, but this isn't a necessity.

BUT... I can't figure out how! When I try I can only send the TRUE URL to the customer as a link, and that enables them to forward the e-mail and "share" the product.

How do I create the random URL for the products?

Brgds. Jacob

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 9 months ago [\#186490](#186490) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Virtual7Downloadable products](/forum/32-content-creation/874226-virtual7downloadable-products#186490 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 2.5.28 -- Browser(s) name and version -- : Chrome  Hi there Im trying to create a new group of virtual products consisting of MP3's and movies. But I don't want the customers to be able to se the true URL. Preferable a URL that is time limited, but this isn't a necessity.  BUT... I can't figure out how! When I try I can only send the TRUE URL to the customer as a link, and that enables them to forward the e-mail and &quot;share&quot; the product.  How do I create the random URL for the products?  Brgds. Jacob")*

Hi,

When you use files in products ; these files are send by HikaShop.
It means that the url will be an HikaShop url and the system will check that the user has right buy the product in order to send him the file.
So the system does not work if you specify an URL ; because HikaShop after his checks will redirect the customer to the specify url and the customer will be able to retrieve final path.
HikaShop is also compatible with "x-send" which is a special feature of some web servers ; it allow to send big files without providing the final URL to the customer.

> We added the support of mod\_xsendfile so that HikaShop can send its files via mod\_xsendfile and avoid issues with big files and serve files faster

[ www.hikashop.com/support/support/documen...ashop-changelog.html](http://www.hikashop.com/support/support/documentation/56-hikashop-changelog.html)

Otherwise it is possible using a custom plugin to generate dynamically the URL.
[ www.hikashop.com/support/support/documen...onBeforeDownloadFile](http://www.hikashop.com/support/support/documentation/62-hikashop-developer-documentation.html#onBeforeDownloadFile)
I used that trigger some times ago for a plugin to to add the support of "lighttpd secure download".

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [Butlerweb](/forum/user/31826-butlerweb "View Butlerweb's Profile")

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 9 months ago [\#187312](#187312) by [Butlerweb](/forum/user/31826-butlerweb "View Butlerweb's Profile")  Replied by *[Butlerweb](/forum/user/31826-butlerweb "View Butlerweb's Profile")* on topic *[Virtual7Downloadable products](/forum/32-content-creation/874226-virtual7downloadable-products#187312 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 2.5.28 -- Browser(s) name and version -- : Chrome  Hi there Im trying to create a new group of virtual products consisting of MP3's and movies. But I don't want the customers to be able to se the true URL. Preferable a URL that is time limited, but this isn't a necessity.  BUT... I can't figure out how! When I try I can only send the TRUE URL to the customer as a link, and that enables them to forward the e-mail and &quot;share&quot; the product.  How do I create the random URL for the products?  Brgds. Jacob")*

OK, I was able to create the products and they work great with an obscured URL.
However some of the files are video files with a size of app. 1 Gb. I can't upload them via the backend, so I upload them via FTP. No problem, but... when I want to add file and sets file mode and enter the true file path and presses OK I receive a white/blank screen.

Why the blank screen?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 9 months ago [\#187320](#187320) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Virtual7Downloadable products](/forum/32-content-creation/874226-virtual7downloadable-products#187320 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 2.5.28 -- Browser(s) name and version -- : Chrome  Hi there Im trying to create a new group of virtual products consisting of MP3's and movies. But I don't want the customers to be able to se the true URL. Preferable a URL that is time limited, but this isn't a necessity.  BUT... I can't figure out how! When I try I can only send the TRUE URL to the customer as a link, and that enables them to forward the e-mail and &quot;share&quot; the product.  How do I create the random URL for the products?  Brgds. Jacob")*

Hi,

The blank screen is because the system does not allow the file path due to some security checks.
See; [ www.hikashop.com/forum/product-category-...-product.html#186480](http://www.hikashop.com/forum/product-category-display/874180-blank-popup-when-trying-to-add-files-to-product.html#186480)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 9 months ago -  11 years 9 months ago [\#187502](#187502) by [Butlerweb](/forum/user/31826-butlerweb "View Butlerweb's Profile")  Replied by *[Butlerweb](/forum/user/31826-butlerweb "View Butlerweb's Profile")* on topic *[Virtual7Downloadable products](/forum/32-content-creation/874226-virtual7downloadable-products#187502 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 2.5.28 -- Browser(s) name and version -- : Chrome  Hi there Im trying to create a new group of virtual products consisting of MP3's and movies. But I don't want the customers to be able to se the true URL. Preferable a URL that is time limited, but this isn't a necessity.  BUT... I can't figure out how! When I try I can only send the TRUE URL to the customer as a link, and that enables them to forward the e-mail and &quot;share&quot; the product.  How do I create the random URL for the products?  Brgds. Jacob")*

Hi Jerome

I have changed the following acc. to your link ([ ](http://www.hikashop.com/forum/product-category-display/874180-blank-popup-when-trying-to-add-files-to-product.html#186480)[ www.hikashop.com/forum/product-category-...-product.html#186480](http://www.hikashop.com/forum/product-category-display/874180-blank-popup-when-trying-to-add-files-to-product.html#186480)). But it makes my entire screen go white when I go to products in backend :blush:
See line 419:  *This attachment is hidden for guests.
Please log in or register to see it.*

Code:

/*$config =&amp; hikashop_config(); $clean_filename = JPath::clean($file-&gt;file_path); $secure_path = $config-&gt;get('uploadsecurefolder'); if((JPATH_ROOT != '') &amp;&amp; strpos($clean_filename, JPath::clean(JPATH_ROOT)) !== 0 &amp;&amp; strpos($clean_filename, JPath::clean($secure_path)) !== 0) return false;*/ if(substr($file-&gt;file_path, 0, 7) != 'http://' &amp;&amp; substr($file-&gt;file_path, 0, 8) != 'https://') { $config =&amp; hikashop_config(); $clean_filename = JPath::clean($file-&gt;file_path); $secure_path = $config-&gt;get('uploadsecurefolder'); if((JPATH_ROOT != '') &amp;&amp; strpos($clean_filename, JPath::clean(JPATH_ROOT)) !== 0 &amp;&amp; strpos($clean_filename, JPath::clean($secure_path)) !== 0) return false;

Last edit: 11 years 9 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: [code] is nice

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 9 months ago [\#187525](#187525) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Virtual7Downloadable products](/forum/32-content-creation/874226-virtual7downloadable-products#187525 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 2.5.28 -- Browser(s) name and version -- : Chrome  Hi there Im trying to create a new group of virtual products consisting of MP3's and movies. But I don't want the customers to be able to se the true URL. Preferable a URL that is time limited, but this isn't a necessity.  BUT... I can't figure out how! When I try I can only send the TRUE URL to the customer as a link, and that enables them to forward the e-mail and &quot;share&quot; the product.  How do I create the random URL for the products?  Brgds. Jacob")*

Hi,

Please set the Joomla error reporting level to "maximum" it will display a php error, and this will give us more informations.
The issue is potentially coming from a missing ending tag "}".

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

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

[](#top)
