Skip to content

Commit

Permalink
fix(widget-compre-confie): update to new script for acquired company (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgnreis committed Aug 16, 2023
1 parent e7b0398 commit 06dcb63
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions @ecomplus/widget-compre-confie/cms.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { name } from './package.json'

export default () => ({
label: 'Avaliações Compre & Confie',
label: 'Avaliações Confi',
thumbnail: 'https://ecom.nyc3.cdn.digitaloceanspaces.com/storefront/widgets/compre-confie.png',
fields: [
{
Expand All @@ -11,7 +11,7 @@ export default () => ({
},
{
label: 'Ativar',
hint: 'Instalar selo Compre & Confie',
hint: 'Instalar selo Confi',
name: 'active',
widget: 'boolean'
},
Expand All @@ -38,10 +38,10 @@ export default () => ({
hint: 'Personalizações do widget',
fields: [
{
label: 'Store Id Compre & Confie',
label: 'Store Id Confi',
name: 'compreConfieStoreId',
widget: 'string',
hint: 'ID da loja que é informado pelo Compre & Confie'
hint: 'ID da loja que é informado pelo Confi'
}
]
},
Expand Down
4 changes: 2 additions & 2 deletions @ecomplus/widget-compre-confie/src/append/stamps.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<li>
<a
id="seloEconfy"
href="https://www.compreconfie.com.br/<%- options.compreConfieStoreId %>"
href="https://confi.com.vc/lojas-confiaveis/detalhes?id=<%- options.compreConfieStoreId %>"
target="_blank"
data-noop="redir(this.href);"
></a>
<script
type="text/javascript"
id="getData"
src="https://selo.compreconfie.com.br/scripts/getData.js?sellerId=<%- options.compreConfieStoreId %>"
src="https://cdn.confi.com.vc/scripts/getData.js?sellerId=<%- options.compreConfieStoreId %>"
></script>
</li>
<% } %>
4 changes: 2 additions & 2 deletions @ecomplus/widget-compre-confie/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ export default (options = {}) => {
const $script = document.createElement('script')
$script.id = 'getData'
$script.type = 'text/javascript'
$script.src = 'https://banner.compreconfie.com.br/scripts/tagBanner.min.js' +
`?${compreConfieStoreId}&lightbox=true`
$script.src = 'https://cdn.confi.com.vc/scripts/tagBanner.min.js' +
`?sellerId=${compreConfieStoreId}&lightbox=true`
document.body.appendChild($script)
clearInterval(tryAppendInterval)
}
Expand Down

0 comments on commit 06dcb63

Please sign in to comment.