X-Cart is an e-commerce solution that enables you to improve the shopping cart experience when shopping online. Written in PHP, the amounts for added products add up and display the total amount to be paid. The extension includes, among other things, items such as taxes or shipping costs. The solution is valued for several components. Among them, we find a low license purchase price; it takes into account website templates for e-commerce, is consistent with search engines’ requirements, and compliant with PCI-DSS. A website with X-Cart can run even faster if we integrate it with a CDN service.
How to connect BlazingCDN to X-Cart? Start by setting up your CDN domain in Static. If it has HTPPS extension, add SSL to it. Don’t forget to back up your database and other resources. Additionally, if you are using non-standard fonts, run CORS. To fully perform the integration, in the next moves, replace the code in the following elements:
- Open the file smarty.php located in the root directory of X-Cart.
Replace lines below:
$smarty->assign(‘ImagesDir’, $xcart_web_dir . $smarty_skin_dir . ‘/images’);
$smarty->assign(‘SkinDir’, $xcart_web_dir . $smarty_skin_dir);
$smarty->assign(‘ImagesDir’, ‘http://cdn00000000.blazingcdn.net’ . $smarty_skin_dir . ‘/images’);
$smarty->assign(‘SkinDir’, ‘http://cdn00000000.blazingcdn.net’ . $smarty_skin_dir);
- Then open the file /include/templater/plugins/function.load_defer_code.php.
$cacheWebFile = $var_dirs_web[‘cache’] . ‘/’ . $label . ‘.’ . $md5Suffix . ‘.’ . $type;
$cacheWebFile = ‘http://cdn00000000.blazingcdn.net’ . $var_dirs_web[‘cache’] . ‘/’ . $label . ‘.’ . $md5Suffix . ‘.’ . $type;
- Next step – open the file /include/func/func.files.php.
global $config, $sql_tbl, $xcart_dir, $current_location;
And add (not replace):
$current_location = ‘http://cdn00000000.blazingcdn.net’;
- Going forward – open the file /include/templater/plugins/function.get_category_image_url.php.
return func_convert_amp(func_get_image_url($category[‘categoryid’], ‘C’, $category[‘image_path’]));
With the following line where www.yourdomain.com is supposed to be the domain of your website:
return str_replace(‘www.mycompany.com‘, ‘cdn00000000.blazingcdn.net’, func_convert_amp(func_get_image_url($category[‘categoryid’], ‘C’, $category[‘image_path’])));
- At the end – open the file /skin/common_files/modules/Banner_System/banner_rotator.tpl.
With the following line where www.mycompany.com is supposed to be the domain of your website:
How to integrate BlazingCDN and Magneto
How to integrate BlazingCDN and Joomla
How to integrate BlazingCDN and Drupal
BlazingCDN integration with Zend
BlazingCDN integration with XenForo
BlazingCDN integration with WordPress
BlazingCDN integration with vBulletin
BlazingCDN integration with Typo3
BlazingCDN integration with Symfony
BlazingCDN integration with SocialEngine
BlazingCDN integration with Shopware
BlazingCDN integration with PrestaShop
BlazingCDN integration with Phalcon
BlazingCDN integration with Perch
BlazingCDN integration with Opencart
BlazingCDN integration with Odoo
BlazingCDN integration with MODX CDN
BlazingCDN integration with Laravel
BlazingCDN integration with Kirby CDN
BlazingCDN integration with Kentico
BlazingCDN integration with IPS
BlazingCDN integration with Grav
BlazingCDN integration with Discourse
BlazingCDN integration with Craft
BlazingCDN integration with concrete5
BlazingCDN integration with CodeIgniter
BlazingCDN integration with b2evolution
BlaizngCDN integration with Ruby on Rails