Amazon Simple Affiliate

Club para webmasters Foros ChorriClub Herramientas Amazon Simple Affiliate

Viendo 15 entradas - de la 16 a la 30 (de un total de 41)
  • Autor
    Entradas
  • #10197 Karma: 0
    Xares
    Participante
    2

    No sé si será por un problema con la última versión de wordpress pero no me funciona este plugin, cuando en «setup» meto los datos de clave de acceso, clave secreta, ID de asociado… y le doy a update, me sale error y no puedo volver a entrar en setup hasta que desinstalo el plugin y lo vuelvo a instalar. He probado desactivando todos lo plugins menos el ASA2 y pasa lo mismo.

    Ya no sé que plugin usar que use la API y no requiera licencia para funcionar ¿hay más opciones gratuitas?

    #10198 Karma: 1
    David Cuesta
    Superadministrador
    172

    No sé si será por un problema con la última versión de wordpress pero no me funciona este plugin, cuando en “setup” meto los datos de clave de acceso, clave secreta, ID de asociado… y le doy a update, me sale error y no puedo volver a entrar en setup hasta que desinstalo el plugin y lo vuelvo a instalar. He probado desactivando todos lo plugins menos el ASA2 y pasa lo mismo.

    Ya no sé que plugin usar que use la API y no requiera licencia para funcionar ¿hay más opciones gratuitas?

    Vaya… pues qué lío, solo puede ser incompatibilidad con el tema o con la versión de PHP… Opciones gratis que manejen la API no hay, o al menos no conozco 🙁

    #10199 Karma: 0
    Xares
    Participante
    2

    Estoy tonto, no había pensado en lo del PHP hasta que me lo has dicho. He actualizado del 7.0 al 7.4 y ya funciona xD gracias

    #10200 Karma: 0
    David Cuesta
    Superadministrador
    172

    Estoy tonto, no había pensado en lo del PHP hasta que me lo has dicho. He actualizado del 7.0 al 7.4 y ya funciona xD gracias

    Suele pasar, no es que estés tonto 😀

    Un saludo!

    #10237 Karma: 0
    Xares
    Participante
    2

    ¿sabéis si se puede quitar el mensaje de «(* = Enlace de afiliado / Fuente de la imagen: Programa de afiliados de Amazon)» que aparece en todos los productos?

    #10242 Karma: 0
    David Cuesta
    Superadministrador
    172

    Si no hay forma en las opciones del plugin, se puede ocultar con algo de css, si no encuentras cómo ocultarlo puedes abrir un ticket y lo miramos

    Un saludo!

    #10243 Karma: 0
    Xares
    Participante
    2

    Gracias David, pero ya lo encontré por fin después de probar mil cosas. Hay que editar las plantillas y desactivarlo donde dice «Disclaimer».
    Es que esto tiene un millón de opciones, y aparte del video de la otra página no he visto más tutoriales

    saludos

    • Esta respuesta fue modificada hace 3 años, 5 meses por Xares.
    #10256 Karma: 0
    Endika
    Participante
    4

    Buenos dias Xares, yo tambien estoy a vueltas con este plugin. Pero no encuentro donde editar las plantillas para quitar el mensaje de afiliados. Podrias hacer un pequeño croquis por favor?? Gracias de antemano.

    #10259 Karma: 2
    Xares
    Participante
    2

    En el menú de la izquierda del wordpress entra en «ASA 2 Pro», luego en «Templates» y ahí verás todas las platillas. Pasa el ratón sobre ellas y te saldrá una opción que dice «Customize». Entra en ese menú y baja hasta abajo en la seccion de «Misc», y donde dice «Disclaimer» lo pones en «None» y salvas.

    Por cierto ¿las calificaciones os funcionan? A mí me sale siempre este mensaje «Message: Automated monitoring detected more than 100 % of captcha pages during the last 12 hours and therefore set the refresh lock duration to 12 hours.»

    He intentado tal como aconsejan lo de activar el proxy y agregar uno para que me mire las calificaciones, pero no funciona con ninguno

    • Esta respuesta fue modificada hace 3 años, 5 meses por Xares.
    #10278 Karma: 2
    Marc
    Participante
    3

    Buenas compañeros,

    Yo llevo unos días trasteando el plugin. Para mi gusto, las plantillas que trae el plugin no me gustan, las del AAWP eran más bonitas a mi gusto. Así que me he puesto a crear mis propias plantillas de ASA2 (solo las que he usado en mis webs) al estilo AAWP. Creo que tengo la box de un único ASIN y el listado de 3 columnas. Creo que era una bestseller pero ahora no recuerdo.

    En el CSS he tenido que poner la ruta a las imágenes a pelo de mi dominio. Así que tendréis que reemplazar la cadena XXX por la vuestra y localizar las imágenes del AAWP para subirlas a la galería de vuestro wordpress. No puedo adjuntarlas en el mensaje. Y modificar, si fuera necesario la ruta a esas imágenes para que casen con las imágenes subidas.

    Las imagenes usadas son:

    icon-amazon-black.svg
    icon-check-prime.png
    [email protected]
    thumb-spacer.png
    v1-active.svg
    v1.svg
    v2-active.svg
    v2.svg

    Las plantillas he puesto los textos a pelo y no se pueden personalizar con el ASA2. Pero si sabes un poco de CSS y HTML puedes hacer lo que quieras. También me he comido las traducciones. En las plantillas originales lo tenéis, por si a alguien le hiciera falta varios idiomas.

    Lo pongo aquí para mejorar las plantillas y, entre la comunidad, crear más.

    CSS
    ==========

    Se añade al CSS del tema hijo de tu wordpress. Para no perderlo al actualizar el tema. Lo pongo aquí y no en la plantilla porque si se pone en la plantilla es una guarrada lo que hace el ASA2. Está en Apariencia -> personalizar -> css adicional

    .ASA2 {
        box-sizing: border-box;
    }
    
    .ASA2 div, .ASA2 span {
        box-sizing: border-box;
    }
    
    .ASA2-grid {
        letter-spacing: -0.31em;
        text-rendering: optimizespeed;
        font-family: FreeSans,Arimo,"Droid Sans",Helvetica,Arial,sans-serif;
        display: -webkit-flex;
        -webkit-flex-flow: row wrap;
        display: -ms-flexbox;
        -ms-flex-flow: row wrap;
        -ms-align-content: flex-start;
        -webkit-align-content: flex-start;
        align-content: flex-start;
        width: 104%;
        margin-left: -4%;
    }
    
    @media (min-width: 601px){
      .ASA2-grid {
          display: flex;
          display: -webkit-flex;
          flex-wrap: wrap;
      }
    }
    
    .ASA2-grid__item {
        display: inline-block;
        zoom: 1;
        letter-spacing: normal;
        word-spacing: normal;
        vertical-align: top;
        text-rendering: auto;
        font-family: sans-serif;
        width: 96%;
        margin-left: 4%;
    }
    
    @media (max-width: 480px){
      .ASA2 .ASA2-product--vertical {
          margin-bottom: 15px;
      }
    }
    
    .ASA2 .ASA2-product--vertical {
        zoom: 1;
        padding: 20px;
        background: #fff;
        border: 1px solid #ececec;
        color: inherit;
        position: relative;
        display: block;
        margin: 0 0 20px;
        max-width: 100%;
        font-size: 15px;
        line-height: 1.6;
        white-space: normal;
        min-width: 100%;
        padding: 25px 15px 15px;
    }
    
    .ASA2 .ASA2-product--vertical:before, .ASA2 .ASA2-product--vertical:after {
        content: " ";
        display: table;
    }
    
    .ASA2 div *, .ASA2 span *, .ASA2 div *:before, .ASA2 span *:before, .ASA2 div *:after, .ASA2 span *:after {
        box-sizing: border-box;
    }
    
    .ASA2 .ASA2-product--vertical .ASA2-product__ribbon--sale {
        position: absolute;
        top: -1px;
        right: -1px;
    }
    
    .ASA2 .ASA2-product--vertical .ASA2-product__ribbon {
        padding: 0 10px;
    }
    
    .ASA2-product__ribbon--sale {
        background: #27ae60;
        border-bottom-left-radius: 2px;
        color: #fff;
    }
    
    .ASA2 .ASA2-product--vertical.ASA2-product--bestseller .ASA2-product__image, .ASA2 .ASA2-product--vertical.ASA2-product--new .ASA2-product__image {
        margin-top: 3px;
    }
    
    .ASA2 .ASA2-product--vertical .ASA2-product__image {
        display: block;
        border: none;
        box-shadow: none;
        outline: none;
        text-decoration: none;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }
    
    .ASA2 .ASA2-product--vertical .ASA2-product__image-spacer {
        display: block;
        width: 100% \9;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        background-color: transparent;
        box-shadow: none;
        float: none;
        opacity: 1;
    }
    
    .ASA2 .ASA2-product--vertical .ASA2-product__content {
        position: relative;
        min-height: 75px;
    }
    
    .ASA2 .ASA2-product--vertical .ASA2-product__title {
        display: block;
        height: 40px;
        margin-top: 10px;
        border: none;
        box-shadow: none;
        outline: none;
        text-decoration: none;
        font-size: 16px;
        font-weight: bold;
        line-height: 20px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .ASA2 .ASA2-product--vertical .ASA2-product__title {
        height: 60px;
    }
    
    .ASA2 .ASA2-product--vertical .ASA2-product__meta {
        display: inline-block;
        display: block;
        margin-top: 5px;
    }
    
    a.ASA2-star-rating {
        border: none;
        box-shadow: none;
        outline: none;
        text-decoration: none;
    }
    
    .ASA2-star-rating--v2 {
        background-image: url('https://XXX.com/wp-content/uploads/v2.svg');
    }
    
    .ASA2-star-rating {
        position: relative;
        display: inline-block;
        background-image: url('https://XXX.com/wp-content/uploads/v1.svg');
        background-repeat: repeat-x;
        background-position: left center;
        vertical-align: middle;
        height: 16px;
        width: 80px;
        background-size: 16px 16px;
    }
    .ASA2-star-rating--v2>span {
        background-image: url('https://XXX.com/wp-content/uploads/v2-active.svg');
    }
    .ASA2-star-rating>span {
        height: 16px;
        width: 80px;
        background-size: 16px 16px;
    }
    
    .ASA2-star-rating>span {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        display: block;
        background-image: url('https://XXX.com/wp-content/uploads/v1-active.svg');
        background-repeat: repeat-x;
        background-position: left center;
        vertical-align: middle;
    }
    
    .ASA2 .ASA2-product--vertical .ASA2-product__reviews {
        display: inline-block;
        color: #666;
        font-size: 14px;
        line-height: 14px;
        vertical-align: -10%;
    }
    
    .ASA2 .ASA2-product--vertical .ASA2-product__meta .ASA2-check-prime {
        float: right;
        margin-top: 7px;
    }
    
    .ASA2 a.ASA2-check-prime:visited, a.ASA2-check-prime:visited, .ASA2 a.ASA2-check-premium:visited, a.ASA2-check-premium:visited, .ASA2 a.ASA2-check-prime:hover, a.ASA2-check-prime:hover, .ASA2 a.ASA2-check-premium:hover, a.ASA2-check-premium:hover, .ASA2 a.ASA2-check-prime:focus, a.ASA2-check-prime:focus, .ASA2 a.ASA2-check-premium:focus, a.ASA2-check-premium:focus, .ASA2 a.ASA2-check-prime:active, a.ASA2-check-prime:active, .ASA2 a.ASA2-check-premium:active, a.ASA2-check-premium:active {
        border: none;
        box-shadow: none;
        outline: none;
        text-decoration: none;
    }
    
    .ASA2 a.ASA2-check-prime, a.ASA2-check-prime, .ASA2 a.ASA2-check-premium, a.ASA2-check-premium {
        border: none;
        box-shadow: none;
        outline: none;
        text-decoration: none;
    }
    
    @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi){
      .ASA2 .ASA2-check-prime, .ASA2-check-prime {
          background-image: url('https://XXX.com/wp-content/uploads/[email protected]');
          background-size: 55px 16px;
      }
    }
    
    .ASA2 .ASA2-check-prime, .ASA2-check-prime {
        display: inline-block;
        width: 55px;
        height: 16px;
        background-image: url('https://XXX.com/wp-content/uploads/icon-check-prime.png');
        vertical-align: middle;
    }
    
    .ASA2 .ASA2-product--vertical .ASA2-product__footer {
        text-align: right;
    }
    
    .ASA2 .ASA2-product--vertical .ASA2-product__pricing {
        display: inline-block;
        margin-top: 10px;
        width: 100%;
    }
    
    .ASA2 .ASA2-product--vertical .ASA2-product__price--old {
        float: left;
        color: #666;
        font-size: 14px;
        text-decoration: line-through;
    }
    
    .ASA2 .ASA2-product--vertical .ASA2-product__price--current {
        float: right;
        font-size: 18px;
        font-weight: bold;
    }
    
    .ASA2 .ASA2-product--vertical .ASA2-product__price {
        line-height: 18px;
    }
    
    .ASA2 .ASA2-product--vertical .ASA2-product__footer .ASA2-button {
        display: block;
        margin: 0;
        width: 100%;
    }
    
    .ASA2 .ASA2-button.ASA2-button--icon, .ASA2-button.ASA2-button--icon {
        position: relative;
        padding-left: 32px;
    }
    
    .ASA2 .ASA2-button.ASA2-button--amazon, .ASA2-button.ASA2-button--amazon {
        border-color: #9c7e31 #90742d #786025 !important;
        border-radius: 3px;
        box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
        background: #f0c14b;
        background: linear-gradient(to bottom, #f7dfa5, #f0c14b) repeat scroll 0 0 rgba(0,0,0,0);
        color: #111 !important;
    }
    
    .ASA2 .ASA2-button.ASA2-button--icon-amazon-black:before, .ASA2-button.ASA2-button--icon-amazon-black:before {
        background-image: url('https://XXX.com/wp-content/uploads/icon-amazon-black.svg');
    }
    
    .ASA2 .ASA2-button.ASA2-button--icon:before, .ASA2-button.ASA2-button--icon:before {
        position: absolute;
        content: '';
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-repeat: no-repeat;
        background-size: 14px 14px;
        background-position: 9px center;
    }
    
    .ASA2 .ASA2-button, .ASA2-button {
        box-sizing: border-box;
        display: inline-block;
        margin: 0;
        padding: 7px 12px 6px 12px;
        border: 1px solid transparent !important;
        cursor: pointer;
        font-size: 14px;
        font-weight: 400;
        line-height: 19px;
        text-align: center;
        text-decoration: none !important;
        background-color: #fff;
        border-color: #ccc !important;
        color: #333 !important;
    }
    
    @media (min-width: 601px){
      .ASA2-grid--col-3 .ASA2-grid__item {
          width: 29.33%;
      }
    }
    
    @media (min-width: 601px){
      .ASA2-grid__item {
          display: flex;
          display: -webkit-flex;
      }
    }
    
    @media (min-width: 601px){
      .ASA2-grid__item>* {
          max-width: 100%;
      }
    }
    
    .ASA2-product {
        position: relative;
        margin: 0 0 30px;
        width: 100%;
    }
    
    .ASA2-no-prime{
    	height: 25px;
    	float: right;
    }
    
    .ASA2-disclaimer, .ASA2-credits{
    	font-size: 12px;
        margin-top: 20px;
    }
    
    .ASA2 .ASA2-product--horizontal.ASA2-product--ribbon {
        padding-top: 35px;
    }
    
    .ASA2 .ASA2-product--horizontal {
        zoom: 1;
        display: block;
        max-width: 100%;
        padding: 20px;
        background: #fff;
        border: 1px solid #ececec;
        font-size: 15px;
        line-height: 1.6;
        white-space: normal;
    }
    
    .ASA2 *, .ASA2 *:before, .ASA2 *:after {
        box-sizing: border-box;
    }
    
    .ASA2 .ASA2-product--horizontal .ASA2-product__thumb {
        float: left;
        width: 160px;
    }
    
    .ASA2 .ASA2-product--horizontal .ASA2-product__ribbon--sale {
        top: -1px;
        right: -1px;
    }
    .ASA2 .ASA2-product--horizontal .ASA2-product__ribbon {
        position: absolute;
        padding: 0 15px;
    }
    
    .ASA2-product__ribbon {
        padding: 0 20px;
        font-weight: 400;
        font-size: 12px;
        line-height: 20px;
        text-transform: uppercase;
    }
    
    .ASA2 .ASA2-product--horizontal .ASA2-product__content {
        margin-left: 160px;
        padding-left: 20px;
    }
    .ASA2 div *, .ASA2 span *, .ASA2 div *:before, .ASA2 span *:before, .ASA2 div *:after, .ASA2 span *:after {
        box-sizing: border-box;
    }
    
    .ASA2 .ASA2-product--horizontal .ASA2-product__title {
        display: block;
        margin: 0 0 15px 0;
        font-size: 18px;
        font-weight: bold;
    }
    
    .ASA2 .ASA2-product--horizontal .ASA2-product__description {
        display: block;
    }
    .ASA2 .ASA2-product--horizontal .ASA2-product__description {
        margin: 0;
    }
    
    .ASA2 .ASA2-product--horizontal .ASA2-product__footer {
        text-align: right;
        margin-left: 160px;
        padding-left: 20px;
    }
    .ASA2 .ASA2-product--horizontal .ASA2-product__pricing {
        display: block;
        margin-bottom: 5px;
    }
    
    .ASA2 .ASA2-product--horizontal .ASA2-product__price--old {
        font-size: 14px;
        text-decoration: line-through;
        color: #666;
    }
    .ASA2 .ASA2-product--horizontal .ASA2-product__price {
        display: inline-block;
        line-height: 34px;
        vertical-align: middle;
    }
    
    .ASA2 .ASA2-product--horizontal .ASA2-product__pricing span+span {
        margin-left: 15px;
    }
    .ASA2 .ASA2-product--horizontal .ASA2-product__price--current {
        font-size: 20px;
        font-weight: bold;
    }
    
    .ASA2 .ASA2-button.shadow, .ASA2-button.shadow {
        box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 0 40px rgba(0,0,0,0.1) inset;
    }
    .ASA2 .ASA2-button.rounded, .ASA2-button.rounded {
        border-radius: 3px;
    }
    .ASA2 .ASA2-button:visited, .ASA2-button:visited {
        color: #333 !important;
    }
    
    .ASA2 .ASA2-product--horizontal .ASA2-product__image {
        display: block;
        height: auto;
        margin: 0 auto 15px;
        max-height: 150px;
        max-width: 100%;
        width: auto;
        border: none;
        box-shadow: none;
    }
    
    .ASA2 .ASA2-product--horizontal:before, .ASA2 .ASA2-product--horizontal:after {
        content: " ";
        display: table;
    }
    
    @media (max-width: 768px) {
    	.ASA2 .ASA2-product--horizontal .ASA2-product__thumb {
    		float: none;
    		width: 100%;
    	}
    }
    
    .ASA2 .ASA2-product--horizontal .ASA2-product__rating {
        margin: 0 auto 10px;
        text-align: center;
    }
    
    .ASA2-star-rating--medium {
        height: 20px;
        width: 100px;
        background-size: 20px 20px;
    }
    
    .ASA2-star-rating {
        position: relative;
        display: inline-block;
        background-image: url('https://XXX.com/wp-content/uploads/v1.svg');
        background-repeat: repeat-x;
        background-position: left center;
        vertical-align: middle;
        height: 16px;
        width: 80px;
        background-size: 16px 16px;
    }
    
    .ASA2-star-rating--medium>span {
        height: 20px;
        width: 100px;
        background-size: 20px 20px;
    }
    
    .ASA2 .ASA2-product--horizontal .ASA2-product__reviews {
        margin-top: 5px;
        font-size: 12px;
        color: #666;
        text-align: center;
    }
    
    @media (max-width: 768px){
    	.ASA2 .ASA2-product--horizontal .ASA2-product__content {
    		margin: 0;
    		padding: 0;
    	}
    }
    
    @media (max-width: 480px){
    	.ASA2 .ASA2-product--horizontal .ASA2-product__title {
    		margin-bottom: 5px;
    		font-size: 16px;
    	}
    }
    
    .ASA2 .ASA2-product--horizontal .ASA2-product__description>ul {
        margin: 0 0 5px;
        padding: 0 0 0 20px;
        list-style-type: disc;
        list-style-position: outside !important;
    }
    
    .ASA2 .ASA2-product--horizontal .ASA2-product__description>ul li {
        margin: 0;
        padding: 0;
        background: none;
    }
    
    @media (max-width: 768px){
    	.ASA2 .ASA2-product--horizontal .ASA2-product__footer {
    		margin: 0;
    		padding: 0;
    	}
    }
    
    .ASA2 .ASA2-product--horizontal:after {
        clear: both;
    }

    Plantilla BOX:

    Copiamos la plantilla Horizontal_box (ASA2 Pro -> Templates). Yo le he llamado Custom_Horizontal_box (se modifica el nombre al editarla).

    HTML

    
    <div class="ASA2">
      <div class="ASA2-product ASA2-product--horizontal ASA2-product--ribbon ASA2-product--sale">
    {% if OfferPercentageSaved > 0 %}
          <span class="ASA2-product__ribbon ASA2-product__ribbon--sale">Rebajado</span>
    {% endif %}
          <div class="ASA2-product__thumb">
              <a class="ASA2-product__image-link" href="{{ title_link }}" title="{{ Title }}" rel="nofollow noopener" target="_blank">
                  <img class="ASA2-product__image" src="{% if LargeImageURL is empty %}{{ MissingImageUrl }}{% else %}{{ LargeImageURL }}{% endif %}" alt="{{ Title }}">
              </a>
    {% if CustomerReviewsExist %}
              <div class="ASA2-product__rating">
    				<a class="ASA2-star-rating ASA2-star-rating--medium ASA2-star-rating--v2" href="{{ CustomerReviewsURL }}" title="Opiniones en Amazon" rel="nofollow noopener" target="_blank">
    					<span style="width: {{ (CustomerReviewsAverageRating / 5) * 100 }}%;"></span></a>
    				<div class="ASA2-product__reviews">{{ CustomerReviewsTotal }} Opiniones</div>
    			</div>
    {% else %}
                  	<a href="https://www.amazon.es/product-reviews/{{ ASIN }}?tag={{ AssociateId }}" title="Opiniones en Amazon" rel="nofollow noopener" target="_blank">
    					Ver opiniones
    				</a>
    {% endif %}
          </div>
          <div class="ASA2-product__content">
              <a class="ASA2-product__title" href="{{ title_link }}" title="{{ Title }}" rel="nofollow noopener" target="_blank">
                  {{ Title }}
              </a>
              <div class="ASA2-product__description">
    {% if repo_content is not empty %}
                  {{ repo_content }}
    {% else %}
                  {% include "Features_block" %}
    {% endif %}
              </div>
          </div>
          <div class="ASA2-product__footer">
              <div class="ASA2-product__pricing">
      {% if ListPriceInteger > OffersAutoPriceInteger %}
                  <span class="ASA2-product__price ASA2-product__price--old">{{ ListPriceAmount }} {{ ListPriceCurrencyCode }}</span>
      {% endif %}
      {% if OffersLowestNewPriceAmount is not empty %}
                  <span class="ASA2-product__price ASA2-product__price--current">{{ OffersLowestNewPriceAmount }} {{ OffersLowestNewPriceCurrencyCode }}</span>
      {% else %}
                	<span class="ASA2-product__price ASA2-product__price--current">Producto temporalmente no disponible</span>
      {% endif %}
      {% if OfferIsPrime %} 
                  <a class="ASA2-check-prime" href="https://www.amazon.es/gp/prime/?tag={{ AssociateId }}" title="Amazon Prime" rel="nofollow noopener" target="_blank"></a>
       {% endif %}
              </div>
              <a class="ASA2-button ASA2-button--buy ASA2-button ASA2-button--amazon rounded shadow ASA2-button--icon ASA2-button--icon-amazon-black" href="{{ title_link }}" title="Ver más información" target="_blank" rel="nofollow noopener">
                  Ver más información
              </a>
          </div>
    	  {% if disclaimer == "asterisk_and_text" or show_price_disclaimer == "yes" %}
        	<div style="clear: both;>
            	<p class="ASA2-disclaimer">Última actualización el {{ LastItemUpdateBlogFormat }}</p>
        	</div>
          {% endif %}
      </div>
    </div>
    

    CSS

    Nada

    CONTAINER

    Nada

    Plantilla Bestseller de 3 columnas:

    Copiamos la plantilla Flat_box_vertical. Yo la llamé Custom_Flat_box_vertical.

    HTML (Hay que substituir XXX por el dominio y ubicación de la imagen)

    
    <div class="ASA2-grid__item">
    	<div class="ASA2-product ASA2-product--vertical ASA2-product--ribbon ASA2-product--sale ASA2-product--bestseller">
    		{% if OfferPercentageSaved > 0 %}<span class="ASA2-product__ribbon ASA2-product__ribbon--sale">Rebajado</span>{% endif %}
            <a class="ASA2-product__image--link ASA2-product__image" href="{{ title_link }}" title="{% if title_length is not empty and title_length != 0 and Title|length >= title_length %}{{ Title|slice(0, title_length) }}...{% else %}{{ Title }}{% endif %}" rel="nofollow noopener" target="_blank" style="background-image: url('{% if LargeImageURL is empty %}{{ MissingImageUrl }}{% else %}{{ LargeImageURL }}{% endif %}');">
    			<img class="ASA2-product__image-spacer" src="https://XXX.com/wp-content/uploads/thumb-spacer.png" alt="{% if title_length is not empty and title_length != 0 and Title|length >= title_length %}{{ Title|slice(0, title_length) }}...{% else %}{{ Title }}{% endif %}">
    		</a>
            <div class="ASA2-product__content">
    			<a class="ASA2-product__title" href="{{ title_link }}" title="{% if title_length is not empty and title_length != 0 and Title|length >= title_length %}{{ Title|slice(0, title_length) }}...{% else %}{{ Title }}{% endif %}" rel="nofollow noopener" target="_blank">
    				{% if title_length is not empty and title_length != 0 and Title|length >= title_length %}{{ Title|slice(0, title_length) }}...{% else %}{{ Title }}{% endif %}
    			</a>
    			<div class="ASA2-product__meta">
    {% if CustomerReviewsExist %}
    				<a class="ASA2-star-rating ASA2-star-rating--small ASA2-star-rating--v2" href="{{ CustomerReviewsURL }}" title="Opiniones en Amazon" rel="nofollow noopener" target="_blank">
    					<span style="width: {{ (CustomerReviewsAverageRating / 5) * 100 }}%;"></span>
    				</a>
                   	<span class="ASA2-product__reviews">({{ CustomerReviewsTotal }})</span>
    {% else %}
                  	<a href="https://www.amazon.es/product-reviews/{{ ASIN }}?tag={{ AssociateId }}" title="Opiniones en Amazon" rel="nofollow noopener" target="_blank">
    					Ver opiniones
    				</a>
    {% endif %}
    						
    {% if OfferIsPrime %}                      
    				<a class="ASA2-check-prime" href="https://www.amazon.es/gp/prime/?tag={{ AssociateId }}" title="Amazon Prime" rel="nofollow noopener" target="_blank"></a>
    {% else %}
    				<div class="ASA2-no-prime"></div>
    {% endif %}
    			</div>
    		</div>
            <div class="ASA2-product__footer">
    			<div class="ASA2-product__pricing">
    {% if ListPriceInteger > OffersAutoPriceInteger %}
                   	<span class="ASA2-product__price ASA2-product__price--old">{{ ListPriceAmount }} {{ ListPriceCurrencyCode }}</span>
    {% endif %}
    {% if OffersLowestNewPriceAmount is not empty %}
    				<span class="ASA2-product__price ASA2-product__price--current">{{ OffersLowestNewPriceAmount }} {{ OffersLowestNewPriceCurrencyCode }}</span>
    {% else %}
                	<span class="ASA2-product__price ASA2-product__price--current">Producto temporalmente no disponible</span>
    {% endif %}
    			</div>
    			<a class="ASA2-button ASA2-button--buy ASA2-button ASA2-button--amazon rounded shadow ASA2-button--icon ASA2-button--icon-amazon-black" href="{{ BuyButtonTargetURL }}" title="Ver más información" target="_blank" rel="nofollow noopener">
    				Ver más información
    			</a>
    		</div>
    	</div>
    </div>
    

    CSS

    Nada

    Contenedor

    
    <div class="ASA2">
    	<div class="ASA2-grid ASA2-grid--col-3">
      		{{ item_list }}
      	</div>
    </div>
    {% if disclaimer == "asterisk_and_text" or show_price_disclaimer == "yes" %}
    <p class="ASA2-disclaimer">Última actualización el {{ LastItemUpdate|date("d/m/Y H:i") }}</p>
    {% endif %}
    

    Usadlo con moderación.

    #10281 Karma: 0
    David Cuesta
    Superadministrador
    172

    WOW @Marc menuda pasada de post, muchas muchas gracias por el aporte

    #10282 Karma: 0
    Usuario-Chorri
    Participante
    173

    Gracias por el aporte
    Vaya curro
    No se si sabre hacer esto pero lo probare gracias

    #10283 Karma: 0
    Xares
    Participante
    2

    Muchas gracias Mac, yo no se css pero lo intentaré

    #11876 Karma: 0
    Xares
    Participante
    2

    Buenas. ¿Los que usáis asa2 y tenéis activadas las notificaciones os funcionan? He intentado ponerlo que me avise cuando no quedé stock, pero ni caso.

    #11969 Karma: 1
    Marc
    Participante
    3

    Hola Xares,

    Sí que funciona. Yo lo tengo programado para que me mande un e-mail cada día. Pueden ser varias causas por las que no te funciona. Te explico un poco la configuración que tengo para que revises.

    Frecuencia (Recurrence) -> cada día (pon la que quieras)
    Active -> Marcado
    Eager Mode -> yo lo tengo desactivado pero hasta que te funcione actívalo. Esto te envía un correo aunque no haya casos. Así ves si funciona el envío. Cuando te funcione, si quieres, lo puedes desactivar.
    To -> correo de destino de los emails (el tuyo)
    El resto entre medio las opciones por defecto.
    Availabilities -> Has no main offer (aquí tuve que hacer pruebas y este es el que me pareció más correcto para cuando no hay productos).

    Dale al botón update para guardar los cambios.

    Ahora en «Notifications» tienes la opción de execute de esa notificación que has revisado para que procese el repositorio y mande correo de notificación de forma manual. Prueba que te llega el correo. Si te llega ya solo falta esperar a que se mande cada día de forma automática. Si el manual no te llega, mira el spam y esas cosas. Debería llegar aunque todos los productos estén disponibles (hemos marcado la opción EAGER).

    Si no te llega de forma automática tienes un problema con el cron, de configuración. Ya, si se da el caso, me dices. Pero creo que no será necesario. Hace tiempo que lo configuré. Si sigue sin funcionarte, lo miro en más detalle.

    Un saludo,

    Marc.

Viendo 15 entradas - de la 16 a la 30 (de un total de 41)
  • Debes estar registrado para responder a este debate.