【问题标题】:Virtuemart 2.0.20 show cart not redirect to cart pageVirtuemart 2.0.20 显示购物车未重定向到购物车页面
【发布时间】:2013-05-20 11:06:54
【问题描述】:

我正在使用新版本的 2.0.20。在产品详细信息页面上,当我单击显示购物车时,它不会重定向到购物车页面。它正在重定向到某个索引页面。它在显示购物车链接上显示的链接是“index.php/component/virtuemart/cart?Itemid=0”。请告诉我如何重定向到购物车页面。

提前感谢

【问题讨论】:

    标签: joomla virtuemart


    【解决方案1】:

    把这里放在你的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 ?>" />
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-30
      • 1970-01-01
      • 2012-10-24
      • 2012-09-27
      • 1970-01-01
      相关资源
      最近更新 更多