News:

Looking for documentation? Take a look on our wiki

Main Menu

Ask a question about this product box

Started by markmilo1115, May 17, 2012, 02:57:57 AM

Previous topic - Next topic

markmilo1115

I'm interested in relocating the "Ask a question about this product" button.  I've looked through the various PHP document in the views folder, but found myself at a loss.  Not very proficient at coding PHP.

Does anyone have any experience or suggestion on how relocate this button to various locations on the product details page?

Attached is an image illustrating my goal.

Thanks.

[attachment cleanup by admin]

Murkur

#1
You need to go in file "default.php" in "components\com_virtuemart\views\productdetails\tmpl\" and find this text "// Ask a question about this product".
In my file it`s about 214-230 lines:

<?php
// Ask a question about this product
if (VmConfig::get('ask_question'1) == '1') {
    
?>

    <div class="ask-a-question">
        <a class="ask-a-question" href="<?php echo $url ?>" ><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL'?></a>
        <!--<a class="ask-a-question modal" rel="{handler: 'iframe', size: {x: 700, y: 550}}" href="<?php echo $url ?>"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL'?></a>-->
    </div>
<?php }
?>


<?php
// Manufacturer of the Product
if (VmConfig::get('show_manufacturers'1) && !empty($this->product->virtuemart_manufacturer_id)) {
    echo $this->loadTemplate('manufacturer');
}
?>



So, you can move this code to your place.

markmilo1115

Thank you very much, that did the trick.