Post by pakchilweb » Tue Jun 07, 2022 3:39 pm

this i need on my opencart the relative path not full path..... is any module has this function......Full image path is: http://www.mydomain.com/subdomain/image ... icture.jpg
Relative path is: /image/data/picture.jpg

please must guide us if any one has any code please can any one guide me

New member

Posts

Joined
Sun Jul 15, 2018 7:54 am

Post by JNeuhoff » Tue Jun 07, 2022 6:14 pm

So what exactly is the problem? Just enter a relative path in your product description for your image links.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by pakchilweb » Mon Jun 20, 2022 11:10 pm

https://www.opencart.com/index.php?rout ... n_id=43825
i need like that please see example this module

New member

Posts

Joined
Sun Jul 15, 2018 7:54 am

Post by Cue4cheap » Tue Jun 21, 2022 3:57 am

pakchilweb wrote:
Mon Jun 20, 2022 11:10 pm
https://www.opencart.com/index.php?rout ... n_id=43825
i need like that please see example this module
Why not buy that extension if it does what you need?
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by by mona » Tue Jun 21, 2022 8:53 pm

Just check with the developer the extension does not make every url relative across the board. While making urls relative inside the body is fine (all urls really, not just for images) and will indeed reduce the html size, you do not want relative urls in your meta data nor in your xml files like sitemaps. That data is scraped and in most cases will not retain base href reference making the urls invalid.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by phpscript7 » Fri Jun 24, 2022 5:46 pm

If it is solved now you write [Solved] in the title - Thank you

New member

Posts

Joined
Wed Jan 04, 2017 3:55 pm
Who is online

Users browsing this forum: No registered users and 395 guests