- Posts: 4
- Thank you received: 0
Link to Product Details instead of Big Image Pop-up (on Category pages)
-
cirymarr
Inactive member - Topic Author
- New Member
Less
More
12 years 7 months ago #18101
by cirymarr
Hi
I am using Hot eCommerce template - everything fine except, when I select a Category, and the list of corresponding products displays, the following happens:
If a Product image is clicked, the full size image is displayed - I want this to display the Product Details page.
Here is the link: trainsplanestoys.com/index.php/shop/by-make/airfix/cars
I know this is a small change, but as I am a newbie to php, I will need some clear guidance.
Many thanks in advance.
I am using Hot eCommerce template - everything fine except, when I select a Category, and the list of corresponding products displays, the following happens:
If a Product image is clicked, the full size image is displayed - I want this to display the Product Details page.
Here is the link: trainsplanestoys.com/index.php/shop/by-make/airfix/cars
I know this is a small change, but as I am a newbie to php, I will need some clear guidance.
Many thanks in advance.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 7 months ago #18126
by ivan.milic
Replied by ivan.milic on topic Re: Product image shows instead of Product Details
yes we had few complains, but template is like that because of way things are handled in vm2
Please Log in to join the conversation.
-
Mummy
Inactive member - New Member
Less
More
- Posts: 12
- Thank you received: 1
12 years 7 months ago #18636
by Mummy
Replied by Mummy on topic Re: Product image shows instead of Product Details
You can do this by changing the default.php.
Creat an Override Folder in ...templates/hot_ecommerce/html/category if doesn´t exist.
Now copy the default.php from /yourpage/components/com_virtuemart/views/virtuemart/tmpl/default.php in your Override-Folder.
In this File delete Line 215: <?php /** @todo make image popup */
echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',false,'class="modal"');
Replace Line 215 with this:
<?php echo JHTML::_('link', JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$product->virtuemart_product_id.'&virtuemart_category_id='.$product->virtuemart_category_id),$product->images[0]->displayMediaThumb('class="catImage" border="0"',false));
?>
Hope this helps you.
Creat an Override Folder in ...templates/hot_ecommerce/html/category if doesn´t exist.
Now copy the default.php from /yourpage/components/com_virtuemart/views/virtuemart/tmpl/default.php in your Override-Folder.
In this File delete Line 215: <?php /** @todo make image popup */
echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',false,'class="modal"');
Replace Line 215 with this:
<?php echo JHTML::_('link', JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$product->virtuemart_product_id.'&virtuemart_category_id='.$product->virtuemart_category_id),$product->images[0]->displayMediaThumb('class="catImage" border="0"',false));
?>
Hope this helps you.
Please Log in to join the conversation.
Time to create page: 0.164 seconds