Author Topic: Class names to edit shipment/payment buttons  (Read 2171 times)

McFish

  • Beginner
  • *
  • Posts: 1
Class names to edit shipment/payment buttons
« on: June 29, 2013, 21:06:53 pm »
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:

Code: [Select]
--- 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>