public function getImageUrl($name, $ids, $type) { global $link; $url = $link->getImageLink($name, $ids, $type); // older prestashop versions return a relative url here, so we must make sure it's absolute if (CartAPI_Handlers_Helpers::isAbsoluteUrl($url)) { return $url; } else { return CartAPI_Handlers_Helpers::getShopDomain() . $url; } }
public function getImageUrl($name, $id_category, $type) { global $link; $url = $link->getCatImageLink($name, $id_category, $type); if (CartAPI_Handlers_Helpers::isAbsoluteUrl($url)) { return $url; } // new prestashop versions (above 1.5) return an absolute url in getCatImageLink if (method_exists('Link', 'getMediaLink')) { return $link->getMediaLink($url); } else { return CartAPI_Handlers_Helpers::getShopDomain() . $url; } // older prestashop versions don't support media servers }
public static function getShopBaseUrl() { return CartAPI_Handlers_Helpers::getShopDomain() . __PS_BASE_URI__; }
* If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to info@appixia.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade this module to newer * versions in the future. If you wish to customize the module for your * needs please look at the /overrides module directory or refer to * http://kb.appixia.com for more information. * */ include dirname(__FILE__) . '/../../config/config.inc.php'; require_once dirname(__FILE__) . '/../../init.php'; require_once dirname(__FILE__) . '/Helpers.php'; $url = CartAPI_Handlers_Helpers::getShopDomain() . $_REQUEST['q']; ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body style="font-family: Helvetica,Arial,sans-serif; font-size: 13px;"> <iframe src="bridge://SendMessageToParent/Url?<?php echo urlencode($url); ?> " width="0" height="0" frameborder="0"></iframe> <p><b>The Appixia Prestashop module has intercepted the display of this page.</b></p> <p>You are seeing this message because:</p>