VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: t68 on April 29, 2013, 08:59:20 AM

Title: Want to add more space betwen shipment and payment lines in checkout
Post by: t68 on April 29, 2013, 08:59:20 AM
Hi!
Here´s a very specific question about styling the checkout page:
Att the bottom ov the table, i would like to add more space below row with the link text labeled "Choose or change shipment method" and the row below for payment method.
Have tried to change CSS in my override but if I change style for the link it affects entire site. Doesn´t seem to have an a-class of it´s own. So I´t seems as if I have to enter a <br> or something in the php page (default_pricelist.php) to get som spacing under. But looking at this code I gets a little lost. I´m no php-wiz :-).

Thank´s for any help!
Title: Re: Want to add more space betwen shipment and payment lines in checkout
Post by: Djirko on April 29, 2013, 10:28:11 AM
Are you using default template or already using some overrides? Post a pic of how you want to look it like, so i could try to help you.
Title: Re: Want to add more space betwen shipment and payment lines in checkout
Post by: jenkinhill on April 29, 2013, 10:56:09 AM
Look for the following in default_pricelist.php around line 360

<tr class="sectiontableentry1">
   <?php if (!$this->cart->automaticSelectedPayment) { ?>

   <td colspan="4" align="left">
      <?php echo $this->cart->cartData['paymentName']; ?>

You can either add another class identifier or id to the <tr> and then use css, or add a <br /> after  <td colspan="4" align="left">

Remember to use your edited file as a template override.
Title: Re: Want to add more space betwen shipment and payment lines in checkout
Post by: t68 on May 01, 2013, 21:51:47 PM
Thank´s Jenkin! The <br/> in the right place did the trick for me!