Jump to content

Carrello spostato sotto Userinfo, ma non sta piu' a destra!


wildcherry

Recommended Posts

PS 1.5.6 - Default theme

 

Volevo avere il Carrello sotto Userinfo, cosi' ho invertito le 2 posizioni in Blockuserinfo.tpl, come segue:

 

<!-- Block user information module HEADER -->

<div id="header_user" {if $PS_CATALOG_MODE}class="header_user_catalog"{/if}>

                  <p id="header_user_info">

                                    {l s='Welcome' mod='blockuserinfo'}

                                    {if $logged}

                                                      <a href="{$link->getPageLink('my-account', true)|escape:'html'}" title="{l s='View my customer account' mod='blockuserinfo'}" class="account" rel="nofollow"><span>{$cookie->customer_firstname} {$cookie->customer_lastname}</span></a>

                                                      <a href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html'}" title="{l s='Log me out' mod='blockuserinfo'}" class="logout" rel="nofollow">{l s='Log out' mod='blockuserinfo'}</a>

                                    {else}

                                                      <a href="{$link->getPageLink('my-account', true)|escape:'html'}" title="{l s='Login to your customer account' mod='blockuserinfo'}" class="login" rel="nofollow">{l s='Login' mod='blockuserinfo'}</a>

                                    {/if}

                  </p>

                  <ul id="header_nav">

                                    {if !$PS_CATALOG_MODE}

                                    <li id="shopping_cart">

                                                      <a href="{$link->getPageLink($order_process, true)|escape:'html'}" title="{l s='View my shopping cart' mod='blockuserinfo'}" rel="nofollow">{l s='Cart' mod='blockuserinfo'}

                                                      <span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</span>

                                                      <span class="ajax_cart_product_txt{if $cart_qties != 1} hidden{/if}">{l s='Product' mod='blockuserinfo'}</span>

                                                      <span class="ajax_cart_product_txt_s{if $cart_qties < 2} hidden{/if}">{l s='Products' mod='blockuserinfo'}</span>

                                                      <span class="ajax_cart_total{if $cart_qties == 0} hidden{/if}">

                                                                        {if $cart_qties > 0}

                                                                                          {if $priceDisplay == 1}

                                                                                                            {assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}

                                                                                                            {convertPrice price=$cart->getOrderTotal(false, $blockuser_cart_flag)}

                                                                                          {else}

                                                                                                            {assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}

                                                                                                            {convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)}

                                                                                          {/if}

                                                                        {/if}

                                                      </span>

                                                      <span class="ajax_cart_no_product{if $cart_qties > 0} hidden{/if}">{l s='(empty)' mod='blockuserinfo'}</span>

                                                      </a>

                                    </li>

                                    {/if}

                                    <li id="your_account"><a href="{$link->getPageLink('my-account', true)|escape:'html'}" title="{l s='View my customer account' mod='blockuserinfo'}" rel="nofollow">{l s='Your Account' mod='blockuserinfo'}</a></li>

                  </ul>

</div>

<!-- /Block user information module HEADER -->

 

Risultato: il carrello si e' spostato sotto, ma verso sinistra... e non ho idea come spostarlo a destra, proprio sotto "Benvenuto / Entra".

Qualcuno sa come fare?

Link to comment
Share on other sites

prima di <ul id="header_nav"> inserisci questa riga:

<br class="clear" />

regola nel css la distanza in alto aggiungendo in blockuserinfo.css:

 #header_user #shopping_cart{
    margin-top:1em;
}

risultato

post-148583-0-59051500-1385055758_thumb.jpg

 

sarebbe meglio, per non avere casini in caso di aggiornamento, tu creassi 2 cartelle chiamate blockuserinfo da inserire dentro due chiamate modules,

una va in themes > tuo_tema per salvare il tpl modificato

l'altra va in themes > tuo_tema > css per salvare il css modificato

Edited by ariom (see edit history)
Link to comment
Share on other sites

Ha funzionato! Grazie mille..non ce l'avrei mai fatta.


 


Riguardo a regolare la distanza dall'alto, io ho modificato margin-top, come segue:


 


/* cart */


.lt-ie6 #shopping_cart {width: 130px;}


#shopping_cart a{


height: 15px;


padding:15px 27px 10px 43px;


background: url('img/icon/cart.gif') no-repeat 10px 9px #dbcce6;


margin-top:20px;


min-width: 130px;/* 200 */


 


Andra' bene lo stesso, o e' meglio che faccio come mi hai detto tu?


 


Grazie per la dritta dei files. Tutti quelli modificati me li sto salvando proprio per il terrore di perdere tutto con l'aggiornamento.


Sto lavorando su local server. Non avendo mai lavorato su un sito prima d'ora, spero anche che nel momento di caricare il sito sul webserver potro' stare tranquilla. Quando non si conoscono le cose si ha un po' paura... :unsure: 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...