-
Notifications
You must be signed in to change notification settings - Fork 5
/
demo.html
64 lines (57 loc) · 3 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>PayPal minicart with weight-based shipping cost calculation</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-63611585-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body style="width:700px;margin-left: auto;margin-right: auto;font-family: 'Open Sans', sans-serif;">
<span id="PayPalMiniCart_ViewCart"
style="right:2px;position:fixed;width:90px;cursor:pointer;color:red;">My Cart</span>
<h3>MINICART-PLUS LIVE PREVIEW</h3>
<p>Here it is a simple example of how to use minicart-plus. Once you look at the source code of this page,
the integration of minicart-plus in your webpage should be quite easy.</p>
<p>Note how a minimum order limit of 6 items is implemented in the last script section.</p>
<strong>Test Product One: €123.18, 240g. </strong>
<div id="PayPalMiniCart" style='margin-bottom:30px;'>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="business" value="[email protected]" />
<input type="hidden" name="item_name" value="Test Product One" />
<input type="hidden" name="item_number" value="ref. 04465462" />
<input type="hidden" name="quantity" value="1" />
<input type="hidden" name="amount" value="123.18" />
<input type="hidden" name="currency_code" value="EUR" />
<input type="hidden" name="weight_g" value="240">
<input type="submit" name="submit" value="BUY NOW" />
</form>
</div>
<strong>Test Product Two: €86.33, 185g. </strong>
<div id="PayPalMiniCart" style='margin-bottom:30px;'>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="business" value="[email protected]" />
<input type="hidden" name="item_name" value="Test Product Two" />
<input type="hidden" name="item_number" value="ref. 8766124" />
<input type="hidden" name="quantity" value="1" />
<input type="hidden" name="amount" value="86.33" />
<input type="hidden" name="currency_code" value="EUR" />
<input type="hidden" name="weight_g" value="185">
<input type="submit" name="submit" value="BUY NOW" />
</form>
</div>
</body>
<script src="js/jquery.min.js"></script>
<script src="js/minicart.min.js"></script>
<script src="js/minicart-plus.js"></script>
</html>