VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: mygbn on February 19, 2012, 18:08:50 PM

Title: Making a new template on product page vm2
Post by: mygbn on February 19, 2012, 18:08:50 PM
I have been looking at making a new product page layout so i have modified the .php but its showing a error message like this one components/com_virtuemart/views/productdetails/tmpl/pdf.php on line 351 but line 351 is at the bottom what i haven't touched and is the same as the original layout
<?php
         $iCategory ++;

         // Do we need to close the current row now?
         if ($iCol == $categories_per_row) { ?>
         <?php
         $iCol = 1;
         } else {
            $iCol ++;
         }
      }
      }
      // Do we need a final closing row tag?
      if ($iCol != 1) { ?>
         <?php } ?>
         <?php }
   } ?>
         <div class="clear"></div>
         </div>
      <?php } ?>
      </div>
   <?php } - line 351
   } ?>

Can anyone notice what has happened here please help
Title: Re: Making a new template on product page vm2
Post by: Lexiboy on February 20, 2012, 01:26:57 AM
If you want to modify the views, better do it in your joomla templates directory structure, as mentioned in http://forum.virtuemart.net/index.php?topic=90935.0
If you work directly on the views in Virtuemarts own directory-structure, changes made by you will be overwritten when VM is updated.

The piece of code you pasted is too short to say anything sensible about it.

I would recommend using a PHP IDE like PHPDesigner to work on PHP files if I were you, that will help you find the cause of errors like the one you face now.