The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Apr 11, 2012 11:54 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Apr 11, 2012 11:47 am
Posts: 2
I'm trying to upgrade virtuemart and joomla to there latest version from joomla 1.5.22 and virtuemart from 1.1.4, only thing is on updating virtuemart i get the following fatal error message upon loading the site in a browser

"Fatal error: Call to undefined method ps_product::show_snapshot_featured()
in
C:\xampp\htdocs\_installation\modules\mod_virtuemart_featureprod\mod_virtuem
art_featureprod.php on line 126"


the relevent code is:

// END - MultiCategory Display - deneb
$q .= "AND #__{vm}_product.product_publish='Y' \n";
$q .= "AND #__{vm}_product.product_special='Y' \n";
if( CHECK_STOCK && PSHOP_SHOW_OUT_OF_STOCK_PRODUCTS != "1") {
$q .= " AND product_in_stock > 0 \n";
}
$q .= "ORDER BY RAND() LIMIT 0, $max_items";
}
else {
$q = "SELECT DISTINCT product_sku FROM #__{vm}_product WHERE ";
$q .= "(#__{vm}_product.product_parent_id='' OR #__{vm}_product.product_parent_id='0') AND vendor_id='".$_SESSION['ps_vendor_id']."' ";
$q .= "AND #__{vm}_product.product_publish='Y' ";
$q .= "AND #__{vm}_product.product_special='Y' ";
if( CHECK_STOCK && PSHOP_SHOW_OUT_OF_STOCK_PRODUCTS != "1") {
$q .= " AND product_in_stock > 0 ";
}
$q .= "ORDER BY RAND() LIMIT 0, $max_items";
}
$db->query($q);
if( $db->num_rows() > 0 ) {
$width = intval(100 / intval($db->num_rows()));
?>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<?php
$i = 0;
while($db->next_record() ){
if ($i%2)
$sectioncolor = "sectiontableentry2";
else
$sectioncolor = "sectiontableentry1";

if( $display_style == "vertical" ) {
?>
<tr align="center" class="<?php echo $sectioncolor ?>">
<td width="<?php echo $width ?>%">
<?php
$ps_product->show_snapshot_featured($db->f("product_sku"), $show_price, $show_addtocart);
?><br />
</td>
</tr>
<?php
}
elseif( $display_style== "horizontal" ) {
if( $i == 0 )
echo "<tr>\n";
echo "<td width=\"$width%\" align=\"center\">";
$ps_product->show_snapshot_featured($db->f("product_sku"), $show_price, $show_addtocart);
echo "</td>\n";
if( ($i+1) == $db->num_rows() )
echo "</tr>\n";
}
elseif( $display_style== "table" ) {
if( $i == 0 )
echo "<tr>\n";
echo "<td width=\"$width%\" align=\"center\" >";
$ps_product->show_snapshot_featured($db->f("product_sku"), $show_price, $show_addtocart);
echo "</td>\n";
if ( ($i+1) % $products_per_row == 0)
echo "</tr><tr>\n";
if( ($i+1) == $max_items )
echo "</tr>\n";

?>
<!--<div class="freehome-delivery-wrapper1">
<div class="freehome-delivery-top">
<p class="freehome-delivery-headerfont">£100.00</p>
<ul>
<li>
<img src="<?php echo $this->baseurl ?>

had some guys working on this and even they cannot figure it out


Top
 Profile  
 
PostPosted: Wed Apr 11, 2012 8:09 pm 
User avatar
Joomla! Champion
Joomla! Champion

Joined: Sat Aug 16, 2008 1:46 pm
Posts: 5164
Location: the Bat Cave
My guess is that you are missing the file that defines the "ps_product::show_snapshot_featured()" method or the file is corrupt. Have you tried searching the Virtuemart forum to see if anyone there has solved this problem already?
http://forum.virtuemart.net/


Top
 Profile  
 
PostPosted: Wed Apr 11, 2012 8:49 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Apr 11, 2012 11:47 am
Posts: 2
wish i could searched it but couldn't find anything tried to register but comes up with 'registration closed'???


Top
 Profile  
 
PostPosted: Wed Apr 11, 2012 10:08 pm 
User avatar
Joomla! Champion
Joomla! Champion

Joined: Sat Aug 16, 2008 1:46 pm
Posts: 5164
Location: the Bat Cave
I was able to search their forum after entering the secure phrase and answering the question. I found this post, maybe you can reply to it and get a response;
http://forum.virtuemart.net/index.php?topic=66305.msg219235#msg219235
Possibilities I read;
a modified VM file that doesn't work with the update
a SEF extension messing up the path
a missing or corrupt file

Have you tried uploading the update for VM again?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 



Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group