Author Topic: PATH instead URL for IMAGES. And load images form other website  (Read 575 times)

servlet

  • Jr. Member
  • **
  • Posts: 331
  • Business optimization
    • Фототапети
  • VirtueMart Version: 3.2.2
Helllo

We have a client which wants such options to be implemented in the administration section of VM
Once the code is developed, we want to be donated to the Virtuemart team to be embedded in it.
Offers only from known forum users with posts and references...

These option must be selectable with radio button 1) VM Original .... 2) Absolute PATH 3) External URL
This have to be translatable.
The field have to be the same as original. Only changes from radio button for type of link.

1) Original VM option

Load from: images/virtuemart/product/

2) If you want to load images form other site/user in you hosting/VPS. Something like Safe Path

Load from: /home/user/public_html/images/virtuemart/product/
Instead of: images/virtuemart/product/

3) If you want to load images from external website.

Load from: www.yoursite.com/some_directory/
Instead of: images/virtuemart/product/

Please post all additional question here - public
Your offer can be public or private.
Thank you in advance
I am using: Joomla 3.7.2 VM 3.2.2
Он-лайн магазин за фототапети http://mishelfoster.com

welrachid

  • Jr. Member
  • **
  • Posts: 174
  • 3rd party plugin developer
  • Skype Name: wel.rachid
  • VirtueMart Version: Always LATEST stable
Re: PATH instead URL for IMAGES. And load images form other website
« Reply #1 on: June 29, 2017, 15:57:53 pm »
Not sure what the difference is between 2 and 3.
Loading images from local filesystem cannot be reached from web unless its exposed to the web.
therefore i think the option you are looking for is whether or not it is possible to make use of a CDN domain that images can be loaded from. Is that correct?
Best regards,
Wel

servlet

  • Jr. Member
  • **
  • Posts: 331
  • Business optimization
    • Фототапети
  • VirtueMart Version: 3.2.2
Re: PATH instead URL for IMAGES. And load images form other website
« Reply #2 on: June 29, 2017, 16:20:19 pm »
Thank you for replay

VM store only data for file name of product.
Example: product_image_01.jpg

You have to combine PATH + Product image file name

In VM administration you can set the road to this image
OPTION form WEBSITE: You can set http://www.site.com/images/large_images/
Or
OPTION PATH form server:
USER 2 instead USER1 of your hosting VPS or cloud
/home/USER1/public_html/folder/sub_folder

ORIGINAL OPTION
Domain level or something like that
images/custom_folder
images/virtuemart/product/
I am using: Joomla 3.7.2 VM 3.2.2
Он-лайн магазин за фототапети http://mishelfoster.com