PDA

Zobacz pełną wersję : Zmiana wyglądu logowania w module virtuemart



Mateluta
11-01-2011, 17:06
Witam serdecznie, nie mogę dojść do tego jak zmienić część logowania modułu mod_virtuemart. Moduł główny VirtueMart Module pozwala np. na wyswietlenie koszyka, logowania itp. Chciałbym zmienić wygląd części logowania. Zakładam, że znajduje się to w pliku mod_virtuemart.php i shop.basket_short.php:

W pliku mod_virtuemart.php mamy coś takiego:

// Show a link to the cart and show the mini cart
// Check to see if minicart module is published, if it is prevent the minicart displaying in the VM module
$q="SELECT published FROM #__modules WHERE module='mod_virtuemart_cart'";
$db->query( $q );

if (USE_AS_CATALOGUE != '1' && $show_minicart == 'yes' && !$db->f("published") ) {
$_SESSION['vmMiniCart'] = true;
?><div class="vmCartModule">
<?php
$class_att = 'class="'. $class_mainlevel .'"';
$href = $sess->url($mm_action_url."index.php?page=shop.cart");
$href2 = $sess->url($mm_action_url."index2.php?page=shop.cart", true);

$text = $VM_LANG->_('PHPSHOP_CART_SHOW');
if( $useGreyBox_cartlink ) {
echo vmCommonHTML::getGreyboxPopUpLink( $href2, $text, '', $text, $class_att, 500, 600, $href );
}
else {
echo vmCommonHTML::hyperlink( $href, $text, '', $text, $class_att );
}
?>

<?php // ^ Do not change this class name!! It is used to update this cell after a cart action
// This is the 'mini cart' file
include (PAGEPATH.'shop.basket_short.php');
?>
</div>
<?php
} else {
$_SESSION['vmMiniCart'] = false;

}?>W pliku shop.basket_short.php mamy taki urywek:

if( !empty($_SESSION['coupon_discount']) ) {
$total -= $_SESSION['coupon_discount'];
}
if(!$empty_cart) {
if ($amount > 1) {
$total_products = $amount ." ". $VM_LANG->_('PHPSHOP_PRODUCTS_LBL');
}
else {
$total_products = $amount ." ". $VM_LANG->_('PHPSHOP_PRODUCT_LBL');
}


$total_price = $CURRENCY_DISPLAY->getFullValue( $total );Te linijki są odpowiedzialne za wyswietlenie liczby produktów i łącznej kwoty. Jak np sprawić by te dane nie wyswietlaly się w divie? Jak dotrzeć do części odpwoiedzialnej za "włożenie" tej treści w diva? Co odpowiada za tworzenie szkielektu dla tej treści? Pozdrawiam