This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Criar uma função que remove os produtos do carrinho (VTEX) automaticamente caso o produto esteja fora de estoque (availability:"withoutStock") | |
vtexjs.checkout | |
.getOrderForm() | |
.then(function (orderForm) { | |
console.log(orderForm); | |
var itemsToRemove = []; | |
orderForm.items.forEach(function (item, index) { | |
if (item.availability == "withoutStock") { | |
itemsToRemove.push({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
E-commerces (Tray, Loja Integrada, Shopify, VTEX CMS, VTEX/IO) | |
https://www.duhellen.com.br/ (VTEX IO) | |
https://www.alexfarma.com.br/ (VTEX) | |
https://www.unitintas.com.br/ (VTEX) | |
https://cantinhodamoda.com.br (VTEX) | |
https://www.yahoocalcados.com.br/ (VTEX) | |
https://www.wolloko.com.br/ | |
https://www.100limits.com.br (VTEX) | |
https://www.tmdpneus.com.br/ (VTEX) | |
https://www.bambolla.com.br/ (VTEX) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Baseado no Bootstrap --> | |
<form> | |
<div class="form-group"> | |
<label class="col-md-12">UF</label> | |
<div class="col-md-12"> | |
<select id="" name="uf"> | |
<option value="AC">Acre</option> | |
<option value="AL">Alagoas</option> | |
<option value="AP">Amapá</option> | |
<option value="AM">Amazonas</option> |