2013-05-20 89 views
0

我正在使用virtmart 2.0.20的新版本。在產品詳細信息頁面上,當我點擊顯示購物車時,它將不會顯示到購物車頁面。它正在重定向到某個索引頁面。它顯示購物車鏈接顯示的鏈接是'index.php/component/virtuemart/cart?Itemid = 0'。請告訴我如何重定向到購物車頁面。Virtuemart 2.0.20顯示購物車並未重定向到購物車頁

提前感謝名單

回答

0

把在你這裏addtocart按鈕

 <input type="hidden" class="pname" value="<?php echo $product->product_name ?>" /> 
     <input type="hidden" name="option" value="com_virtuemart" /> 
     <input type="hidden" name="view" value="cart" /> 
     <input type="hidden" name="virtuemart_product_id[]" value="<?php echo $product->virtuemart_product_id ?>" /> 
     <input type="hidden" name="virtuemart_manufacturer_id" value="<?php echo $product->virtuemart_manufacturer_id ?>" /> 
     <input type="hidden" name="virtuemart_category_id[]" value="<?php echo $product->virtuemart_category_id ?>" />