Sezzle widget installation for site..

Highlighted
New Member
2 0 0
Thank you for your help. I was able to get out on the product page However i still cannot get fb it to show on the cart?
0 Likes
Highlighted
New Member
2 0 0

Could you assist me too? I've tried so many things when it comes to setting my target path.

 

Website: www.businessbakerie.com

 

My attempts:

price__pricing-group/.price-item price-item--regular

price__sale/.price-item price-item--sale

price__sale/.visually-hidden visually-hidden--inline

price__pricing-group/.visually-hidden visually-hidden--inline

price__sale

#price-item price-item--sale

#price-item price-item--sale/span

price__unit/.visually-hidden visually-hidden--inline

price__unit

#price-item price-item--regular

#price-item price-item--sale

price-item price-item--sale

price__pricing-group

.price__sale

.price__sale/child-1

 

 

0 Likes
Highlighted
Shopify Partner
1647 206 325

@BusinessBakerie there are many targetXPath that would work, one is .price__pricing-group/.price-item--sale, however, the issue is that you have a JavaScript error on your page. The root cause are the apostrophes around the value for merchantID in the sezzleConfig variable:

<script type="text/javascript">
  document.sezzleConfig =
  {
    targetXPath: '.product__price',
    widgetType: 'product-page',
    renderToPath: '..',
    merchantID: ‘40c000bc-c7b2-48de-a25c-034c83b33c25’, 
    forcedShow: true,
    alignment: 'left',
    theme: 'light',
    widthType: 'thin',
    widgetType: 'cart',
    minPrice: 0,
    maxPrice: 100000,
  }
</script>

So you have to change them to regular apostrophes or just replace the snippet above with the snippet below:

<script type="text/javascript">
  document.sezzleConfig =
  {
    targetXPath: '.product__price',
    widgetType: 'product-page',
    renderToPath: '..',
    merchantID: '40c000bc-c7b2-48de-a25c-034c83b33c25', 
    forcedShow: true,
    alignment: 'left',
    theme: 'light',
    widthType: 'thin',
    widgetType: 'cart',
    minPrice: 0,
    maxPrice: 100000,
  }
</script>
Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
2 Likes
Highlighted
New Member
2 0 0

Thank you so much! This worked.

0 Likes
Highlighted
Tourist
3 0 0

hi there, I used the codes above and it worked but with some problems. 

<script type="text/javascript">
document.sezzleConfig =
{
targetXPath: '.product__price',
widgetType: 'product-page',
renderToPath: '.',
merchantID: '2b80ccc8-da06-4710-9fc8-16b249a8140e',
forcedShow: true,
alignment: 'left',
theme: 'light',
widthType: 'thin',
widgetType: 'cart',
minPrice: 0,
maxPrice: 100000,
}
</script>


Capture.PNG

0 Likes
Highlighted
Shopify Partner
1647 206 325
@demdartx what’s your store URL? Looks like the xpath matched more than one element.
Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
1 Like
Highlighted
Highlighted
Shopify Partner
1647 206 325

@demdartx use this as a value for targetXPath:

.price-item--regular
Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
1 Like
Highlighted
Tourist
3 0 0

Wow thank you, it was solved. 5/5 for fast response.

another question though, when I change the size of the product it changes the price, sezzle will disappear. any Idea whats causing it?


0 Likes
Highlighted
Shopify Partner
1647 206 325

Glad it helped. As for the issue with variant selection, I would assume Sezzle would need to be reinitiated after variant selection as most probably the whole price snippet is regenerated and Sezzle is left with a stale reference. These are just assumptions.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes