// Merge -> revision 8507
This commit is contained in:
@@ -1207,6 +1207,17 @@ class TSBuyerProtection extends AbsTrustedShops
|
||||
TSBuyerProtection::$smarty->assign('onlineshop_name', ConfigurationCore::get('PS_SHOP_NAME'));
|
||||
$url = str_replace(array('#shop_id#', '#shop_name#'), array(TSBuyerProtection::$CERTIFICATE[$lang]['tsID'], urlencode(str_replace('_', '-', ConfigurationCore::get('PS_SHOP_NAME')))), TSBuyerProtection::$certificate_link[$lang]);
|
||||
TSBuyerProtection::$smarty->assign('trusted_shops_url', $url);
|
||||
|
||||
$displayWidget = false;
|
||||
foreach (TSBuyerProtection::$CERTIFICATE as $lang => $certificate)
|
||||
{
|
||||
$certificate = (array)$certificate;
|
||||
if (isset($certificate['tsID']) && $certificate['tsID'] !== '' && $certificate['user'] != '')
|
||||
$displayWidget = true;
|
||||
}
|
||||
if ($displayWidget == false)
|
||||
return '';
|
||||
|
||||
return $this->display(TSBuyerProtection::$module_name, 'seal_of_approval.tpl');
|
||||
}
|
||||
}
|
||||
@@ -1233,6 +1244,8 @@ class TSBuyerProtection extends AbsTrustedShops
|
||||
// If login parameters missing for the certificate an error occurred
|
||||
if ((TSBuyerProtection::$CERTIFICATE[$lang]['user'] == '' OR TSBuyerProtection::$CERTIFICATE[$lang]['password'] == '') AND TSBuyerProtection::$CERTIFICATE[$lang]['typeEnum'] == 'EXCELLENCE')
|
||||
{
|
||||
return '';
|
||||
// Display here has been deprecated by Trusted Shop
|
||||
return '
|
||||
<p style="color:red;text-align:center;font-size:14px;font-weight:bold;">'
|
||||
.$this->l('The Trusted Shop Buyer Protection needs a login to succeed. Please contact the shop administrator.')
|
||||
@@ -1347,8 +1360,8 @@ class TSBuyerProtection extends AbsTrustedShops
|
||||
$return = '';
|
||||
if (!empty($this->errors))
|
||||
$return = '<p style="color:red">'.implode('<br />', $this->errors).'</p>';
|
||||
else
|
||||
$return = '<p>'.$this->l('You will receive an e-mail by Trusted Shops about your guarantee number.').'</p>';
|
||||
//else
|
||||
// $return = '<p>'.$this->l('You will receive an e-mail by Trusted Shops about your guarantee number.').'</p>';
|
||||
return $return;
|
||||
}
|
||||
|
||||
|
||||
@@ -360,11 +360,11 @@ class TrustedShopsRating extends AbsTrustedShops
|
||||
{
|
||||
$link = '';
|
||||
if (strtolower(Context::getContext()->language->iso_code) == 'de')
|
||||
$link = '<p><b><a style="text-decoration: underline; font-weight: bold; color: #0000CC;" target="_blank" href="https://www.trustedshops.de/shopbetreiber/kundenbewertung_anmeldung.html?partnerPackage=PrestaShop&ratingProduct=RATING_PRO&et_cid=14en&et_lid=29069" target="_blank">Jetzt bei Trusted Shops anmelden!</a></b></p><br />';
|
||||
$link = '<p><b><a style="text-decoration: underline; font-weight: bold; color: #0000CC;" target="_blank" href="https://www.trustedshops.de/shopbetreiber/kundenbewertung_anmeldung.html?shopsw=PRESTA&partnerPackage=PrestaShop&ratingProduct=RATING_PRO&et_cid=14en&et_lid=29069" target="_blank">Jetzt bei Trusted Shops anmelden!</a></b></p><br />';
|
||||
if (strtolower(Context::getContext()->language->iso_code) == 'en')
|
||||
$link = '<p><b><a style="text-decoration: underline; font-weight: bold; color: #0000CC;" target="_blank" href="http://www.trustedshops.com/merchants/membership.html?shopsw=PRESTA&et_cid=53&et_lid=3361" target="_blank">Apply now!</a></b></p><br />';
|
||||
$link = '<p><b><a style="text-decoration: underline; font-weight: bold; color: #0000CC;" target="_blank" href="http://www.trustedshops.com/merchants/membership.html?shopsw=PRESTA&partnerPackage=PrestaShop&et_cid=53&et_lid=3361" target="_blank">Apply now!</a></b></p><br />';
|
||||
if (strtolower(Context::getContext()->language->iso_code) == 'fr')
|
||||
$link = '<p><b><a style="text-decoration: underline; font-weight: bold; color: #0000CC;" target="_blank" href="http://www.trustedshops.fr/marchands/tarifs.html?shopsw=PRESTA&et_cid=53&et_lid=3362" target="_blank">Enregistrement Trusted Shops</a></b></p><br />';
|
||||
$link = '<p><b><a style="text-decoration: underline; font-weight: bold; color: #0000CC;" target="_blank" href="http://www.trustedshops.fr/marchands/tarifs.html?shopsw=PRESTA&partnerPackage=PrestaShop&et_cid=53&et_lid=3362" target="_blank">Enregistrement Trusted Shops</a></b></p><br />';
|
||||
|
||||
return '<fieldset>
|
||||
<legend><img src="'.__PS_BASE_URI__.'modules/'.self::$module_name.'/logo.gif" alt="" />'.$this->l('Learn More').'</legend>
|
||||
@@ -444,6 +444,16 @@ class TrustedShopsRating extends AbsTrustedShops
|
||||
if (Configuration::get('TS_TAB0_DISPLAY_RATING_FRONT_END'))
|
||||
self::$smarty->assign(array('rating_url' => $this->getRatingUrl(), 'language' => Language::getIsoById((int)($params['cookie']->id_lang))));
|
||||
|
||||
$displayWidget = false;
|
||||
foreach (TSBuyerProtection::$CERTIFICATE as $lang => $certificate)
|
||||
{
|
||||
$certificate = (array)$certificate;
|
||||
if (isset($certificate['tsID']) && $certificate['tsID'] !== '' && $certificate['user'] != '')
|
||||
$displayWidget = true;
|
||||
}
|
||||
if ($displayWidget == false)
|
||||
return '';
|
||||
|
||||
return $this->display(self::$module_name, 'widget.tpl');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user