Jump to content



Member Since 13 Jun 2019
Offline Last Active Yesterday, 03:52 PM

Posts I've Made

In Topic: Add-Ons By Simtech Development: Google Analytics Enhanced Ecommerce

10 June 2021 - 12:56 PM

New version (v4.10.0.10),


new issues, our choice is either uninstall or no upgrade.


This kind of code is acceptable at simtechdev:


if( isset(x) ){

  y = x


z = y  //y is undefined!


And somehow you decide to make an ajax call on pretty much every page load

showing the ajax loading to users.

In Topic: Cdn For {Script Src=""}

07 June 2021 - 01:31 PM

Managed to do it this way:


     * Create a script url that uses CDN.
     * @param string $src
     * @return string
    function fn_my_changes_script_url($src){
        $url = \Tygh\Storage::instance('assets')->getUrl($src);
        //remove assets part
        $url = str_replace('/var/cache/misc/assets', '', $url);
        return $url;
Called using:
<script src="{fn_my_changes_script_url('js/safssfa/asdf/asfd/asfd/123.js?v=2.3.4')}"></script>

In Topic: Cdn For {Script Src=""}

07 June 2021 - 12:13 PM



Thanks for your response!


Unfortunately it throws errors like... 


"Tygh is not defined" and

"$ is not defined"


Very strange

Seems they forgot about that

In Topic: Cdn For {Script Src=""}

13 May 2021 - 06:36 AM



I think I didn't make it clear.


When I include scripts using the {script} syntax, the cdn url is not used.


That's what I m looking a solution for.



In Topic: Cdn: How To

12 May 2021 - 12:21 PM

Just to note here that,


in case you want to use a custom domain name for your cdn urls,

it seems there is no CNAME setting in the current version of cscart,


so (assuming cloudfront is setup correctly) you have to manually go and 

update the database fields here:

SELECT * FROM cscart_settings_objects o WHERE o.name='cdn' .


This is not very easy since the 'value' field is serialized.


Anyway, I think it would be correct to have the CNAME setting back.