Skip to content

Instantly share code, notes, and snippets.

<p>Accept our <a href="https://google.com" target="_blank">Terms and Conditions</a></p>
@bougsid
bougsid / Add address to some products
Created March 2, 2024 13:04
Add address to some products
<script>
window.ES_CONFIG_PARTIAL_OVERWRITE = {
"fields": [
{
"size": "18",
"type": "title",
"style": {
"color": "#000000",
"fontSize": "18",
"textAlign": "center",
@bougsid
bougsid / gist:863a2e4fefc28e1d247e13279acb6af9
Created February 10, 2024 22:03
Gempages is page builder
<span id="es-form-hook" ></span>
<script>
window.ES_IS_PAGEBUILDER = true;
</script>
@bougsid
bougsid / Add shipping by product
Created December 21, 2023 11:50
Add shipping by product
<script>
window.ES_CONFIG_PARTIAL_OVERWRITE = {
"settings": {
"shippingConfig": {
"type": "custom",
"enabled": true,
customRates:[
{
"id": "7tzuv20qhy4j48qstztv4l",
"name": "Shipping",
@bougsid
bougsid / Hide and Show button after x seconds
Last active December 14, 2023 18:50
Hide and Show button after x seconds
<script>
var s = 5;
var existCondition = setInterval(function () {
var btns = document.querySelectorAll('.es-popup-button-product');
if (btns.length > 0) {
btns.forEach(function (button) {
button.style.display = 'none';
setTimeout(function() {
button.style.display = 'flex';
}, s * 1000);
<script>
window.ES_IS_PAGEBUILDER = true;
</script>
@bougsid
bougsid / taboola for each product
Last active April 6, 2024 22:01
Pixel for each product
<script>
window.ES_CONFIG_PARTIAL_OVERWRITE = {
settings: {
pixels: [
{
type: 'tfa',
value: '279380921530336',
},
],
},
@bougsid
bougsid / gist:74ade03ccb3a0fe6ee138cc3a9db2432
Created November 13, 2023 17:03
Change form type to embedded
<script>
window.ES_CONFIG_PARTIAL_OVERWRITE = {settings: {form_type: "native",}}
</script>
@bougsid
bougsid / gist:4edf3db17d6664825f4f725425e4be96
Created November 12, 2023 20:23
Disable downsell on a product
<script>
window.EASYSELL_DOWNSELLS = null;
</script>
<style>
.es-note-group{
display: none;
}
</style>