Joomla.it Forum

Componenti per Joomla! => Gestione e-commerce => : turboEma 19 Mar 2013, 23:17:30

: Virtuemart - Rimuovere varie informazioni dal carrello.
: turboEma 19 Mar 2013, 23:17:30
Ho provato a cercare nel forum, ma nulla  :(
Per sito e-commerce con ritiro in sede della merce, qualcuno sa come rimuovere dal carrello tutti questi campi:

In pratica nel carrello è necessario far vedere solo i dettagli dei prodotti.

Versioni: Joomla 2.5.6 - Virtuemart 2.0.18a



: Re:Virtuemart - Rimuovere varie informazioni dal carrello.
: turboEma 19 Mar 2013, 23:24:04
Più o meno la mia domanda segue questo tipo di discussione:
http://forum.joomla.it/index.php/topic,187979.0.html

Anch'io ho la necessità di usare virtuemart come sistema di prenotazione.
Motivo per cui, mi chiedevo, se si potevano togliere tutte quelle info descritte nel mio precedente topic.
: Re:Virtuemart - Rimuovere varie informazioni dal carrello.
: turboEma 22 Mar 2013, 22:07:37
Ciao ragazzi, ho risolto parzialmente.
Sono riuscito a rimuovere i dati di fatturazione e l'indirizzo di spedizione (con relativi pulsanti) dal carrello.
Basta rimuovere il seguente codice dal file default_pricelist.php che si trova al path:
/components/com_virtuemart/views/cart/tmpl
Sono invece ancora bloccato per questi due punti, perchè non riesco proprio a trovare i file dove andare ad effettuare (tentare) le opportune modifiche per rimuovere anche questi dal carrello:

---CODICE DA RIMUOVERE---

<div class="billto-shipto">
    <div class="width50 floatleft">

        <span><span class="vmicon vm2-billto-icon"></span>
            <?php echo JText::_ ('COM_VIRTUEMART_USER_FORM_BILLTO_LBL'); ?></span>
        <?php // Output Bill To Address ?>
        <div class="output-billto">
            <?php

            foreach ($this->cart->BTaddress['fields'] as $item) {
                if (!empty($item['value'])) {
                    if ($item['name'] === 'agreed') {
                        $item['value'] = ($item['value'] === 0) ? JText::_ ('COM_VIRTUEMART_USER_FORM_BILLTO_TOS_NO') : JText::_ ('COM_VIRTUEMART_USER_FORM_BILLTO_TOS_YES');
                    }
                    ?><!-- span class="titles"><?php echo $item['title'] ?></span -->
                    <span class="values vm2<?php echo '-' . $item['name'] ?>"><?php echo $this->escape ($item['value']) ?></span>
                    <?php if ($item['name'] != 'title' and $item['name'] != 'first_name' and $item['name'] != 'middle_name' and $item['name'] != 'zip') { ?>
                        <br class="clear"/>
                        <?php
                    }
                }
            } ?>
            <div class="clear"></div>
        </div>

        <a class="details" href="<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=BT', $this->useXHTML, $this->useSSL) ?>">
            <?php echo JText::_ ('COM_VIRTUEMART_USER_FORM_EDIT_BILLTO_LB L'); ?>
        [/url]

        <input type="hidden" name="billto" value="<?php echo $this->cart->lists['billTo']; ?>"/>
    </div>

    <div class="width50 floatleft">

        <span><span class="vmicon vm2-shipto-icon"></span>
            <?php echo JText::_ ('COM_VIRTUEMART_USER_FORM_SHIPTO_LBL'); ?></span>
        <?php // Output Bill To Address ?>
        <div class="output-shipto">
            <?php
            if (empty($this->cart->STaddress['fields'])) {
                echo JText::sprintf ('COM_VIRTUEMART_USER_FORM_EDIT_BILLTO_EX PLAIN', JText::_ ('COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL'));
            } else {
                if (!class_exists ('VmHtml')) {
                    require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'html.php');
                }
                echo JText::_ ('COM_VIRTUEMART_USER_FORM_ST_SAME_AS_BT');
                echo VmHtml::checkbox ('STsameAsBTjs', $this->cart->STsameAsBT) . '
';
                ?>
                <div id="output-shipto-display">
                    <?php
                    foreach ($this->cart->STaddress['fields'] as $item) {
                        if (!empty($item['value'])) {
                            ?>
                            <!-- <span class="titles"><?php echo $item['title'] ?></span> -->
                            <?php
                            if ($item['name'] == 'first_name' || $item['name'] == 'middle_name' || $item['name'] == 'zip') {
                                ?>
                                <span class="values<?php echo '-' . $item['name'] ?>"><?php echo $this->escape ($item['value']) ?></span>
                                <?php } else { ?>
                                <span class="values"><?php echo $this->escape ($item['value']) ?></span>
                                <br class="clear"/>
                                <?php
                            }
                        }
                    }
                    ?>
                </div>
                <?php
            }
            ?>
            <div class="clear"></div>
        </div>
        <?php if (!isset($this->cart->lists['current_id'])) {
        $this->cart->lists['current_id'] = 0;
    } ?>
        <a class="details" href="<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=ST&virtuemart_user_id[]=' . $this->cart->lists['current_id'], $this->useXHTML, $this->useSSL) ?>">
            <?php echo JText::_ ('COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL'); ?>
        [/url]

    </div>

    <div class="clear"></div>
</div>