- Posts: 28
- Thank you received: 0
Help modifying default.php file for vm category
- Sanjay Kumar
-
Topic Author
- Offline
- Junior Boarder
-
Less
More
12 years 2 months ago #3745
by Sanjay Kumar
Help modifying default.php file for vm category was created by Sanjay Kumar
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
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
Please Log in or Create an account to join the conversation.
12 years 2 months ago - 12 years 2 months ago #3749
by Minh Van
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
By
Regrad
Replied by Minh Van on topic Re: Help modifying default.php file for vm category
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
Code:
<?php /** @todo make image popup */
echo $product->images[0]->displayMediaThumb ('class="browseProductImage" border="0" title="' . $product->product_name . '" ', TRUE, 'class="modal"');
?>
Code:
<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>
Last edit: 12 years 2 months ago by Minh Van.
The following user(s) said Thank You: Sanjay Kumar
Please Log in or Create an account to join the conversation.
- Sanjay Kumar
-
Topic Author
- Offline
- Junior Boarder
-
Less
More
- Posts: 28
- Thank you received: 0
12 years 2 months ago #3770
by Sanjay Kumar
Replied by Sanjay Kumar on topic Re: Help modifying default.php file for vm category
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.
Please Log in or Create an account to join the conversation.
Time to create page: 0.190 seconds