我有Joomla virtuemart网站,我意外地卸载了Virtuemart,但幸运的是我有一个备份所以我将大部分文件再次覆盖到服务器,将一些MySQL数据重新插入到数据库中,但我似乎无法获得价格并添加到购物车等详细信息显示在产品详细信息页面中。
有没有理由发生这种情况?我错过了某个表或数据库吗?
我不确定在产品详细信息页面方面我应该查看哪个文件...
感谢您的帮助。
以下是产品详细信息页面的代码:
<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
mm_showMyFileName(__FILE__);
require_once ( CLASSPATH. 'ps_product.php');
$ps_product = new ps_product;
?>
<div id="ttn_prdDetail_wrapper"><div id="product_list_inner1"><div id="product_list_inner2"><div id="product_list_inner3">
<?php if( $this->get_cfg( 'product_navigation', 1 )) {
if( !empty( $previous_product )) {
echo '<a class="previous_page" href="'.$previous_product_url.'">'.shopMakeHtmlSafe($previous_product['product_name']).'</a>';
}
if( !empty( $next_product )) {
echo '<a class="next_page" href="'.$next_product_url.'">'.shopMakeHtmlSafe($next_product['product_name']).'</a>';
}
} ?>
<br clear="all"/>
<?php $ttn_prdName = explode('|',$product_name,2);?>
<h1 class="prdName">
<?php echo $ttn_prdName[0] ?> <?php echo $edit_link ?>
</h1>
<div class="prdImages">
<div class="mainImage">
<?php echo $product_image ?>
</div>
<h2> More images (click to enlarge)</h2>
<div id="altviews">
<div class="alter_img">
<?php echo $product_image2 ?>
</div>
<?php echo $this->vmlistAdditionalImages( $product_id, $images ) ?>
<div style="clear:both;"></div>
</div>
</div>
<div class="prdDesc_wrapper">
<?php echo $product_description ?>
</div>
<div style="clear:both;"></div>
</div></div></div></div>
<!--Show bottom note ò prdoduct--->
<div class="prdBotNote">
<?php echo $this->get_cfg('ttn_botnote')?>
</div>
<?php
// Show Featured Products
if( $this->get_cfg( 'showFeatured', 1 )) {
/* featuredproducts(random, no_of_products,category_based) no_of_products 0 = all else numeric amount
edit featuredproduct.tpl.php to edit layout */
?>
<div id="ttn-fp"><div id="ttn-fp-inner1"><div id="ttn-fp-inner2"><div id="ttn-fp-inner3">
<?php
echo $ps_product->ttnfeaturedProducts(true,50,true);
?>
</div></div></div></div>
<?php
}
?>
下面是我的表格列表......我不确定我是否遗漏了任何表格:
jos_vm_auth_group
jos_vm_auth_user_group
jos_vm_auth_user_vendor
jos_vm_cart
jos_vm_category
jos_vm_category_xref
jos_vm_country
jos_vm_coupons
jos_vm_creditcard
jos_vm_csv
jos_vm_currency
jos_vm_export
jos_vm_function
jos_vm_manufacturer
jos_vm_manufacturer_category
jos_vm_module
jos_vm_orders
jos_vm_order_history
jos_vm_order_item
jos_vm_order_payment
jos_vm_order_status
jos_vm_order_user_info
jos_vm_payment_method
jos_vm_product
jos_vm_product_attribute
jos_vm_product_attribute_sku
jos_vm_product_category_xref
jos_vm_product_discount
jos_vm_product_download
jos_vm_product_files
jos_vm_product_mf_xref
jos_vm_product_price
jos_vm_product_product_type_xref
jos_vm_product_relations
jos_vm_product_reviews
jos_vm_product_type
jos_vm_product_type_parameter
jos_vm_product_votes
jos_vm_shipping_carrier
jos_vm_shipping_label
jos_vm_shipping_rate
jos_vm_shopper_group
jos_vm_shopper_vendor_xref
jos_vm_state
jos_vm_tax_rate
jos_vm_userfield
jos_vm_userfield_values
jos_vm_user_info
jos_vm_vendor
jos_vm_vendor_category
jos_vm_waiting_list
jos_vm_zone_shipping
答案 0 :(得分:0)
我还有一个jos_vm_weblinks
表,但我怀疑这是问题的原因。你说你已经'再次将大部分文件覆盖到服务器';你是怎么做的?如果你还没有这样做,也许全新安装的Joomla / Virtuemart会有所帮助吗?然后,您可以简单地删除它安装的数据库架构,并再次使用您自己的架构替换它。
我还建议您检查错误日志(/logs/error.txt
)以查看是否有任何报告。检查Apache错误日志也不会有什么坏处。另外,您是否检查过您是否正确插入了旧数据库信息?我知道这是一个非常明显的建议,但我总是做那样愚蠢的事情!