Senza categoria

ssh e upload ftp

lftp ftp.dominio.it
user username
password – richiesta direttamente dalla console

Posizionarsi sulla cartella di destinazione ed eseguire l’ultimo comando:
put nome-file-da-caricare

PER COLLEGARSI A UN FTP E SCARICARNE I DATI:

 wget -m –ftp-user=caramaschi_dragonsales –ftp-password=xHNh1rt4bd2f18 ftp://ftp.dragonboiles.com/*

L’ultimo parametro è il percorso della cartella che si desidera scaricare, in questo caso è la root del server

IMPOTANTE

Se compare l’errore Delaying befor reconnect…
inserire questo comando set ftp:ssl-allow no

Senza categoria

WPML::Gestione siti multilingua

Il selettore è il cookie che il componente WPML rilascia denominato _icl_current_language

<?php //Language specific Footer code 
if ($_COOKIE['_icl_current_language'] == "en") {
	echo '
	<script type="text/javascript">
    var _iub = _iub || [];
    _iub.csConfiguration = {
        cookiePolicyId: 921612,
        siteId: 135641,
        lang: "en"
    };
    (function (w, d) {
        var loader = function () { var s = d.createElement("script"), tag = d.getElementsByTagName("script")[0]; s.src = "//cdn.iubenda.com/cookie_solution/iubenda_cs.js"; tag.parentNode.insertBefore(s, tag); };
        if (w.addEventListener) { w.addEventListener("load", loader, false); } else if (w.attachEvent) { w.attachEvent("onload", loader); } else { w.onload = loader; }
    })(window, document);
</script>

	';
	
		}  elseif ($_COOKIE['_icl_current_language'] == "fr") {
	  echo '
<script type="text/javascript">
    var _iub = _iub || [];
    _iub.csConfiguration = {
        cookiePolicyId: 984961,
        siteId: 352876,
        lang: "fr"
    };
    (function (w, d) {
        var loader = function () { var s = d.createElement("script"), tag = d.getElementsByTagName("script")[0]; s.src = "//cdn.iubenda.com/cookie_solution/iubenda_cs.js"; tag.parentNode.insertBefore(s, tag); };
        if (w.addEventListener) { w.addEventListener("load", loader, false); } else if (w.attachEvent) { w.attachEvent("onload", loader); } else { w.onload = loader; }
    })(window, document);
</script>
	  ';
	  } else { 
		  echo '
		  <script type="text/javascript">
    var _iub = _iub || [];
    _iub.csConfiguration = {
        cookiePolicyId: 756162,
        siteId: 352862,
        lang: "it"
    };
    (function (w, d) {
        var loader = function () { var s = d.createElement("script"), tag = d.getElementsByTagName("script")[0]; s.src = "//cdn.iubenda.com/cookie_solution/iubenda_cs.js"; tag.parentNode.insertBefore(s, tag); };
        if (w.addEventListener) { w.addEventListener("load", loader, false); } else if (w.attachEvent) { w.attachEvent("onload", loader); } else { w.onload = loader; }
    })(window, document);
</script>
		  ';
		  
}
 ?>	

 

Senza categoria

Zanetti::Moduli modificati

Qui di seguito i moduli che hanno subito dei fix da parte mia:

GROUPCATEGORY

Originale ajax.php

$sql = "Insert Into "._DB_PREFIX_."groupcategory_groups (`position`, `position_name`, `id_shop`, `categoryId`, `style_id`, `manufactureConfig`, `itemConfig`, `types`, `ordering`, `status`, `type_default`, `layout`) Values ('".$position."', '$position_name', '$shopId', '".$categoryId."', '".$style_id."', '".$manufactureConfig."', '".$itemConfig."', '".$types."', '".$maxOrdering."', 1, '".$type_default."', '".$layout."')";

Modificato

$sql = "Insert Into "._DB_PREFIX_."groupcategory_groups (`position`, `position_name`, `id_shop`, `categoryId`, `style_id`, `manufactureConfig`, `itemConfig`, `types`, `ordering`, `status`, `type_default`, `layout`, `icon`, `note`) Values ('".$position."', '$position_name', '$shopId', '".$categoryId."', '".$style_id."', '".$manufactureConfig."', '".$itemConfig."', '".$types."', '".$maxOrdering."', 1, '".$type_default."', '".$layout."', '', '')";

 

Senza categoria

Zanetti::manufacturer

Blocco Manufacturer

Posizione CSS: /modules/manufactuterslider/manufactuterslider.css
Posizione JS: /modules/manufactuterslider/manufactuterslider.js

Serve per allineare più o meno in basso le icone più piccole

		$(document).ready(function(){
			
			
			$("#manufacturers_logo_slider  li a").hover(
  function () {
	  
    $(this).stop().animate({opacity:1});
  },
  function () {
    $(this).stop().animate({opacity:1});
  }
);


   $(".logo_manufacturer").load(function() {
        console.log($(this).attr("title") + ' ' +$(this).height());
var height = $(this).height();

	 if (height < 70){
 
 $(this).css("margin-top","35px");
 }
 
 if (height === 65 || height === 64){
 
 $(this).css("margin-top","23px");
 }


    });
		
		
		});

 

 

 

Senza categoria

zanetti fasce home page

Gestione fasce in home page:

Modulo: Supershop – Group Category Module
La gestione del css è demandata al file /js/tools.js che sistema sia la fascia alta del nome nascondendo l’icona, che il colore di sfondo.

File indipendente dal template in termini di aggiornamenti.