Post by Phone-Wear » Tue Dec 17, 2013 6:39 am

Hi All.
I am building new store for Phone Case design, Coming along nicely.
http://www.phone-wear.com
using: open Cart 1.5.6
added open t shirt ( for design abilities) and lots of changes with in the two. to make work for phone cases..
Everything "was" worked perfect until I tried to make site a little fancy..and bought template..
I added Template Theme Called ; Pav Dress Store..below is "guide for pav Template

http://www.pavothemes.com/guides/pav_dr ... ers_module

I Have the menu set up "mega menu", and now get the following...

Parse error: syntax error, unexpected '}' in /home/content/39/11919139/html/phone-wear.com/vqmod/vqcache/vq2-catalog_view_theme_pav_dress_store_template_product_category.tpl on line 201

side note everything worked perfect before template addition. can turn off template and menu works fine.
turn on "Pav" template and menu causes error.
tried to get help from "Pavothemes" the one i bought template from, but after 3 days still no reply..

Any help is very very much appreciated..
tks.
best
chuck

Newbie

Posts

Joined
Wed Oct 30, 2013 5:35 am

Post by stokeyblokey » Tue Dec 17, 2013 9:17 am

Post the code from the vqmod/vqcache/vq2-catalog_view_theme_pav_dress_store_template_product_category.tpl file because the error is saying there is a } where there should not be - maybe someone can help you track it down ;)

Stokey


User avatar
Active Member

Posts

Joined
Sat Aug 31, 2013 10:19 pm

Post by Phone-Wear » Tue Dec 17, 2013 6:50 pm

The error I get is:
Parse error: syntax error, unexpected '}' in /home/content/39/11919139/html/phone-wear.com/vqmod/vqcache/vq2-catalog_view_theme_pav_dress_store_template_product_category.tpl on line 201
Here is the code on Line 201;

code on line 201 is: <?php } ?>

The TPL File for code, for Error being shown: vqmod/vqcache/vq2-catalog_view_theme_pav_dress_store_template_product_category.tpl

<?php require( DIR_TEMPLATE.$this->config->get('config_template')."/template/common/config.tpl" );
$themeConfig = $this->config->get('themecontrol');

$DISPLAY_MODE = 'grid';
if( isset($themeConfig['cateogry_display_mode']) ){
$DISPLAY_MODE = $themeConfig['cateogry_display_mode'];
}
$MAX_ITEM_ROW = 3;
if( isset($themeConfig['cateogry_product_row']) && $themeConfig['cateogry_product_row'] ){
$MAX_ITEM_ROW = $themeConfig['cateogry_product_row'];
}
$categoryPzoom = isset($themeConfig['category_pzoom']) ? $themeConfig['category_pzoom']:0;

?>
<?php echo $header; ?>
<div id="breadcrumb">
<div class="breadcrumb">
<?php foreach ($breadcrumbs as $breadcrumb) { ?>
<?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
<?php } ?>
</div>

<!--<h1 class="title-category"><?php echo $heading_title; ?></h1>-->
</div>
<div id="group-content">
<?php if( $SPAN[0] ): ?>
<div class="span<?php echo $SPAN[0];?>">
<?php echo $column_left; ?>
</div>

<?php endif; ?>
<div class="span<?php echo $SPAN[1];?>">
<div id="content"><?php echo $content_top; ?>


