Skip to content

Instantly share code, notes, and snippets.

View weslleyanjos's full-sized avatar

Weslley Anjos weslleyanjos

  • LINKC - Tecnologia em Estacionamento
  • Presidente Venceslau
View GitHub Profile

Instalação do widget na Ciashop

Página de produto

Head

<script type="text/javascript">
 var _trustvox_shelf_rate = _trustvox_shelf_rate || [];
 _trustvox_shelf_rate.push(['_storeId', 'XXXXXX']);

SSH - Conectar no servidor

ssh -i ~/.ssh/google [email protected]
cd /mnt/trustvox_certificates-production/current/ &&  bundle exec rails c

Gerar certificado

StoreCertificateIdentifier.create(store_id: XXX, store_name: "XXXXXX")

SSH - Email - Alterar quantidade de dias de disparo dos emails de uma loja

s = Store.find(XX)
s.send_sale_mail = false
s.preferences['evaluation_period_days'] = 12
s.save
# Página de produto
## Head
_CSS responsável pelo estilo nas estrelinhas com texto "Clique e veja!"_
```html
<style type="text/css">
.trustvox-widget-rating .ts-shelf-container,
.trustvox-widget-rating .trustvox-shelf-container {display: inline-block;}

SSH - Acessar servidor

Ambiente de PRODUÇÃO

ssh -i ~/.ssh/google [email protected]
cd /mnt/trustvox-production/current && bundle exec rails c

Ambiente de STAGING

@weslleyanjos
weslleyanjos / 0_reuse_code.js
Created March 24, 2017 13:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@weslleyanjos
weslleyanjos / instrucoes.md
Last active November 18, 2016 03:28
TrustSEO - PrintLoja

Tutorial para ter resultado bem indexado e com Rich Snippets no resultado de busca do Google

Padronizar página de produto para itemscope="" itemtype="http://schema.org/Product"

  1. Alterar o atual itemscope="" itemtype="http://data-vocabulary.org/Product" para itemscope="" itemtype="http://schema.org/Product".
  2. Remover ou ajustar atributos específicos do tipo data-vocabulay para schema como por exemplo: itemprop="identifier", itemprop="availability", inserir nome, itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb" e qualquer outro atributo que esteja dando erro.

Ferramenta para testar e analisar

Link: https://search.google.com/structured-data/testing-tool?hl=pt-BR

@weslleyanjos
weslleyanjos / V2-TOUCH-footer.html
Last active August 19, 2016 20:35
Loja Touch Watches - Grupo Technos
@weslleyanjos
weslleyanjos / Fragment
Created August 15, 2016 19:21
Script feito para loja Eletrodex
#Trocar opinião do produto
```PowerShell
p = Store.find(3481).products.where(code: '3982').first
pNew = Store.find(3481).products.where(code: '2564').first
ops = Store.find(3481).opinions.where(product_id: p)