Fabrizio Cocchi
Da Webmobili Wiki.
Info
Account su Register. Abbiamo creato un sottodominio listanozze e puntato al nostro Apache su AWS.
Register
AFC288-EURO Fabrizio2020!
Personalizzazioni plugin lista notte
Plugin -> nm-gift-registry
griglia default -> Includes/lib/Setup + css personalizzato -> .nmgr-display-modes {display: none;}
non cliccabile il prodotto -> Includes/Table/iItemsTable.php riga 224
traduzioni
Aggiunta Cadauno al prezzo
Modificato file originale del plugin nm-gift-registry\includes\Tables\ItemsTable.php
public function get_item_cost() {
ob_start();
$item = $this->get_row_object();
$cost_per_item_text = nmgr()->is_pro ?
__( 'Cost per item', 'nm-gift-registry' ) :
__( 'Cost per item', 'nm-gift-registry-lite' );
?>
<div class="nmgr-tip" title="<?php echo esc_attr( $cost_per_item_text ); ?>">
<?php echo wp_kses_post( $item->get_cost( true )." (cad.)" ); ?>
</div>
<?php
return ob_get_clean();
}
Rimozione Link Lista Nozze e aggiunta Carrello
Modificato file del plugin nm-gift-registry\includes\Lib\Single.php
Al fondo modificata la funzione e aggiunto link Vai al Carrello:
public static function show_copy_link( $wishlist ) {
$title = sprintf(
/* translators: %s: wishlist type title */
nmgr()->is_pro ? esc_attr__( 'Copy your %s url', 'nm-gift-registry' ) : esc_attr__( 'Copy your %s url', 'nm-gift-registry-lite' ),
esc_html( nmgr_get_type_title( '', 0, $wishlist->get_type() ) )
);
?>
<!--
<div class="nmgr-copy-wrapper nmgr-tip"
title="<?php echo esc_html( $title ); ?>"
style="margin-top:7px;color:currentColor;cursor:pointer;display:inline-flex;align-items:center;">
<svg width="1.2em" height="1.2em" fill="currentColor" clip-rule="evenodd" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m6 18h-3c-.48 0-1-.379-1-1v-14c0-.481.38-1 1-1h14c.621 0 1 .522 1 1v3h3c.621 0 1 .522 1 1v14c0 .621-.522 1-1 1h-14c-.48 0-1-.379-1-1zm1.5-10.5v13h13v-13zm9-1.5v-2.5h-13v13h2.5v-9.5c0-.481.38-1 1-1z" fill-rule="nonzero"/></svg>
<div class="nmgr-copy" style="margin-left:6px;border-bottom:1px dashed currentColor;">
<?php echo esc_html( $wishlist->get_permalink() ); ?>
</div>
</div>-->
<div>
<a href="<?php echo wc_get_cart_url(); ?>">Vai al carrello</a>
</div>
<?php
}
Css personalizzato
/*Opzioni visualizzazione lista/griglia articoli*/
.nmgr-display-modes {display: none;}
/*Bottone Aggiungi al carrello*/
.nmgr_add_to_cart_button.button {
display: inline-block;
font-weight: 400;
color: #fff;
text-align: center;
vertical-align: middle;
cursor: pointer;
background-color: #000;
border: 1px solid #000;
padding: 0.375rem 0.75rem;
font-size: 0.8rem;
line-height: 1;
border-radius: 0.375rem;
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
text-decoration: none;
}
.nmgr_add_to_cart_button.button:hover {
background-color: #9e9e9e;
border-color: #9e9e9e;
}
.nmgr_add_to_cart_button.button:active {
background-color: #000;
border-color: #000;
}
/*nascondere Footer Colibri*/
#copyright{
display:none;
}