- Posts: 22
- Thank you received: 0
2 litte bugs?
-
Badec
Inactive member - Topic Author
- Member
Less
More
12 years 10 months ago #15320
by Badec
2 litte bugs? was created by Badec
The index.php file of the template contains an error at line 19.
Can someone take a look at this?
I've enabled the related products in the template, but since then there's a line under the manufacturer (see atachment). I cant get rit of this line.
The code is like this:
<?php // Manufacturer of the Product
if(VmConfig::get('show_manufacturer', 1) && !empty($this->product->virtuemart_manufacturer_id)) { ?>
<div class="manufacturer">
<?php
$link = JRoute::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id='.$this->product->virtuemart_manufacturer_id.'&tmpl=component');
$text = $this->product->mf_name;
/* Avoid JavaScript on PDF Output */
if (strtolower(JRequest::getWord('output')) == "pdf"){
echo JHTML::_('link', $link, $text);
} else { ?>
<span class="bold"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DETAILS_MANUFACTURER_LBL') ?></span><a class="modal" rel="{handler: 'iframe', size: {x: 700, y: 550}}" href="<?php echo $link ?>"><?php echo $text ?></a>
<?PHP } ?>
</div>
<?php } ?>
</div>
</div>
<div class="clear"></div>
</div>
<?php
if (!empty($this->product->customfields)) { ?>
<div class="product-fields">
<?php
$custom_title = null ;
foreach ($this->product->customfields as $field){
?><div style="display:inline-block;" class="product-field product-field-type-<?php echo $field->field_type ?>">
<?php if ($field->custom_title != $custom_title) { ?>
<span class="product-fields-title" ><b><?php echo JText::_($field->custom_title); ?></b></span>
<?php if ($field->custom_tip) echo JHTML::tooltip($field->custom_tip, JText::_($field->custom_title), 'tooltip.png');
} ?>
<span class="product-field-display"><?php echo $field->display ?></span>
<span class="product-field-desc"><?php echo jText::_($field->custom_field_desc) ?></span>
</div>
<?php
$custom_title = $field->custom_title;
} ?>
</div><br />
<?php
} // Product custom_fields END ?>
<?php // Product Packaging
$product_packaging = '';
if ($this->product->packaging || $this->product->box) { ?>
<div class="product-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 } // Product Packaging END ?>
<?php // Product Files
// foreach ($this->product->images as $fkey => $file) {
// Todo add downloadable files again
// if( $file->filesize > 0.5) $filesize_display = ' ('. number_format($file->filesize, 2,',','.')." MB)";
// else $filesize_display = ' ('. number_format($file->filesize*1024, 2,',','.')." KB)";
/* Show pdf in a new Window, other file types will be offered as download */
// $target = stristr($file->file_mimetype, "pdf") ? "_blank" : "_self";
// $link = JRoute::_('index.php?view=productdetails&task=getfile&virtuemart_media_id='.$file->virtuemart_media_id.'&virtuemart_product_id='.$this->product->virtuemart_product_id);
// echo JHTMl::_('link', $link, $file->file_title.$filesize_display, array('target' => $target));
// }
if (!empty($this->product->customfieldsRelatedProducts)) { ?>
<div class="product-related-products">
<h4><?php echo JText::_('COM_VIRTUEMART_RELATED_PRODUCTS'); ?></h4>
<?php
foreach ($this->product->customfieldsRelatedProducts as $field){
?><div style="display:inline-block;" class="product-field product-field-type-<?php echo $field->field_type ?>">
<span class="product-field-display"><?php echo $field->display ?></span>
<span class="product-field-desc"><?php echo jText::_($field->custom_field_desc) ?></span>
</div>
<?php
} ?>
</div>
<?php
} // Product customfieldsRelatedProducts END
if (!empty($this->product->customfieldsRelatedCategories)) { ?>
<div class="product-related-categories">
<h4><?php echo JText::_('COM_VIRTUEMART_RELATED_CATEGORIES'); ?></h4>
<?php foreach ($this->product->customfieldsRelatedCategories as $field){ ?>
<div style="display:inline-block;" class="product-field product-field-type-<?php echo $field->field_type ?>">
<span class="product-field-display"><?php echo $field->display ?></span>
<span class="product-field-desc"><?php echo jText::_($field->custom_field_desc) ?></span>
</div>
<?php
} ?>
</div>
<?php
} // Product customfieldsRelatedCategories END
// Show child categories
if ( VmConfig::get('showCategory',1) ) {
if ($this->category->haschildren) {
$iCol = 1;
$iCategory = 1;
$categories_per_row = VmConfig::get ( 'categories_per_row', 3 );
$category_cellwidth = ' width'.floor ( 100 / $categories_per_row );
$verticalseparator = " vertical-separator"; ?>
<div class="category-view">
<?php // Start the Output
if(!empty($this->category->children)){
foreach ( $this->category->children as $category ) {
// this is an indicator wether a row needs to be opened or not
if ($iCol == 1) { ?>
<div class="row">
<?php }
// Show the vertical seperator
if ($iCategory == $categories_per_row or $iCategory % $categories_per_row == 0) {
$show_vertical_separator = ' ';
} else {
$show_vertical_separator = $verticalseparator;
}
// Category Link
$caturl = JRoute::_ ( 'index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $category->virtuemart_category_id );
// Show Category ?>
<div class="category floatleft<?php echo $category_cellwidth . $show_vertical_separator ?>">
<div class="spacer">
<h2>
<a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>">
<?php echo $category->category_name ?>
<br />
<?php // if ($category->ids) {
echo $category->images[0]->displayMediaThumb("",false);
//} ?>
</a>
</h2>
</div>
</div>
<?php
$iCategory ++;
// Do we need to close the current row now?
if ($iCol == $categories_per_row) { ?>
<div class="clear"></div>
</div>
<?php
$iCol = 1;
} else {
$iCol ++;
}
}
}
// Do we need a final closing row tag?
if ($iCol != 1) { ?>
<div class="clear"></div>
</div>
<?php } ?>
</div>
<?php }
} ?>
<?php // Customer Reviews
if($this->allowRating || $this->showReview) {
$maxrating = VmConfig::get('vm_maximum_rating_scale',5);
$ratingsShow = VmConfig::get('vm_num_ratings_show',3); // TODO add vm_num_ratings_show in vmConfig
//$starsPath = JURI::root().VmConfig::get('assets_general_path').'images/stars/';
$stars = array();
$showall = JRequest::getBool('showall', false);
for ($num=0 ; $num <= $maxrating; $num++ ) {
$title = (JText::_("COM_VIRTUEMART_RATING_TITLE").' : '. $num . '/' . $maxrating) ;
$stars[] = '<span class="vmicon vm2-stars'.$num.'" title="'.$title.'"></span>'; //JHTML::image($starsPath.$num.'.gif', JText::_($num.'_STARS'), array("title" => $title) );
} ?>
<div class="customer-reviews">
<form method="post" action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$this->product->virtuemart_product_id.'&virtuemart_category_id='.$this->product->virtuemart_category_id) ; ?>" name="reviewForm" id="reviewform">
<?php
}
if($this->showReview) {
$alreadycommented = false;
?>
<h4><?php echo JText::_('COM_VIRTUEMART_REVIEWS') ?></h4>
<div class="list-reviews">
<?php
$i=0;
foreach($this->rating_reviews as $review ) {
if ($i % 2 == 0) {
$color = 'normal';
} else {
$color = 'highlight';
}
/* Check if user already commented */
// if ($review->virtuemart_userid == $this->user->id) {
// $alreadycommented = true;
// } ?>
<?php // Loop through all reviews
if (!empty($this->rating_reviews)) { ?>
<div class="<?php echo $color ?>">
<span class="date"><?php echo JHTML::date($review->created_on, JText::_('DATE_FORMAT_LC')); ?></span>
<?php //echo $stars[ $review->review_rating ] //Attention the review rating is the rating of the review itself, rating for the product is the vote ! ?>
<blockquote><?php echo $review->comment; ?></blockquote>
<span class="bold"><?php echo $review->customer ?></span>
</div>
<?php
}
$i++ ;
if ( $i == $ratingsShow && !$showall) break;
}
if (count($this->rating_reviews) < 1) {
// "There are no reviews for this product" ?>
<span class="step"><?php echo JText::_('COM_VIRTUEMART_NO_REVIEWS') ?></span>
<?php
} else {
/* Show all reviews */
if (!$showall && count($this->rating_reviews) >= $ratingsShow ) {
$attribute = array('class'=>'details', 'title'=>JText::_('COM_VIRTUEMART_MORE_REVIEWS'));
echo JHTML::link($this->more_reviews, JText::_('COM_VIRTUEMART_MORE_REVIEWS'),$attribute);
}
} ?>
<div class="clear"></div>
</div>
<?php // Writing A Review
if($this->allowReview && !$alreadycommented) { ?>
<div class="write-reviews">
<?php // Show Review Length While Your Are Writing
$reviewJavascript = "
function check_reviewform() {
var form = document.getElementById('reviewform');
var ausgewaehlt = false;
for (var i=0; i<form.user_rating.length; i++)
if (form.user_rating.checked)
ausgewaehlt = true;
if (!ausgewaehlt) {
alert('".JText::_('COM_VIRTUEMART_REVIEW_ERR_RATE',false)."');
return false;
}
else if (form.comment.value.length < ". VmConfig::get('reviews_minimum_comment_length', 100).") {
alert('". JText::sprintf('COM_VIRTUEMART_REVIEW_ERR_COMMENT1', VmConfig::get('reviews_minimum_comment_length', 100))."');
return false;
}
else if (form.comment.value.length > ". VmConfig::get('reviews_maximum_comment_length', 2000).") {
alert('". JText::sprintf('COM_VIRTUEMART_REVIEW_ERR_COMMENT2', VmConfig::get('reviews_maximum_comment_length', 2000))."');
return false;
}
else {
return true;
}
}
function refresh_counter() {
var form = document.getElementById('reviewform');
form.counter.value= form.comment.value.length;
}";
$document = &JFactory::getDocument();
$document->addScriptDeclaration($reviewJavascript);
if($this->showRating) {
if($this->allowRating) { ?>
<h4><?php echo JText::_('COM_VIRTUEMART_WRITE_REVIEW') ?><span><?php echo JText::_('COM_VIRTUEMART_WRITE_FIRST_REVIEW') ?></span></h4>
<span class="step"><?php echo JText::_('COM_VIRTUEMART_RATING_FIRST_RATE') ?></span>
<ul class="rating">
<?php // Print The Rating Stars + Checkboxes
for ($num=0 ; $num<=$maxrating; $num++ ) { ?>
<li id="<?php echo $num ?>_stars">
<span><?php echo $stars[ $num ]; ?></span>
<br />
<?php
if ($num == 5) {
$selected = ' checked="checked"';
} else {
$selected = '';
} ?>
<input<?php echo $selected ?> id="vote<?php echo $num ?>" type="radio" value="<?php echo $num ?>" name="vote">
</li>
<?php } ?>
</ul>
<?php
}
} ?>
<span class="step"><?php echo JText::sprintf('COM_VIRTUEMART_REVIEW_COMMENT', VmConfig::get('reviews_minimum_comment_length', 100), VmConfig::get('reviews_maximum_comment_length', 2000)); ?></span>
<br />
<textarea class="virtuemart" title="<?php echo JText::_('COM_VIRTUEMART_WRITE_REVIEW') ?>" class="inputbox" id="comment" onblur="refresh_counter();" onfocus="refresh_counter();" onkeyup="refresh_counter();" name="comment" rows="5" cols="60"><?php if(!empty($this->review->comment))echo $this->review->comment; ?></textarea>
<br />
<span><?php echo JText::_('COM_VIRTUEMART_REVIEW_COUNT') ?>
<input type="text" value="0" size="4" class="vm-default" name="counter" maxlength="4" readonly="readonly" />
</span>
<br /><br />
<input class="highlight-button" type="submit" onclick="return( check_reviewform());" name="submit_review" title="<?php echo JText::_('COM_VIRTUEMART_REVIEW_SUBMIT') ?>" value="<?php echo JText::_('COM_VIRTUEMART_REVIEW_SUBMIT') ?>" />
</div>
<?php
}
}
// } else {
// echo '<strong>'.JText::_('COM_VIRTUEMART_DEAR').$this->user->name.',</strong><br />' ;
// echo JText::_('COM_VIRTUEMART_REVIEW_ALREADYDONE');
// }
if($this->allowRating || $this->showReview) {
?>
<input type="hidden" name="virtuemart_product_id" value="<?php echo $this->product->virtuemart_product_id; ?>" />
<input type="hidden" name="option" value="com_virtuemart" />
<input type="hidden" name="virtuemart_category_id" value="<?php echo JRequest::getInt('virtuemart_category_id'); ?>" />
<input type="hidden" name="virtuemart_rating_review_id" value="0" />
<input type="hidden" name="task" value="review" />
</form>
</div>
<?php
}
// else echo JText::_('COM_VIRTUEMART_REVIEW_LOGIN'); // Login to write a review!
?>
</div>
Can someone take a look at this?
I've enabled the related products in the template, but since then there's a line under the manufacturer (see atachment). I cant get rit of this line.
The code is like this:
<?php // Manufacturer of the Product
if(VmConfig::get('show_manufacturer', 1) && !empty($this->product->virtuemart_manufacturer_id)) { ?>
<div class="manufacturer">
<?php
$link = JRoute::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id='.$this->product->virtuemart_manufacturer_id.'&tmpl=component');
$text = $this->product->mf_name;
/* Avoid JavaScript on PDF Output */
if (strtolower(JRequest::getWord('output')) == "pdf"){
echo JHTML::_('link', $link, $text);
} else { ?>
<span class="bold"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DETAILS_MANUFACTURER_LBL') ?></span><a class="modal" rel="{handler: 'iframe', size: {x: 700, y: 550}}" href="<?php echo $link ?>"><?php echo $text ?></a>
<?PHP } ?>
</div>
<?php } ?>
</div>
</div>
<div class="clear"></div>
</div>
<?php
if (!empty($this->product->customfields)) { ?>
<div class="product-fields">
<?php
$custom_title = null ;
foreach ($this->product->customfields as $field){
?><div style="display:inline-block;" class="product-field product-field-type-<?php echo $field->field_type ?>">
<?php if ($field->custom_title != $custom_title) { ?>
<span class="product-fields-title" ><b><?php echo JText::_($field->custom_title); ?></b></span>
<?php if ($field->custom_tip) echo JHTML::tooltip($field->custom_tip, JText::_($field->custom_title), 'tooltip.png');
} ?>
<span class="product-field-display"><?php echo $field->display ?></span>
<span class="product-field-desc"><?php echo jText::_($field->custom_field_desc) ?></span>
</div>
<?php
$custom_title = $field->custom_title;
} ?>
</div><br />
<?php
} // Product custom_fields END ?>
<?php // Product Packaging
$product_packaging = '';
if ($this->product->packaging || $this->product->box) { ?>
<div class="product-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 } // Product Packaging END ?>
<?php // Product Files
// foreach ($this->product->images as $fkey => $file) {
// Todo add downloadable files again
// if( $file->filesize > 0.5) $filesize_display = ' ('. number_format($file->filesize, 2,',','.')." MB)";
// else $filesize_display = ' ('. number_format($file->filesize*1024, 2,',','.')." KB)";
/* Show pdf in a new Window, other file types will be offered as download */
// $target = stristr($file->file_mimetype, "pdf") ? "_blank" : "_self";
// $link = JRoute::_('index.php?view=productdetails&task=getfile&virtuemart_media_id='.$file->virtuemart_media_id.'&virtuemart_product_id='.$this->product->virtuemart_product_id);
// echo JHTMl::_('link', $link, $file->file_title.$filesize_display, array('target' => $target));
// }
if (!empty($this->product->customfieldsRelatedProducts)) { ?>
<div class="product-related-products">
<h4><?php echo JText::_('COM_VIRTUEMART_RELATED_PRODUCTS'); ?></h4>
<?php
foreach ($this->product->customfieldsRelatedProducts as $field){
?><div style="display:inline-block;" class="product-field product-field-type-<?php echo $field->field_type ?>">
<span class="product-field-display"><?php echo $field->display ?></span>
<span class="product-field-desc"><?php echo jText::_($field->custom_field_desc) ?></span>
</div>
<?php
} ?>
</div>
<?php
} // Product customfieldsRelatedProducts END
if (!empty($this->product->customfieldsRelatedCategories)) { ?>
<div class="product-related-categories">
<h4><?php echo JText::_('COM_VIRTUEMART_RELATED_CATEGORIES'); ?></h4>
<?php foreach ($this->product->customfieldsRelatedCategories as $field){ ?>
<div style="display:inline-block;" class="product-field product-field-type-<?php echo $field->field_type ?>">
<span class="product-field-display"><?php echo $field->display ?></span>
<span class="product-field-desc"><?php echo jText::_($field->custom_field_desc) ?></span>
</div>
<?php
} ?>
</div>
<?php
} // Product customfieldsRelatedCategories END
// Show child categories
if ( VmConfig::get('showCategory',1) ) {
if ($this->category->haschildren) {
$iCol = 1;
$iCategory = 1;
$categories_per_row = VmConfig::get ( 'categories_per_row', 3 );
$category_cellwidth = ' width'.floor ( 100 / $categories_per_row );
$verticalseparator = " vertical-separator"; ?>
<div class="category-view">
<?php // Start the Output
if(!empty($this->category->children)){
foreach ( $this->category->children as $category ) {
// this is an indicator wether a row needs to be opened or not
if ($iCol == 1) { ?>
<div class="row">
<?php }
// Show the vertical seperator
if ($iCategory == $categories_per_row or $iCategory % $categories_per_row == 0) {
$show_vertical_separator = ' ';
} else {
$show_vertical_separator = $verticalseparator;
}
// Category Link
$caturl = JRoute::_ ( 'index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $category->virtuemart_category_id );
// Show Category ?>
<div class="category floatleft<?php echo $category_cellwidth . $show_vertical_separator ?>">
<div class="spacer">
<h2>
<a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>">
<?php echo $category->category_name ?>
<br />
<?php // if ($category->ids) {
echo $category->images[0]->displayMediaThumb("",false);
//} ?>
</a>
</h2>
</div>
</div>
<?php
$iCategory ++;
// Do we need to close the current row now?
if ($iCol == $categories_per_row) { ?>
<div class="clear"></div>
</div>
<?php
$iCol = 1;
} else {
$iCol ++;
}
}
}
// Do we need a final closing row tag?
if ($iCol != 1) { ?>
<div class="clear"></div>
</div>
<?php } ?>
</div>
<?php }
} ?>
<?php // Customer Reviews
if($this->allowRating || $this->showReview) {
$maxrating = VmConfig::get('vm_maximum_rating_scale',5);
$ratingsShow = VmConfig::get('vm_num_ratings_show',3); // TODO add vm_num_ratings_show in vmConfig
//$starsPath = JURI::root().VmConfig::get('assets_general_path').'images/stars/';
$stars = array();
$showall = JRequest::getBool('showall', false);
for ($num=0 ; $num <= $maxrating; $num++ ) {
$title = (JText::_("COM_VIRTUEMART_RATING_TITLE").' : '. $num . '/' . $maxrating) ;
$stars[] = '<span class="vmicon vm2-stars'.$num.'" title="'.$title.'"></span>'; //JHTML::image($starsPath.$num.'.gif', JText::_($num.'_STARS'), array("title" => $title) );
} ?>
<div class="customer-reviews">
<form method="post" action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$this->product->virtuemart_product_id.'&virtuemart_category_id='.$this->product->virtuemart_category_id) ; ?>" name="reviewForm" id="reviewform">
<?php
}
if($this->showReview) {
$alreadycommented = false;
?>
<h4><?php echo JText::_('COM_VIRTUEMART_REVIEWS') ?></h4>
<div class="list-reviews">
<?php
$i=0;
foreach($this->rating_reviews as $review ) {
if ($i % 2 == 0) {
$color = 'normal';
} else {
$color = 'highlight';
}
/* Check if user already commented */
// if ($review->virtuemart_userid == $this->user->id) {
// $alreadycommented = true;
// } ?>
<?php // Loop through all reviews
if (!empty($this->rating_reviews)) { ?>
<div class="<?php echo $color ?>">
<span class="date"><?php echo JHTML::date($review->created_on, JText::_('DATE_FORMAT_LC')); ?></span>
<?php //echo $stars[ $review->review_rating ] //Attention the review rating is the rating of the review itself, rating for the product is the vote ! ?>
<blockquote><?php echo $review->comment; ?></blockquote>
<span class="bold"><?php echo $review->customer ?></span>
</div>
<?php
}
$i++ ;
if ( $i == $ratingsShow && !$showall) break;
}
if (count($this->rating_reviews) < 1) {
// "There are no reviews for this product" ?>
<span class="step"><?php echo JText::_('COM_VIRTUEMART_NO_REVIEWS') ?></span>
<?php
} else {
/* Show all reviews */
if (!$showall && count($this->rating_reviews) >= $ratingsShow ) {
$attribute = array('class'=>'details', 'title'=>JText::_('COM_VIRTUEMART_MORE_REVIEWS'));
echo JHTML::link($this->more_reviews, JText::_('COM_VIRTUEMART_MORE_REVIEWS'),$attribute);
}
} ?>
<div class="clear"></div>
</div>
<?php // Writing A Review
if($this->allowReview && !$alreadycommented) { ?>
<div class="write-reviews">
<?php // Show Review Length While Your Are Writing
$reviewJavascript = "
function check_reviewform() {
var form = document.getElementById('reviewform');
var ausgewaehlt = false;
for (var i=0; i<form.user_rating.length; i++)
if (form.user_rating.checked)
ausgewaehlt = true;
if (!ausgewaehlt) {
alert('".JText::_('COM_VIRTUEMART_REVIEW_ERR_RATE',false)."');
return false;
}
else if (form.comment.value.length < ". VmConfig::get('reviews_minimum_comment_length', 100).") {
alert('". JText::sprintf('COM_VIRTUEMART_REVIEW_ERR_COMMENT1', VmConfig::get('reviews_minimum_comment_length', 100))."');
return false;
}
else if (form.comment.value.length > ". VmConfig::get('reviews_maximum_comment_length', 2000).") {
alert('". JText::sprintf('COM_VIRTUEMART_REVIEW_ERR_COMMENT2', VmConfig::get('reviews_maximum_comment_length', 2000))."');
return false;
}
else {
return true;
}
}
function refresh_counter() {
var form = document.getElementById('reviewform');
form.counter.value= form.comment.value.length;
}";
$document = &JFactory::getDocument();
$document->addScriptDeclaration($reviewJavascript);
if($this->showRating) {
if($this->allowRating) { ?>
<h4><?php echo JText::_('COM_VIRTUEMART_WRITE_REVIEW') ?><span><?php echo JText::_('COM_VIRTUEMART_WRITE_FIRST_REVIEW') ?></span></h4>
<span class="step"><?php echo JText::_('COM_VIRTUEMART_RATING_FIRST_RATE') ?></span>
<ul class="rating">
<?php // Print The Rating Stars + Checkboxes
for ($num=0 ; $num<=$maxrating; $num++ ) { ?>
<li id="<?php echo $num ?>_stars">
<span><?php echo $stars[ $num ]; ?></span>
<br />
<?php
if ($num == 5) {
$selected = ' checked="checked"';
} else {
$selected = '';
} ?>
<input<?php echo $selected ?> id="vote<?php echo $num ?>" type="radio" value="<?php echo $num ?>" name="vote">
</li>
<?php } ?>
</ul>
<?php
}
} ?>
<span class="step"><?php echo JText::sprintf('COM_VIRTUEMART_REVIEW_COMMENT', VmConfig::get('reviews_minimum_comment_length', 100), VmConfig::get('reviews_maximum_comment_length', 2000)); ?></span>
<br />
<textarea class="virtuemart" title="<?php echo JText::_('COM_VIRTUEMART_WRITE_REVIEW') ?>" class="inputbox" id="comment" onblur="refresh_counter();" onfocus="refresh_counter();" onkeyup="refresh_counter();" name="comment" rows="5" cols="60"><?php if(!empty($this->review->comment))echo $this->review->comment; ?></textarea>
<br />
<span><?php echo JText::_('COM_VIRTUEMART_REVIEW_COUNT') ?>
<input type="text" value="0" size="4" class="vm-default" name="counter" maxlength="4" readonly="readonly" />
</span>
<br /><br />
<input class="highlight-button" type="submit" onclick="return( check_reviewform());" name="submit_review" title="<?php echo JText::_('COM_VIRTUEMART_REVIEW_SUBMIT') ?>" value="<?php echo JText::_('COM_VIRTUEMART_REVIEW_SUBMIT') ?>" />
</div>
<?php
}
}
// } else {
// echo '<strong>'.JText::_('COM_VIRTUEMART_DEAR').$this->user->name.',</strong><br />' ;
// echo JText::_('COM_VIRTUEMART_REVIEW_ALREADYDONE');
// }
if($this->allowRating || $this->showReview) {
?>
<input type="hidden" name="virtuemart_product_id" value="<?php echo $this->product->virtuemart_product_id; ?>" />
<input type="hidden" name="option" value="com_virtuemart" />
<input type="hidden" name="virtuemart_category_id" value="<?php echo JRequest::getInt('virtuemart_category_id'); ?>" />
<input type="hidden" name="virtuemart_rating_review_id" value="0" />
<input type="hidden" name="task" value="review" />
</form>
</div>
<?php
}
// else echo JText::_('COM_VIRTUEMART_REVIEW_LOGIN'); // Login to write a review!
?>
</div>
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 10 months ago #15337
by ivan.milic
Replied by ivan.milic on topic Re: 2 litte bugs?
can you submit, your index.php (you must compress it with zip to attach it here)
Please Log in to join the conversation.
-
Badec
Inactive member - Topic Author
- Member
Less
More
- Posts: 22
- Thank you received: 0
-
Badec
Inactive member - Topic Author
- Member
Less
More
- Posts: 22
- Thank you received: 0
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 10 months ago #15379
by ivan.milic
Replied by ivan.milic on topic Re: 2 litte bugs?
This is not the file you copy/pasted content in prev post
Please Log in to join the conversation.
-
Badec
Inactive member - Topic Author
- Member
Less
More
- Posts: 22
- Thank you received: 0
12 years 10 months ago - 12 years 10 months ago #15389
by Badec
Replied by Badec on topic Re: 2 litte bugs?
Thats because you asked for the index.php, that file contains an error at line 19.
Atached you find the productdisplay/default.
This file displays an line underneath the manufacturer. As seen in the atachtment of post 1
Atached you find the productdisplay/default.
This file displays an line underneath the manufacturer. As seen in the atachtment of post 1
Last edit: 12 years 10 months ago by Badec.
Please Log in to join the conversation.
Time to create page: 0.179 seconds