Welcome, Guest
Username: Password: Remember me

TOPIC: Help modifying default.php file for vm category

Help modifying default.php file for vm category 3 years 7 months ago #3745

Hi. In my site gokkamakka.com/shop , i want the product details page to be shown when the user clicks on the thumbnail. Right now it only opens the image in a tab.

I have located the following code inside the category folder of ot_parel.. What should i replace this with?


<?php $image = $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'');echo '<a href="'.$product->link.'" title="'.$product->product_name.'" >'.$image.'</a>';?></div>

Thanks
The administrator has disabled public write access.

Re: Help modifying default.php file for vm category 3 years 7 months ago #3749

  • minhnv
  • minhnv's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 28
  • Thank you received: 10
  • Karma: 2
thechordmaster wrote:
Hi. In my site gokkamakka.com/shop , i want the product details page to be shown when the user clicks on the thumbnail. Right now it only opens the image in a tab.

I have located the following code inside the category folder of ot_parel.. What should i replace this with?


<?php $image = $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'');echo '<a href="'.$product->link.'" title="'.$product->product_name.'" >'.$image.'</a>';?></div>

Thanks

Hi, thechordmaster,
Please go to the following URL ../templates/ot_parelstore/html/com_virtuemart/category/ and edit default.php file same below.
About line 233-234 find the DIV with CLASS "product-image" and replace
<?php /** @todo make image popup */
	echo $product->images[0]->displayMediaThumb ('class="browseProductImage" border="0" title="' . $product->product_name . '" ', TRUE, 'class="modal"');
?>
By
<a href="<?php echo $product->link; ?>" title="<?php echo $product->product_name; ?>">
<?php /** @todo make image popup */
	echo $product->images[0]->displayMediaThumb ('class="browseProductImage" border="0" title="' . $product->product_name . '" ', FALSE, 'class="modal"');
?>
</a>
Regrad
Last Edit: 3 years 7 months ago by minhnv.
The administrator has disabled public write access.
The following user(s) said Thank You: thechordmaster

Re: Help modifying default.php file for vm category 3 years 7 months ago #3770

Works perfect! Just what i wanted thanks! Also, is there any way i can change the format of the invoice generated once an order is placed? Right now, it looks plain (File attached). I need a table around the order contents.
Attachments:
  • Attachment This attachment is hidden for guests. Please log in or register to see it.
The administrator has disabled public write access.
Time to create page: 0.157 seconds