News:

Support the VirtueMart project and become a member

Main Menu

Class names to edit shipment/payment buttons

Started by McFish, June 29, 2013, 21:06:53 PM

Previous topic - Next topic

McFish

Hi,

this small patch is made against 2.0.21g and it adds class names to "edit shipment" and "edit payment" links, so that they can be customized with css:


--- components/com_virtuemart/views/cart/tmpl/default_pricelist.php     2013-06-26 21:50:02.000000000 +0300
+++ ../default_pricelist.php    2013-06-29 21:59:14.068000045 +0300
@@ -342,7 +342,7 @@
        <br/>
        <?php
        
if (!empty($this->layoutName) && $this->layoutName == 'default' && !$this->cart->automaticSelectedShipment) {
-               echo 
JHTML::('link'JRoute::('index.php?view=cart&task=edit_shipment'$this->useXHTML$this->useSSL),
$this->select_shipment_text'class=""');
+               echo 
JHTML::('link'JRoute::('index.php?view=cart&task=edit_shipment'$this->useXHTML$this->useSSL),
$this->select_shipment_text'class="VM_EditShipmentLnk"');
        } else {
                
JText::('COM_VIRTUEMART_CART_SHIPPING');
        }
@@ -
367,+367,@@
                <?
php echo $this->cart->cartData['paymentName']; ?>

                <br/>
                <?php if (!empty($this->layoutName) && $this->layoutName == 'default') {
-               echo 
JHTML::('link'JRoute::('index.php?view=cart&task=editpayment'$this->useXHTML$this->useSSL),
$this->select_payment_text'class=""');
+               echo 
JHTML::('link'JRoute::('index.php?view=cart&task=editpayment'$this->useXHTML$this->useSSL),
$this->select_payment_text'class="VM_EditPaymentLnk"');
        } else {
                
JText::('COM_VIRTUEMART_CART_PAYMENT');
        } 
?>
</td>