Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 ship station images (integrated)
Author « Topic »  

atlend
Advanced Member

USA
349 Posts

Pre-sales questions only
(More Details...)

Posted - 04/28/2025 :  11:00:40  
Does the built-in ship station integration bring in images with the orders? I have been using the mod for years and I was looking into the code and it doesnt seem like the built-in ss integration has a line in the XML for the product images. Am I seeing that correctly? If it is in there, I think I need to make a custom modification to how the XML is output, but I can't seem to find it in the first place. Thanks!

atlend
Advanced Member

USA
349 Posts

Pre-sales questions only
(More Details...)

Posted - 04/28/2025 :  13:38:49  
I think my question was addressed on another thread. No image support for the integrated, but just did a custom modification. If this ever gets added in by default it would be nice if it was setup to function with images hosted on other servers. The way I set it up was modifying the SQL query and then getting the image this way:

[code]$src = str_replace('format=webp&', '', $rs2['imagesrc']);
if (preg_match('#^https?://#i', $src)) {
$imageUrl = $src;
} else {
$imageUrl = 'http://'. $_SERVER['SERVER_NAME'] . '/' . $src;
} [/code]

This detects if there is a http in the image source and then uses it as is. If it does not have the http, then it functions using the local folder. This prevents it from outputting something like "http://www.domain.com/https://www.3rdpartyimghost.com/image.jpg" but if it is locally hosted it will output "http://www.domain.com/prodimages/image.jpg"

dbdave
ECT Moderator

USA
10504 Posts

Posted - 04/28/2025 :  14:48:35  
Hi, that's clever.
However, if you did not already, be sure to comment your mods as it will make your life much easier when installing updates
if you use a file compare program, even better.

Thanks,
David

steven vaccaro
Ecommerce Template Guru

USA
1084 Posts

Posted - 05/15/2025 :  08:30:48  
Atlend id love to try this. Its been a problem for us for a while.

Can you give me some direction on what file to enter the code into?
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000