<?php if ($thumb || $description) { ?>
<div class="category-info">
<?php if ($thumb) { ?>
<div class="image"><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>" /></div>
<?php } ?>
<?php if ($description) { ?>
<?php echo $description; ?>
<?php } ?>
</div>
<?php } ?>
<?php if ($categories) { ?>
<!--<h2><?php echo $text_refine; ?></h2>-->
<div class="category-list">
<?php if (count($categories) <= 5) { ?>
<ul>
<?php foreach ($categories as $category) { ?>
<li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li>
<?php } ?>
</ul>
<?php } else { ?>
<?php for ($i = 0; $i < count($categories);) { ?>
<ul>
<?php $j = $i + ceil(count($categories) / 4); ?>
<?php for (; $i < $j; $i++) { ?>
<?php if (isset($categories[$i])) { ?>
<li><a href="<?php echo $categories[$i]['href']; ?>"><?php echo $categories[$i]['name']; ?></a></li>
<?php } ?>
<?php } ?>
</ul>
<?php } ?>
<?php } ?>
</div>
<?php } ?>
<?php if ($products) { ?>
<div class="product-filter">
<div class="display">
<span><?php echo $text_display; ?></span>
<span><?php echo $text_list; ?></span>
<a onclick="display('grid');"><?php echo $text_grid; ?></a>

</div>
<div class="sort"><span><?php echo $text_sort; ?></span>
<select onchange="location = this.value;">
<?php foreach ($sorts as $sorts) { ?>
<?php if ($sorts['value'] == $sort . '-' . $order) { ?>
<option value="<?php echo $sorts['href']; ?>" selected="selected"><?php echo $sorts['text']; ?></option>
<?php } else { ?>
<option value="<?php echo $sorts['href']; ?>"><?php echo $sorts['text']; ?></option>
<?php } ?>
<?php } ?>
</select>
</div>
<div class="limit"><span><?php echo $text_limit; ?></span>
<select onchange="location = this.value;">
<?php foreach ($limits as $limits) { ?>
<?php if ($limits['value'] == $limit) { ?>
<option value="<?php echo $limits['href']; ?>" selected="selected"><?php echo $limits['text']; ?></option>
<?php } else { ?>
<option value="<?php echo $limits['href']; ?>"><?php echo $limits['text']; ?></option>
<?php } ?>
<?php } ?>
</select>
</div>
<div class="product-compare"><a href="<?php echo $compare; ?>" id="compare-total"><?php echo $text_compare; ?></a></div>
</div>


<div class="product-list">
<?php
$cols = $MAX_ITEM_ROW ;
$span = floor(12/$cols);
foreach ($products as $i => $product) { ?>
<?php if( $i++%$cols == 0 ) { ?>
<div class="row-fluid">
<?php } ?>
<div class="span<?php echo $span;?> product-block">
<div class="product-inner">

<?php if ($product['thumb']) { ?>
<div class="image">
<?php if( $product['special'] ) { ?>
<div class="product-label-special label">
<span><?php echo $this->language->get( 'text_sale' ); ?></span>
</div>
<?php } ?>
<a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a>
<?php if( $categoryPzoom ) { $zimage = str_replace( "cache/","", preg_replace("#-\d+x\d+#", "", $product['thumb'] )); ?>
<a href="<?php echo $zimage;?>" class="colorbox product-zoom" rel="colorbox" title="<?php echo $product['name']; ?>"><span class="icon-zoom-in"></span></a>
<?php } ?>

<?php if( $categoryPzoom ) { $zimage = str_replace( "cache/","", preg_replace("#-\d+x\d+#", "", $product['thumb'] )); ?>
<?php } ?>
<div class="group-action">
<div class="btn-overlay cart">
<input type="button" value="<?php echo $button_customize; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button" />
</div>
<div class="btn-overlay wishlist">
<a class="pavicon-wishlist" onclick="addToWishList('<?php echo $product['product_id']; ?>');"><?php echo $this->language->get("button_wishlist"); ?></a>
</div>
<div class="btn-overlay compare">
<a class="pavicon-compare" onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $this->language->get("button_compare"); ?></a>
</div>
</div>
</div>
<?php } ?>
<h4 class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h4>
<div class="description"><?php echo utf8_substr( strip_tags($product['description']),0,100);?>...</div>
<?php if ($product['rating']) { ?>
<div class="rating is-hover">
<img src="catalog/view/theme/<?php echo $this->config->get('config_template');?>/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" />
</div>
<?php } ?>

<?php if ($product['is_printable']) { ?>
<div style="overflow: auto; float: left; height: 42px;" class="ot_button">
<a href="<?php echo $product['link_customize']; ?>" target="_new">
<div style="background: url('catalog/view/theme/default/image/1.png') no-repeat scroll 0 0 transparent; float: left;
height: 42px; width: 41px; "></div>
<div style="background: url('catalog/view/theme/default/image/2.png') repeat-x scroll 0 0 transparent; float: left;
height: 42px; color: white; font-size: 16px; padding: 7px 5px 0px 5px; "><?php echo $text_link_customize; ?></div>
<div style="background: url('catalog/view/theme/default/image/3.png') no-repeat scroll 0 0 transparent; float: left;
height: 42px; width: 41px; "></div>
</a>
</div>
<div class="price">
<?php echo $text_starting_at; ?><?php echo $product['price']; ?>
</div>
<?php } else { ?>
<?php if ($product['price']) { ?>
<div class="price">
<?php if (!$product['special']) { ?>
<?php echo $product['price']; ?>
<?php } else { ?>
<span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
<?php } ?>
<?php if ($product['tax']) { ?>
<br />
<span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span>
<?php } ?>
</div>
<?php } ?>
<?php } ?>













</div>
<?php } ?>

<?php } ?>
</div>

<div class="product-filter">
<div class="pagination"><?php echo $pagination; ?></div>
</div>

