在我的网站上查看Paypal购物车内容 [英] View Paypal shopping cart contents on my site

查看:102
本文介绍了在我的网站上查看Paypal购物车内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上都设置了贝宝添加到购物车"按钮,并在每个页面的顶部设置了查看购物车"按钮.

I have paypal "add to cart" buttons set-up throughout my site and a "view cart" button at the top of every page.

查看购物车"按钮的代码为:

The code for the view cart button is:

  <form target='paypal' action='https://www.paypal.com/cgi-bin/webscr' method='post'>
  <input type='hidden' class='displaynone' name='cmd' value='_cart' />
  <input type='hidden' class='displaynone' name='business' value='XXXXXXX123' />
  <input type='hidden' class='displaynone' name='display' value='1' />
  <input type='submit' class='paypalcart' value='View Cart' />
  </form>

当前,单击查看购物车"会打开一个新的浏览器标签,并显示在Paypal网站上添加的项目.

Currently, clicking "view cart" opens up a new browser tab and displays the items added on a paypal website.

相反,我想单击查看购物车"按钮,将用户带到我的页面www.example.com/cart,然后在该页面上以<div><iframe>(或其他).

Instead, I'd like clicking the "view cart" button to take the user to my page www.example.com/cart and then have the contents of the paypal cart displayed on that page in a <div> or <iframe> (or something else).

有什么建议吗?

非常感谢.

推荐答案

您可以使用Minicart Js. 来源 确实不符合您的要求,但确实如此.当您单击添加到购物车"时,nt重定向到贝宝站点,而是最终在您单击结帐"时在您自己的网站内打开灯箱,它将带您进入贝宝结帐页面. 样本 演示

You can use Minicart Js. Source which really dont suit your requirement, but it does'nt redirect to paypal site when you click "Add to Cart" instead opens lightbox inside your own website eventually when you click "Checkout" it takes you to paypal checkout page. Sample Demo

这篇关于在我的网站上查看Paypal购物车内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