Post by sujana_123 » Tue Sep 05, 2017 10:04 pm

Hi All

I want to change the existing image directory (mydomain.com/images) to subdomain (images.mydomain.com).
I am using the opencart verstion 2.3.0.2.Can anyone please what all the steps I need to do.

I have created subdomain .

Newbie

Posts

Joined
Thu May 18, 2017 3:30 pm

Post by IP_CAM » Wed Sep 06, 2017 12:41 am

Well, you don't need to create an Image Subdomain, since you already have one !
This, by setting the Image Links to http(s):// shop.site/image/... , if your regular Shop URL
used is http(s):// www. shop.site/image/..., or then, in reverse ! ;)
But if you cannot get it to work, I am unable to assist, since I don't use any v.2.x at present.

Good Luck! ;)
Ernie

Attachments

Image Subdomain VqMods and OcMods for OC v.2.1.x + 2.3.x (untested!)


Ernie's OpenShop v.1.75 + OpenCart v.1.5.6.5 LIGHT Test Sites with free responsive Themes
http://www.bigmax.ch/shop/ - http://www.ebikes.li - http://www.ipc.li/shop/ - http://www.openshop.li/shop/
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by yodapt » Wed Sep 06, 2017 2:54 am

Note that it only changes the existing images path, it doesnt alter how filemanager saves them, so if it happens that the subdomain doesnt match the images folder, or that subdomain rests on its own folder instead of a subfolder inside root of the main domain, it wont work.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by IP_CAM » Wed Sep 06, 2017 4:41 am

Note that it only changes the existing images path...

just to mention it, the Mod above just creates a 'regular' http:// Browser Link,
out of most every image, instead of OC-linking them 'internally' by the
image-path, set in the config.php Files. In addition, it add's the Image Size Tags,
missing since OC v.0.99, as it looks! :laugh:

For a Browser and a Performance Test Site, this then will be 'taxed' as/ like
cookie-free Subdomain Image linking, and 'rewarded' accordingly! :D

The ADMIN Section does NOT require to have those Settings, so, one could
remove ADMIN-related Code from the Extensions, and use default admin config.php
to make sure, that all Image-Managers function, without the need, to eventually be
're-linked' internally as well.

Code: Select all

<file name="admin/ .....
...
...
</file>
Ernie
---
PS. Test Result not quite valid at present, it takes specially 'handled' image-cache, to reach this.
It's OC default standard again, at present, and this always has a negative effect on overall results
---
Image

Attachments

http_subdomain_images.png

http_subdomain_images.png (299.78 KiB) Viewed 802 times


Ernie's OpenShop v.1.75 + OpenCart v.1.5.6.5 LIGHT Test Sites with free responsive Themes
http://www.bigmax.ch/shop/ - http://www.ebikes.li - http://www.ipc.li/shop/ - http://www.openshop.li/shop/
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by sujana_123 » Wed Sep 06, 2017 3:31 pm

Thanks for reply.but I coundnt find out a proper solution from these.Can anyone please tell what all the things have to done for moving current image folder to subdomain


Thanks

Newbie

Posts

Joined
Thu May 18, 2017 3:30 pm

Post by yodapt » Wed Sep 06, 2017 7:11 pm

Do you just want to move the image folder? You will not add any new images or products in the future?

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by sujana_123 » Wed Sep 06, 2017 7:42 pm

Yes,I want to upload images in future also

Newbie

Posts

Joined
Thu May 18, 2017 3:30 pm

Post by yodapt » Wed Sep 06, 2017 7:58 pm

I'm writing down an extension for that as we speak, if you care to wait, it should be finished tomorrow at most.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by sujana_123 » Wed Sep 06, 2017 8:18 pm

Thank you

Newbie

Posts

Joined
Thu May 18, 2017 3:30 pm

Post by sujana_123 » Thu Sep 07, 2017 10:36 pm

Any update please?

Newbie

Posts

Joined
Thu May 18, 2017 3:30 pm

Post by yodapt » Fri Sep 08, 2017 2:26 am

It's a bit delayed, I can only finish it tomorrow, sorry about that.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by sujana_123 » Mon Sep 11, 2017 8:24 pm

Any update?

Newbie

Posts

Joined
Thu May 18, 2017 3:30 pm

Post by yodapt » Mon Sep 11, 2017 8:30 pm

It's almost done, give me 2h please.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by yodapt » Mon Sep 11, 2017 11:26 pm


Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm

Who is online

Users browsing this forum: No registered users and 2 guests