Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit 7660e4a

Browse files
author
Hannes Schippmann
committed
Minor: added productImageUrl to addWidget section in upgrade guide.
1 parent f4b32a3 commit 7660e4a

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Use list notation, and following prefixes:
1313
### NEXT RELEASE
1414

1515
- Feature: updated snippet to v3.1.0
16+
- Minor: added productImageUrl to addWidget section in upgrade guide. (hs)
1617

1718
### 1.1.0
1819

source/upgrade-guide/index.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ Change this to the new integration::
4949
!function(a,b,c,d){var e,f,g,h,i,j,k,l,m;for(a.Virtusize=d,a[d]=a[d]||[],a[d].env=null!=a.vsEnv?a.vsEnv:"production",a[d].url=null!=a.vsUrl?a.vsUrl:a.location.host,a.vsEnv=void 0,a.vsUrl=void 0,a[d].methods=["setApiKey","setRegion","setLanguage","setWidgetOverlayColor","addWidget","ready","on","setAvailableSizes","setSizeAliases","addOrder","setUserId"],a[d].factory=function(b){return function(){var c;return c=Array.prototype.slice.call(arguments),c.unshift(b),a[d].push(c),a[d]}},m=a[d].methods,k=0,l=m.length;l>k;k++)f=m[k],a[d][f]=a[d].factory(f);a[d].snippetVersion="3.1.0",i=b.createElement(c),e=b.getElementsByTagName(c)[0],i.async=1,g="/integration/v3.js",h=".virtusize.com"+g,j={production:"api"+h,staging:"staging"+h,local:a[d].url+g+"?source"},i.src="//"+("https:"!==a.location.protocol&&"local"!==a[d].env?"cdn.":"")+j[a[d].env],i.id="vs-integration",e.parentNode.insertBefore(i,e)}(window,document,"script","vs");
5050
5151
vs.setApiKey("0000000000000000000000000000000000000000");
52-
vs.addWidget("PRODUCT_ID", "BUTTON_SELECTOR");
52+
vs.addWidget({
53+
productId: "PRODUCT_ID",
54+
buttonSelector: "BUTTON_SELECTOR",
55+
productImageUrl: "PRODUCT_IMAGE_URL"
56+
});
5357
</script>
5458
<!-- End Virtusize Integration -->
5559

@@ -61,6 +65,9 @@ Change this to the new integration::
6165
If you don't want to create your own button, please talk to your Virtusize
6266
sales contact.
6367

68+
The widget v5 displays product images. Please provide the URL to a publicly
69+
available image during integration.
70+
6471

6572
2. Integrate on your order confirmation page
6673
============================================

0 commit comments

Comments
 (0)