Virtuemart 添加到购物车,价格详细信息等未出现
我有 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
I have Joomla virtuemart site and I accidently uninstalled Virtuemart but luckly I had a backup so I overwritten most of the files to the server again with some MySQL data into the databases but I can't seem to get the price and add to cart etc details showing up in the product detail page.
Is there a reason why this is happening? Have I missed a certain table or database?
I'm not sure which file I should be looking at in terms of product details page...
Thank you for your help.
Below is the code for the product details page:
<?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
}
?>
Below is the list of the tables I have...I'm not sure I'm missing any table:
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我还有一个 jos_vm_weblinks 表,但我怀疑这会是问题的原因。您说您已“再次将大部分文件覆盖到服务器”;你是怎么做到的?如果您还没有这样做,也许全新安装 Joomla/Virtuemart 会有所帮助?然后,您可以简单地删除它安装的数据库架构,并再次用您自己的数据库架构替换它。
我还建议检查您的错误日志 (
/logs/error.txt
) 以查看是否报告了任何内容。检查 Apache 错误日志也没什么坏处。另外,您是否检查过是否正确插入了旧数据库信息?我知道这是一个非常明显的建议,但我总是做这样的傻事!I also have a
jos_vm_weblinks
table, but I doubt that will be the cause of the problem. You say that you have 'overwritten most of the files to the server again'; how did you do this? If you have not done so already, perhaps a completely fresh install of Joomla/Virtuemart would help? You could then simply delete the DB schema that it installs and replace it with your own once again.I would also suggest checking your error logs (
/logs/error.txt
) to see if anything is getting reported. It couldn't hurt to check your Apache error logs either. Also, have you checked that you have inserted your old DB info correctly? I know that's a very obvious thing to suggest, but I'm always doing silly things like that!