<?php } ?>
<?php if (!$categories && !$products) { ?>
<div class="content"><?php echo $text_empty; ?></div>
<div class="buttons">
<div class="right"><a href="<?php echo $continue; ?>" class="button"><?php echo $button_continue; ?></a></div>
</div>
<?php } ?>
<?php echo $content_bottom; ?></div>
<script type="text/javascript"><!--
function display(view) {
if (view == 'list') {
$('.product-grid').attr('class', 'product-list');

$('.product-list div.product_block').each(function(index, element) {
html = '<div class="right">';
html += ' <div class="cart">' + $(element).find('.cart').html() + '</div>';
html += ' <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';
html += ' <div class="compare">' + $(element).find('.compare').html() + '</div>';
html += '</div>';

html += '<div class="left">';

var image = $(element).find('.image').html();

if (image != null) {
html += '<div class="image">' + image + '</div>';
}

var price = $(element).find('.price').html();

if (price != null) {
html += '<div class="price">' + price + '</div>';
}

html += ' <div class="name">' + $(element).find('.name').html() + '</div>';
html += ' <div class="description">' + $(element).find('.description').html() + '</div>';


var ot_button = $(element).find('.ot_button').html();

if (ot_button != null) {
html += '<div class="ot_button">' + ot_button + '</div>';
}



var rating = $(element).find('.rating').html();

if (rating != null) {
html += '<div class="rating">' + rating + '</div>';
}

html += '</div>';

$(element).html(html);
});

$('.display').html('<span style="float: left;"><?php echo $text_display; ?></span><a class="list active"><?php echo $text_list; ?></a><a class="grid" onclick="display(\'grid\');"><?php echo $text_grid; ?></a>');

$.totalStorage('display', 'list');
} else {
$('.product-list').attr('class', 'product-grid');

$('.product-grid div.product_block').each(function(index, element) {
html = '';

var image = $(element).find('.image').html();

if (image != null) {
html += '<div class="image">' + image + '</div>';
}

html += '<div class="name">' + $(element).find('.name').html() + '</div>';
html += '<div class="description">' + $(element).find('.description').html() + '</div>';



var ot_button = $(element).find('.ot_button').html();

if (ot_button != null) {
html += '<div class="ot_button" style="display:none">' + ot_button + '</div>';
}


var price = $(element).find('.price').html();

if (price != null) {
html += '<div class="price">' + price + '</div>';
}

var rating = $(element).find('.rating').html();

if (rating != null) {
html += '<div class="rating">' + rating + '</div>';
}

html += '<div class="cart">' + $(element).find('.cart').html() + '</div>';
html += '<div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';
html += '<div class="compare">' + $(element).find('.compare').html() + '</div>';

$(element).html(html);
});

$('.display').html('<span style="float: left;"><?php echo $text_display; ?></span><a class="list" onclick="display(\'list\');"><?php echo $text_list; ?></a><a class="grid active"><?php echo $text_grid; ?></a>');

$.totalStorage('display', 'grid');
}
}

view = $.totalStorage('display');

if (view) {
display(view);
} else {
display('<?php echo $DISPLAY_MODE;?>');
}
//--></script>
<?php if( $categoryPzoom ) { ?>
<script type="text/javascript"><!--
$(document).ready(function() {
$('.colorbox').colorbox({
overlayClose: true,
opacity: 0.5,
rel: false,
onLoad:function(){
$("#cboxNext").remove(0);
$("#cboxPrevious").remove(0);
$("#cboxCurrent").remove(0);
}
});

});
//--></script>
<?php } ?>
</div>
<?php if( $SPAN[2] ): ?>
<div class="span<?php echo $SPAN[2];?>">
<?php echo $column_right; ?>
</div>
<?php endif; ?>
</div>
<?php echo $footer; ?>

Newbie

Posts

Joined
Wed Oct 30, 2013 5:35 am

Post by stokeyblokey » Tue Dec 17, 2013 10:50 pm

Ok there is definitely something wrong with that output - you have too many closing php tags and there should not be that big gap between lines 177 and 191, plus it looks to me like a div is missing, or the div tags are messed up because you have extra closing div tags as well as php ones.

The error is throwing up because the php tag on line 201 is closing without the corresponding opening tag.

What extensions do you have running using vQmod which make changes to the catalog/view/theme/*/template/category.tpl file?

If you are not sure then you can try to use PRGrep to search for "template/category.tpl" in your XML files, or you can disable vQmods and test, re-enable and move on until you find the culprit or culprits.

Next step is to see what is being added/replaced/removed by the vQmod and where in the file it does this - there is a very good chance it works on the default template only which is why there is an error.

You can always revert temporarily to the default template and see if the error still occurs - that would be a good indicator ;)

Good luck!

Stokey

Stokey


User avatar
Active Member

Posts

Joined
Sat Aug 31, 2013 10:19 pm

Post by afatokun » Wed Feb 10, 2016 3:10 pm

Please, I need help on this issue - my pav meganu dis-appeared without any error message.

Although, I get this error message frequently while editing product : Fatal error: Call to undefined method Openbay::productUpdateListen() in /home2/escapae0/public_html/vqmod/vqcache/vq2-admin_controller_catalog_product.php on line 77

My site link: escapadeng.com

Newbie

Posts

Joined
Wed Feb 10, 2016 2:54 pm
Who is online

Users browsing this forum: Bing [Bot], paulfeakins and 53 guests