News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

how to change "custom field image" position in details view

Started by old_fritz, January 16, 2013, 08:47:08 AM

Previous topic - Next topic

old_fritz

hi there,

trying to put an "custom field" image right beside the add to cart button in details view.
i changed the button to an url link to an external page. that worked pretty good.

but the image which should display the logo from the external shops doesn´t show up.
i got the information from an other tread to put this code in the addtocart.php:

This is how the ontop is done

<?php  if (!empty($this->product->customfieldsSorted['ontop'])) {
   
$this->position 'ontop';
   echo 
$this->loadTemplate('customfields');
    } 
// Product Custom ontop end
    
?>


the text is shown exactly where the image should shown up. but like i told the image doesn´t.

the images custom field is named "shipping_icon".

i should also say that i use a vm-theme called vento from virtueplanet. the image is shown on a bottom position.
(have a look at the attached screenshot)
there has the information somwhere that the custom field has to show up there.
the code of this file is slightly different from the default vm_addtocart.php

here the full vento_addtocart.php:

<?php defined('_JEXEC') or die('Restricted access');
/*------------------------------------------------------------------------------------------------------------
# Vento Theme for VirtueMart 2.0 Ver. 1.0
# ------------------------------------------------------------------------------------------------------------
# Copyright (C) 2012-2013 Virtue Planet Solutions. All Rights Reserved.
# License - GPL V2
# Author: VirtuePlanet Services LLP
# Email: info@virtueplanet.com
# Websites:  http://www.virtueplanet.com
------------------------------------------------------------------------------------------------------------*/
?>

<div class="addtocart-area">

    <form method="post" class="product js-recalculate" action="index.php" >
