Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Data Feeds And Https Rate Topic   - - - - -

 
  • strategia
  • Newbie
  • Trial users
  • Join Date: 05-Apr 17
  • 8 posts

Posted 09 July 2018 - 02:39 PM #1

Hi,

 
i've created new data feed with products url and products images url but all urls is http and not https like the site, how i can fix it?
 

I've cs-cart 4.2.4 with Google Export addon.

Thanks



 
  • strategia
  • Newbie
  • Trial users
  • Join Date: 05-Apr 17
  • 8 posts

Posted 18 July 2018 - 09:33 AM #2

Up... 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17613 posts

Posted 18 July 2018 - 01:28 PM #3

app/controllers/backend/exim.php

 

Try to replace

return !empty($image_data) ? $image_pair['detailed']['http_image_path'] : '';

with

return !empty($image_data) ? $image_pair['detailed']['https_image_path'] : '';

(!) Not tested


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • strategia
  • Newbie
  • Trial users
  • Join Date: 05-Apr 17
  • 8 posts

Posted Yesterday, 07:22 AM #4

Hi eComLabs,
 
thanks for reply but it don't work... the protocol don't change.
 
I've tryed to change fn_exim_get_detailed_image_url too but the value into csv file for this field becamed is empty (no url)
 
Into my feed i've Product Url and Detailed image Url


 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3620 posts

Posted Yesterday, 09:30 AM #5

Both the Product URL and the Detailed image URL are showing http?



 
  • strategia
  • Newbie
  • Trial users
  • Join Date: 05-Apr 17
  • 8 posts

Posted Yesterday, 09:38 AM #6

Yes



 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3620 posts

Posted Yesterday, 09:42 AM #7

Is your admin panel https?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17613 posts

Posted Yesterday, 01:20 PM #8

 

Hi eComLabs,
 
thanks for reply but it don't work... the protocol don't change.
 
I've tryed to change fn_exim_get_detailed_image_url too but the value into csv file for this field becamed is empty (no url)
 
Into my feed i've Product Url and Detailed image Url

 

 

In your version protocol is hardcoded and system does not check store-front protocol. Try the following code

return !empty($image_data) ? str_replace('http:', 'https:', $image_pair['detailed']['http_image_path']) : '';

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.