<?php // Product custom_fields
if (!empty($this->product->customfieldsCart)) { ?>

    <div class="product-fields">
<?php foreach ($this->product->customfieldsCart as $field) { 
if ($field->field_type == 'M' or $field->field_type == 'S') { ?>

    <div class="product-field product-field-type-<?php echo $field->field_type ?>">
<div class="product-fields-title-group">
<span class="product-fields-title" ><b><?php echo JText::_($field->custom_title?></b></span>
<?php if ($field->custom_tip)
     echo JHTML::tooltip($field->custom_tipJText::_($field->custom_title), 'tooltip.gif'); ?>

</div>
<div class="product-field-display"><ul><?php echo $field->display ?></ul></div>
<div class="product-field-desc"><?php echo $field->custom_field_desc ?></div>
    </div><br />
<?php } elseif ($field->field_type == 'V' or $field->field_type == 'A' ) { ?>
    <div class="product-field product-field-type-<?php echo $field->field_type ?>">
<span class="product-fields-title" ><b><?php echo JText::_($field->custom_title?></b></span>
<?php if ($field->custom_tip)
     echo JHTML::tooltip($field->custom_tipJText::_($field->custom_title), 'tooltip.gif'); ?>

<span class="product-field-display"><?php echo $field->display ?></span>
<span class="product-field-desc"><?php echo $field->custom_field_desc ?></span>
    </div><br />
<?php } else { ?>
<div class="product-field product-field-type-<?php echo $field->field_type ?>">
<div class="product-fields-title-group">
<span class="product-fields-title" ><b><?php echo JText::_($field->custom_title?></b></span>
<?php if ($field->custom_tip)
     echo JHTML::tooltip($field->custom_tipJText::_($field->custom_title), 'tooltip.gif'); ?>

</div>
<span class="product-field-display"><?php echo $field->display ?></span>
<span class="product-field-desc"><?php echo $field->custom_field_desc ?></span>
    </div><br />
    <?php }
}
?>

    </div>
<?php
}
/* Product custom Childs
 * to display a simple link use $field->virtuemart_product_id as link to child product_id
 * custom_value is relation value to child
 */

if (!empty($this->product->customsChilds)) {
    ?>

    <div class="product-fields">
    <?php foreach ($this->product->customsChilds as $field) { ?>
    <div class="product-field product-field-type-<?php echo $field->field->field_type ?>">
<span class="product-fields-title" ><b><?php echo JText::_($field->field->custom_title?></b></span>
<span class="product-field-desc"><?php echo JText::_($field->field->custom_value?></span>
<span class="product-field-display"><?php echo $field->display ?></span>

    </div><br />
<?php ?>
    </div>
<?php ?>

<div class="addtocart-bar">

<a target="_blank" <?php echo JHTML::link ($this->product->product_url,  JText::_('zum Shop'), array('title' => $product->product_name,'class' => 'product-details')) ?></a>

This is how the ontop is done

<?php  if (!empty($this->product->customfieldsSorted['ontop'])) {
   
$this->position 'ontop';
   echo 
$this->loadTemplate('customfields');
    } 
// Product Custom ontop end
    
?>


    <div class="clear"></div>
</div>

<?php // Display the add to cart button END  ?>
<input type="hidden" class="pname" value="<?php echo $this->product->product_name ?>" />
<input type="hidden" name="option" value="com_virtuemart" />
<input type="hidden" name="view" value="cart" />
<noscript><input type="hidden" name="task" value="add" /></noscript>
<input type="hidden" name="virtuemart_product_id[]" value="<?php echo $this->product->virtuemart_product_id ?>" />
<?php /** @todo Handle the manufacturer view */ ?>
<input type="hidden" name="virtuemart_manufacturer_id" value="<?php echo $this->product->virtuemart_manufacturer_id ?>" />
<input type="hidden" name="virtuemart_category_id[]" value="<?php echo $this->product->virtuemart_category_id ?>" />
    </form>

    <div class="clear"></div>
</div>


i tried now for days to change and rode so many threads but can´t help it.
may somebody found a very easy solutions for it ?!

thanks a lot

[attachment cleanup by admin]

PRO


old_fritz

i rode that thread already and changed that as well.
but i gave it another try and changed any ´bottom´ & ´normal´ setting to ´ontop´ in the productdetails/ default(vento).php again.

the result is, that the image is hidden at all. ???

guess i have to change something in a other file as well?!

so was the setting in the addtocart.php right? do i have to change something there.
it´s the same i just see the text there, where the custom picture should belong.

here is for safety the vento.php of the productdetails (may i forget something):

<?php defined('_JEXEC') or die('Restricted access');
/*------------------------------------------------------------------------------------------------------------
# Vento Theme for VirtueMart 2.0 Ver. 1.0
# ------------------------------------------------------------------------------------------------------------
# Copyright (C) 2012-2013 Virtue Planet Solutions. All Rights Reserved.
# License - GPL V2
# Author: VirtuePlanet Services LLP
# Email: info@virtueplanet.com
# Websites:  http://www.virtueplanet.com
------------------------------------------------------------------------------------------------------------*/
JHTML::_('behavior.modal');
JHTML::_('behavior.tooltip');
$document JFactory::getDocument();

$document->addStyleSheet($this->baseurl."/components/com_virtuemart/assets/css/vento-theme.css");
$document->addStyleSheet($this->baseurl."/components/com_virtuemart/assets/css/vento-color-fonts.css");
$document->addScript($this->baseurl."/components/com_virtuemart/assets/js/vento/vento.js.php");

if (!empty(
$this->product->product_desc) || !empty($this->product->customfieldsSorted['ontop']) || $this->product->packaging || $this->product->box ) {
$document->addScript($this->baseurl."/components/com_virtuemart/assets/js/vento/vp_tabcontent.js");
}

$url JRoute::_('index.php?option=com_virtuemart&view=productdetails&task=askquestion&virtuemart_product_id=' $this->product->virtuemart_product_id '&virtuemart_category_id=' $this->product->virtuemart_category_id '&tmpl=component');
$document->addScriptDeclaration("

"
);
/* Let's see if we found the product */
if (empty($this->product)) {
    echo 
JText::_('COM_VIRTUEMART_PRODUCT_NOT_FOUND');
    echo 
'<br /><br />  ' $this->continue_link_html;
    return;
}
?>

<div id="vento">
<div class="productdetails-view">
<?php if (VmConfig::get('product_navigation'1)) {
if (!empty($this->product->neighbours ['previous'][0]) and !empty($this->product->neighbours ['next'][0])) { ?>

<div class="product-neighbours">
<?php
if (!empty($this->product->neighbours ['previous'][0])) {
$prev_link JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' $this->product->neighbours ['previous'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' $this->product->virtuemart_category_id);
echo JHTML::_('link'$prev_link$this->product->neighbours ['previous'][0]
['product_name'], array('class' => 'previous-page'));
}
if (!empty($this->product->neighbours ['next'][0])) {
$next_link JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' $this->product->neighbours ['next'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' $this->product->virtuemart_category_id);
echo JHTML::_('link'$next_link$this->product->neighbours ['next'][0] ['product_name'], array('class' => 'next-page'));
    } ?>

    <div class="clear"></div>
</div>
    <?php }} ?>
<div class="vento-product-details-area">
<div class="pp-top-columns width50 floatleft">
<?php echo $this->loadTemplate('gallery'); ?>
</div>
<div class="pp-top-columns width50 floatright">
<div class="product-info">
<div class="product-info-box">
<?php if (VmConfig::get('show_emailfriend') || VmConfig::get('show_printicon') || VmConfig::get('pdf_button_enable')) { ?>
        <div class="icons">
    <?php     
     $link = 'index.php?tmpl=component&option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->virtuemart_product_id;
     $MailLink = 'index.php?option=com_virtuemart&view=productdetails&task=recommend&virtuemart_product_id=' . $this->product->virtuemart_product_id . '&virtuemart_category_id=' . $this->product->virtuemart_category_id . '&tmpl=component';
     if (VmConfig::get('pdf_icon', 1) == '1') {
echo $this->linkIcon($link . '&format=pdf', 'COM_VIRTUEMART_PDF', 'pdf_button', 'pdf_button_enable', false);
    }
     echo $this->linkIcon($link . '&print=1', 'COM_VIRTUEMART_PRINT', 'printButton', 'show_printicon');
     echo $this->linkIcon($MailLink, 'COM_VIRTUEMART_EMAIL', 'emailButton', 'show_emailfriend');
     ?>

    <div class="clear"></div>
        </div>
    <?php ?>
<h1>
<?php echo $this->product->product_name ?>
</h1>
<?php echo $this->product->event->afterDisplayTitle ?>   
<?php echo $this->edit_link;?>
<?php if ($this->showRating) { ?>
<div class="product-rating width50 floatleft">
<?php echo $this->loadTemplate('ratings'); ?>
</div>
<?php ?>
<div class="clear"></div>
<?php if (!empty($this->product->product_s_desc)) { ?>
<div class="product-short-text">
    <?php echo nl2br($this->product->product_s_desc); ?>
        </div>                
<?php 
if ($this->show_prices and (empty($this->product->images[0]) or $this->product->images[0]->file_is_downloadable == 0)) {
     echo $this->loadTemplate('showprices');
}
if (!VmConfig::get('use_as_catalog'0) and !empty($this->product->prices)) {
     echo $this->loadTemplate('addtocart');
}  
?>

<?php 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>
</div>

<?php ?>
</div>
</div>

<?php if(!empty($this->product->product_availability) || is_array($this->productDisplayShipments) || is_array($this->productDisplayPayments) || !empty($this->product->customfieldsSorted['ontop'])) { ?>

<div class="other-info">
<div class="social-buttons">
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-502b59141341339f"></script>
<!-- AddThis Button END -->
</div>
<div class="product-other-info">
<?php
if (!empty($this->product->product_availability)) {
    $stockhandle VmConfig::get('stockhandle''none');
     if ($stockhandle == 'risetime' and ($this->product->product_in_stock $this->product->product_ordered) < 1) { ?>

<div class="availability">
<?php echo JHTML::image(JURI::root() . VmConfig::get('assets_general_path') . 'images/availability/' VmConfig::get('rised_availability''7d.gif'), VmConfig::get('rised_availability''7d.gif'), array('class' => 'availability')); ?>
</div>
<?php } else { ?>
<div class="availability">
<?php echo JHTML::image(JURI::root() . VmConfig::get('assets_general_path') . 'images/availability/' $this->product->product_availability$this->product->product_availability, array('class' => 'availability')); ?>
</div>
<?php }

if (is_array($this->productDisplayShipments)) {
     foreach ($this->productDisplayShipments as $productDisplayShipment) {
echo $productDisplayShipment '<br />';
     }
}
if (is_array($this->productDisplayPayments)) {
     foreach ($this->productDisplayPayments as $productDisplayPayment) {
echo $productDisplayPayment '<br />';
     }
?>

</div>

<?php if (!empty($this->product->customfieldsSorted['ontop'])) {
$this->position 'ontop'?>

<div class="product-fields-ontop">
<?php echo $this->loadTemplate('customfields'); ?>
</div>
    <?php ?>
</div>
<div class="clear"></div>
<?php ?>
</div>
<div class="clear"></div>
<?php echo $this->product->event->beforeDisplayContent?>
<?php /* Start - Tabular Contents Area */
if (!empty($this->product->product_desc) || !empty($this->product->customfieldsSorted['ontop']) || $this->product->packaging || $this->product->box ) { 
/* List Titles for Tabular Contents */ ?>

<div id="vp_product_details_tab" class="product_tabs">
<ul>
<?php if (!empty($this->product->product_desc)) { ?>
<li><a rel="p_description" class="selected"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DESC_TITLE'?></a></li>
<?php 
if (!empty($this->product->customfieldsSorted['ontop'])) { 
$this->position 'ontop';
echo $this->loadTemplate('customfieldstitle');

$product_packaging '';
if ($this->product->packaging || $this->product->box) {?>

<li><a rel="packaging"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_PACKAGING'?></a></li>
<?php }?>
</ul>
</div>
<?php 
/* End Titles for Tabular Contents */

/* Start Tabular Contents */ ?>

<div class="tabular-content">
<?php if (!empty($this->product->product_desc)) { ?>
<div id="p_description" class="vp_tabcontent">
<?php echo $this->product->product_desc;?>
</div>
<?php 
if (!empty($this->product->customfieldsSorted['ontop'])) { 
$this->position 'ontop';
echo $this->loadTemplate('customfieldscontent');

$product_packaging '';
if ($this->product->packaging || $this->product->box) {?>

<div id="packaging">
    <?php 
if ($this->product->packaging) {
$product_packaging .= JText::_('COM_VIRTUEMART_PRODUCT_PACKAGING1') . $this->product->packaging;
if ($this->product->box)
     $product_packaging .= '<br />';
     }
     if ($this->product->box)
$product_packaging .= JText::_('COM_VIRTUEMART_PRODUCT_PACKAGING2') . $this->product->box;
     echo str_replace("{unit}"$this->product->product_unit $this->product->product_unit JText::_('COM_VIRTUEMART_PRODUCT_FORM_UNIT_DEFAULT'), $product_packaging); ?>

</div>
<?php }?>
</div>
<?php 
/* End Tabular Contents */
?>

</div>

    <?php
    if (!empty(
$this->product->customfieldsRelatedProducts)) {
echo $this->loadTemplate('relatedproducts'); ?>


<?php }
if (!empty($this->product->customfieldsRelatedCategories)) {
echo $this->loadTemplate('relatedcategories'); ?>


    <?php ?>



<?php echo $this->product->event->afterDisplayContent?>
<div class="clear"></div>
<?php echo $this->loadTemplate('reviews'); ?>
<?php if (!empty($this->product->customfieldsSorted['ontop'])) {
$this->position='ontop';
echo $this->loadTemplate('customfields');

if (VmConfig::get('showCategory'1)) {
echo $this->loadTemplate('showcategory');
?>

</div>

<?php if (!empty($this->product->product_desc) || !empty($this->product->customfieldsSorted['ontop']) || $this->product->packaging || $this->product->box ) { ?>
<script type="text/javascript">
var myflowers=new ddtabcontent("vp_product_details_tab") //enter ID of Tab Container
myflowers.setpersist(false) //toogle persistence of the tabs' state
myflowers.setselectedClassTarget("link") //"link" or "linkparent"
myflowers.init()
</script>
<?php }?>

</div>



thanks again!

PRO


old_fritz

???

i speak german and english ( at least never had any problems in conversation till today  ;D  ).

what language do you speak? if you would like to switch over to german - no worries!  ;)
Do not know what you do not understand in detail, because you´re not notify.

However, i think i described my problem very accurately but ok, again:

i changed any insertion of the customfield position (in default.php of the productdetails) to "ontop" (like you told, right?).

i gave you additional the codes of both regarding php-files (default.php of the productdetails & addtocart.php) and a screenshot of the result.
Very hard to guess what else do you need?

but to ask the other way round:

1. where (in which file) do i have to change the custom position to "ontop"???
2. Possibly it make sense if you can tell, which line to change as well?

thank you in advance!

PRO

HERE is the code for you

CHANGE this

This is how the ontop is done
<?php  if (!empty($this->product->customfieldsSorted['ontop'])) {
   $this->position = 'ontop';
   echo $this->loadTemplate('customfields');
    } // Product Custom ontop end
    ?>

to this

<?php foreach ($this->product->customfieldsSorted[$this->position] as $field) {
         if ($field->layout_pos == ontop) {
         echo '<div id="ontop">';
         echo 'this is how on top is done';
         echo $field->display;
         echo '</div>';
         }
       }
       ?>






old_fritz

... then i get this fault note on the ontop position in frontend:

Quote
Notice: Undefined property:
VirtueMartViewProductdetails::$position in /var/www/web5/html/components/com_virtuemart/views/productdetails/tmpl/vento_addtocart.php on line 78
Notice: Undefined index: in /var/www/web5/html/components/com_virtuemart/views/productdetails/tmpl/vento_addtocart.php on line 78
Warning: Invalid argument supplied for foreach() in /var/www/web5/html/components/com_virtuemart/views/productdetails/tmpl/vento_addtocart.php on line 78

PRO

try this

<?php  if (!empty($this->product->customfieldsSorted['ontop'])) {
         if ($field->layout_pos == ontop) {
         echo '<div id="ontop">';
         echo 'this is how on top is done';
         echo $field->display;
         echo '</div>';
         }
       }
       ?>

old_fritz

now the note is dissapeared. but the logo is still not there.

i think the problem of unshowing the custom field in "ontop" position results out of the vento_php theme file of virtueplanet.
because this file force the custom field to show up in the "Tabular Contents Area".

i recognize if i change the value in line 163 from:

!empty($this->product->customfieldsSorted['ontop']

into

!empty($this->product->customfieldsSorted['normal']

the custom logo show up again in the lower box (Tabular Contents Area).
(Please have again a look at the screenshot of the frontend from my 1st reply)

the whole block ist starting at 162 to line 210.
the custom field with its image-logo is enclosed there and i don´t get it out.

i tried a lot of things but just get error notes.

please have a look on this code (vento.php):

<?php defined('_JEXEC') or die('Restricted access');
/*------------------------------------------------------------------------------------------------------------
# Vento Theme for VirtueMart 2.0 Ver. 1.0
# ------------------------------------------------------------------------------------------------------------
# Copyright (C) 2012-2013 Virtue Planet Solutions. All Rights Reserved.
# License - GPL V2
# Author: VirtuePlanet Services LLP
# Email: info@virtueplanet.com
# Websites:  http://www.virtueplanet.com
------------------------------------------------------------------------------------------------------------*/
JHTML::_('behavior.modal');
JHTML::_('behavior.tooltip');
$document JFactory::getDocument();

$document->addStyleSheet($this->baseurl."/components/com_virtuemart/assets/css/vento-theme.css");
$document->addStyleSheet($this->baseurl."/components/com_virtuemart/assets/css/vento-color-fonts.css");
$document->addScript($this->baseurl."/components/com_virtuemart/assets/js/vento/vento.js.php");

if (!empty(
$this->product->product_desc) || !empty($this->product->customfieldsSorted['ontop']) || $this->product->packaging || $this->product->box ) {
$document->addScript($this->baseurl."/components/com_virtuemart/assets/js/vento/vp_tabcontent.js");
}

$url JRoute::_('index.php?option=com_virtuemart&view=productdetails&task=askquestion&virtuemart_product_id=' $this->product->virtuemart_product_id '&virtuemart_category_id=' $this->product->virtuemart_category_id '&tmpl=component');
$document->addScriptDeclaration("

"
);
/* Let's see if we found the product */
if (empty($this->product)) {
    echo 
JText::_('COM_VIRTUEMART_PRODUCT_NOT_FOUND');
    echo 
'<br /><br />  ' $this->continue_link_html;
    return;
}
?>

<div id="vento">
<div class="productdetails-view">
<?php if (VmConfig::get('product_navigation'1)) {
if (!empty($this->product->neighbours ['previous'][0]) and !empty($this->product->neighbours ['next'][0])) { ?>

<div class="product-neighbours">
<?php
if (!empty($this->product->neighbours ['previous'][0])) {
$prev_link JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' $this->product->neighbours ['previous'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' $this->product->virtuemart_category_id);
echo JHTML::_('link'$prev_link$this->product->neighbours ['previous'][0]
['product_name'], array('class' => 'previous-page'));
}
if (!empty($this->product->neighbours ['next'][0])) {
$next_link JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' $this->product->neighbours ['next'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' $this->product->virtuemart_category_id);
echo JHTML::_('link'$next_link$this->product->neighbours ['next'][0] ['product_name'], array('class' => 'next-page'));
    } ?>

    <div class="clear"></div>
</div>
    <?php }} ?>
<div class="vento-product-details-area">
<div class="pp-top-columns width50 floatleft">
<?php echo $this->loadTemplate('gallery'); ?>
</div>
<div class="pp-top-columns width50 floatright">
<div class="product-info">
<div class="product-info-box">
<?php if (VmConfig::get('show_emailfriend') || VmConfig::get('show_printicon') || VmConfig::get('pdf_button_enable')) { ?>
        <div class="icons">
    <?php     
     $link = 'index.php?tmpl=component&option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->virtuemart_product_id;
     $MailLink = 'index.php?option=com_virtuemart&view=productdetails&task=recommend&virtuemart_product_id=' . $this->product->virtuemart_product_id . '&virtuemart_category_id=' . $this->product->virtuemart_category_id . '&tmpl=component';
     if (VmConfig::get('pdf_icon', 1) == '1') {
echo $this->linkIcon($link . '&format=pdf', 'COM_VIRTUEMART_PDF', 'pdf_button', 'pdf_button_enable', false);
    }
     echo $this->linkIcon($link . '&print=1', 'COM_VIRTUEMART_PRINT', 'printButton', 'show_printicon');
     echo $this->linkIcon($MailLink, 'COM_VIRTUEMART_EMAIL', 'emailButton', 'show_emailfriend');
     ?>

    <div class="clear"></div>
        </div>
    <?php ?>
<h1>
<?php echo $this->product->product_name ?>
</h1>
<?php echo $this->product->event->afterDisplayTitle ?>   
<?php echo $this->edit_link;?>
<?php if ($this->showRating) { ?>
<div class="product-rating width50 floatleft">
<?php echo $this->loadTemplate('ratings'); ?>
</div>
<?php ?>
<div class="clear"></div>
<?php if (!empty($this->product->product_s_desc)) { ?>
<div class="product-short-text">
    <?php echo nl2br($this->product->product_s_desc); ?>
        </div>                
<?php 
if ($this->show_prices and (empty($this->product->images[0]) or $this->product->images[0]->file_is_downloadable == 0)) {
     echo $this->loadTemplate('showprices');
}
if (!VmConfig::get('use_as_catalog'0) and !empty($this->product->prices)) {
     echo $this->loadTemplate('addtocart');
}  
?>

<?php 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>
</div>

<?php ?>
</div>
</div>

<?php if(!empty($this->product->product_availability) || is_array($this->productDisplayShipments) || is_array($this->productDisplayPayments) || !empty($this->product->customfieldsSorted['ontop'])) { ?>

<div class="other-info">
<div class="social-buttons">
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-502b59141341339f"></script>
<!-- AddThis Button END -->
</div>
<div class="product-other-info">
<?php
if (!empty($this->product->product_availability)) {
    $stockhandle VmConfig::get('stockhandle''none');
     if ($stockhandle == 'risetime' and ($this->product->product_in_stock $this->product->product_ordered) < 1) { ?>

<div class="availability">
<?php echo JHTML::image(JURI::root() . VmConfig::get('assets_general_path') . 'images/availability/' VmConfig::get('rised_availability''7d.gif'), VmConfig::get('rised_availability''7d.gif'), array('class' => 'availability')); ?>
</div>
<?php } else { ?>
<div class="availability">
<?php echo JHTML::image(JURI::root() . VmConfig::get('assets_general_path') . 'images/availability/' $this->product->product_availability$this->product->product_availability, array('class' => 'availability')); ?>
</div>
<?php }

if (is_array($this->productDisplayShipments)) {
     foreach ($this->productDisplayShipments as $productDisplayShipment) {
echo $productDisplayShipment '<br />';
     }
}
if (is_array($this->productDisplayPayments)) {
     foreach ($this->productDisplayPayments as $productDisplayPayment) {
echo $productDisplayPayment '<br />';
     }
?>

</div>

<?php if (!empty($this->product->customfieldsSorted['ontop'])) {
$this->position 'ontop'?>

<div class="product-fields-ontop">
<?php echo $this->loadTemplate('customfields'); ?>
</div>
    <?php ?>
</div>
<div class="clear"></div>
<?php ?>
</div>
<div class="clear"></div>
<?php echo $this->product->event->beforeDisplayContent?>
<?php /* Start - Tabular Contents Area */
if (!empty($this->product->product_desc) || !empty($this->product->customfieldsSorted['ontop']) || $this->product->packaging || $this->product->box ) { 
/* List Titles for Tabular Contents */ ?>

<div id="vp_product_details_tab" class="product_tabs">
<ul>
<?php if (!empty($this->product->product_desc)) { ?>
<li><a rel="p_description" class="selected"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DESC_TITLE'?></a></li>
<?php 
if (!empty($this->product->customfieldsSorted['ontop'])) { 
$this->position 'ontop';
echo $this->loadTemplate('customfieldstitle');

$product_packaging '';
if ($this->product->packaging || $this->product->box) {?>

<li><a rel="packaging"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_PACKAGING'?></a></li>
<?php }?>
</ul>
</div>
<?php 
/* End Titles for Tabular Contents */

/* Start Tabular Contents */ ?>

<div class="tabular-content">
<?php if (!empty($this->product->product_desc)) { ?>
<div id="p_description" class="vp_tabcontent">
<?php echo $this->product->product_desc;?>
</div>
<?php 
if (!empty($this->product->customfieldsSorted['ontop'])) { 
$this->position 'ontop';
echo $this->loadTemplate('customfieldscontent');

$product_packaging '';
if ($this->product->packaging || $this->product->box) {?>

<div id="packaging">
    <?php 
if ($this->product->packaging) {
$product_packaging .= JText::_('COM_VIRTUEMART_PRODUCT_PACKAGING1') . $this->product->packaging;
if ($this->product->box)
     $product_packaging .= '<br />';
     }
     if ($this->product->box)
$product_packaging .= JText::_('COM_VIRTUEMART_PRODUCT_PACKAGING2') . $this->product->box;
     echo str_replace("{unit}"$this->product->product_unit $this->product->product_unit JText::_('COM_VIRTUEMART_PRODUCT_FORM_UNIT_DEFAULT'), $product_packaging); ?>

</div>
<?php }?>
</div>
<?php 
/* End Tabular Contents */
?>

</div>

    <?php
    if (!empty(
$this->product->customfieldsRelatedProducts)) {
echo $this->loadTemplate('relatedproducts'); ?>


<?php }
if (!empty($this->product->customfieldsRelatedCategories)) {
echo $this->loadTemplate('relatedcategories'); ?>


    <?php ?>



<?php echo $this->product->event->afterDisplayContent?>
<div class="clear"></div>
<?php echo $this->loadTemplate('reviews'); ?>
<?php if (!empty($this->product->customfieldsSorted['ontop'])) {
$this->position='ontop';
echo $this->loadTemplate('customfields');

if (VmConfig::get('showCategory'1)) {
echo $this->loadTemplate('showcategory');
?>

</div>

<?php if (!empty($this->product->product_desc) || !empty($this->product->customfieldsSorted['ontop']) || $this->product->packaging || $this->product->box ) { ?>
<script type="text/javascript">
var myflowers=new ddtabcontent("vp_product_details_tab") //enter ID of Tab Container
myflowers.setpersist(false) //toogle persistence of the tabs' state
myflowers.setselectedClassTarget("link") //"link" or "linkparent"
myflowers.init()
</script>
<?php }?>

</div>


thanks again!


PRO

does your "custom theme"   have a support forum?

They will be able to help a lot easier with this.


old_fritz

unfortunally it´s a rather smal forum, because they´re quite new to the market.
also the admin can´t handle this topic under "unpaid" support.

don´t thought that´s such a complicate thing to move an image.
? ? ?

PRO

it's not hard.

It could be CSS/html, BUT I have not seen a url to look at

have you looked with firebug?
http://forum.virtuemart.net/index.php?topic=102850.0


old_fritz

pro, i send you a pm to that topic yesterday.
there you´ll find a link with the url.