Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Modificar el Home Page
 
triskell
Jr. Member
 
Total Posts:  23
Joined:  2009-07-19
 

Hola resulta que en mi home page tengo un banner superior , 6 productos en dos filas colocados como productos destacados o nuevos y tres banners en línea al final del home.

Mi idea es cambiar los 6 productos (los cuales hay que modificarlos a mano) por un listado de los 6 productos más vistos, mi idea es que lo coja de la base de datos para mostar los 6 más vistos según se actualizan las visitas a los productos.

Por si os es de utilidad os dejo el código de los 6 productos tal y como lo tengo ahora:

<div class="content-block-3 page-new-products">
<
div class="page-title">
  <
div class="border-left">
    <
div class="border-right">
      <
div class="corner-left-top">
        <
div class="corner-right-top">
          <
div class="border-bot">            
            <
h2>Productos Destacados</h2>            
          </
div>
        </
div>
      </
div>
    </
div>
  </
div>
</
div>
<
div class="block-content">
  <
div class="border-bot">
    <
div class="border-left">
      <
div class="border-right">
        <
div class="left-bot">
          <
div class="right-bot">
            <
table class="products-grid" id="products-grid-table">
              <
tr>
                 <
td><h3 class="product-name"><a href="{{store url='hp-laserjet-9040dn-de-64mb-40ppm-a4-usb.html'}}" title="HP LaserJet 9040DN/DE">HP LaserJet 9040DN/DE<br />   64MB 40ppm A4 USB</a></h3>
                      <
div class="a-center"
                            <
class="product-image" href="{{store url='hp-laserjet-9040dn-de-64mb-40ppm-a4-usb.html'}}" title="HP LaserJet 9040DN/DE"><span class="img-top"><span><span>&nbsp;</span></span></span><span class="img-content"><span class="img-content"><img src="http://192.168.1.169/magento/media/catalog/product/cache/2/image/5e06319eda06f020e43594a9c230972d/1/3/1335612-hp.jpg" width="187" height="131" alt="HP LaserJet 9040DN/DE" title="HP LaserJet 9040DN/DE" /></span></span><span class="img-bot"><span><span>&nbsp;</span></span></span></a>
                          <
div class="price-box"> <span class="regular-price" id="product-price-34"><span class="price">500,00 &euro;</span></span> </div>
                          <
a href="{{store url='hp-laserjet-9040dn-de-64mb-40ppm-a4-usb.html'}}"><button class="button"><span><span><span>Comprar</span></span></span></button></a>                      
                      </
div></td>                
                 <
td><h3 class="product-name"><a href="{{store url='home-appliances/kitchen-appliances/microwaves-whirlpool-amw-460.html'}}" title="microwaves Whirlpool AMW 460">microwaves<br /> Whirlpool AMW 460</a></h3>
                  <
div class="a-center"> <class="product-image" href="{{store url='home-appliances/kitchen-appliances/microwaves-whirlpool-amw-460.html'}}" title="microwaves Whirlpool AMW 460"><span class="img-top"><span><span>&nbsp;</span></span></span><span class="img-content"><span class="img-content"><img src="{{skin url='images/media/image02.jpg'}}" width="187" height="131" alt="microwaves Whirlpool AMW 460" title="microwaves Whirlpool AMW 460" /></span></span><span class="img-bot"><span><span>&nbsp;</span></span></span></a>
                    <
div class="price-box"><span class="regular-price" id="product-price-35"><span class="price">$159.99</span></span></div>
                    <
a href="{{store url='home-appliances/kitchen-appliances/microwaves-whirlpool-amw-460.html'}}"><button class="button"><span><span><span>Add to cart</span></span></span></button></a>                    
                  </
div></td>
                <
td class="last"><h3 class="product-name"><a href="{{store url='mobile-phones/motorola-motorizr-z10.html'}}" title="Motorola MOTORIZR Z10">Motorola MOTORIZR Z10</a></h3>
                  <
div class="a-center"><class="product-image" href="{{store url='mobile-phones/motorola-motorizr-z10.html'}}" title="Motorola MOTORIZR Z10"><span class="img-top"><span><span>&nbsp;</span></span></span><span class="img-content"><span class="img-content"><img src="{{skin url='images/media/image03.jpg'}}" width="187" height="131" alt="Motorola MOTORIZR Z10" title="Motorola MOTORIZR Z10" /></span></span><span class="img-bot"><span><span>&nbsp;</span></span></span></a>
                    <
div class="price-box"><span class="regular-price" id="product-price-36"><span class="price">$99.99</span></span></div>
                    <
a href="{{store url='mobile-phones/motorola-motorizr-z10.html'}}"><button class="button"><span><span><span>Add to cart</span></span></span></button></a>                    
                  </
div></td>
              </
tr>
              <
tr>
                  <
td colspan="3" class="grid-divider"><div>&nbsp;</div></td>
              </
tr>
              <
tr class="last">
                  <
td><h3 class="product-name"><a href="{{store url='home-appliances/vacuums-floor-care/electrolux-zb-412c.html'}}" title="Electrolux ZB 412C">Electrolux ZB 412C</a></h3>
                      <
div class="a-center"><class="product-image" href="{{store url='home-appliances/vacuums-floor-care/electrolux-zb-412c.html'}}" title="Electrolux ZB 412C"><span class="img-top"><span><span>&nbsp;</span></span></span><span class="img-content"><span class="img-content"><img src="{{skin url='images/media/image04.jpg'}}" width="187" height="131" alt="Electrolux ZB 412C" title="Electrolux ZB 412C" /></span></span><span class="img-bot"><span><span>&nbsp;</span></span></span></a>
                        <
div class="price-box"><span class="regular-price" id="product-price-37"><span class="price">$49.99</span></span></div>
                        <
a href="{{store url='home-appliances/vacuums-floor-care/electrolux-zb-412c.html'}}"><button class="button"><span><span><span>Add to cart</span></span></span></button> </a>                       
                      </
div></td>
                <
td><h3 class="product-name"><a href="{{store url='audio-video/yamaha-pianocraft-mcr-e-320.html'}}" title="Yamaha  PianoCraft MCR-E 320">Yamaha<br />  PianoCraft MCR-E 320</a></h3>
                      <
div class="a-center"> <class="product-image" href="{{store url='audio-video/yamaha-pianocraft-mcr-e-320.html'}}" title="Yamaha  PianoCraft MCR-E 320"><span class="img-top"><span><span>&nbsp;</span></span></span><span class="img-content"><span class="img-content"><img src="{{skin url='images/media/image05.jpg'}}" width="187" height="131" alt="Yamaha  PianoCraft MCR-E 320" title="Yamaha  PianoCraft MCR-E 320" /></span></span><span class="img-bot"><span><span>&nbsp;</span></span></span></a>
                        <
div class="price-box"><span class="regular-price" id="product-price-38"><span class="price">$270.99</span></span></div>
                        <
a href="{{store url='audio-video/yamaha-pianocraft-mcr-e-320.html'}}"><button class="button"><span><span><span>Add to cart</span></span></span></button></a>                        
                      </
div></td
                <
td class="last"><h3 class="product-name"><a href="{{store url='cameras-camcorders/panasonic-nv-gs85ee-s.html'}}" title="Panasonic NV-GS85EE-S">Panasonic NV-GS85EE-S</a></h3>
                      <
div class="a-center"> <class="product-image" href="{{store url='cameras-camcorders/panasonic-nv-gs85ee-s.html'}}" title="Panasonic NV-GS85EE-S"> <span class="img-top"><span><span>&nbsp;</span></span></span><span class="img-content"><span class="img-content"><img src="{{skin url='images/media/image06.jpg'}}" width="187" height="131" alt="Panasonic NV-GS85EE-S" title="Panasonic NV-GS85EE-S" /></span></span><span class="img-bot"><span><span>&nbsp;</span></span></span></a>
                        <
div class="price-box"><span class="regular-price" id="product-price-39"><span class="price">$230.99</span></span></div>
                        <
a href="{{store url='cameras-camcorders/panasonic-nv-gs85ee-s.html'}}"><button class="button"><span><span><span>Add to Cart</span></span></span></button></a>                        
                      </
div></td>
              </
tr>
            </
table
          </
div>
        </
div>
      </
div>
    </
div>
  </
div>
</
div>
</
div>
<
div class="page-banners">
    <
a href="{{store url='contacts/'}}"><img src="{{skin url='images/media/banner_2.jpg'}}" border="0" class="img-indent" /></a>
    <
a href="{{store url='contacts/'}}"><img src="{{skin url='images/media/banner_3.jpg'}}" border="0" class="img-indent"/></a>
    <
a href="{{store url='contacts/'}}"><img src="{{skin url='images/media/banner_4.jpg'}}" border="0" /></a>
</
div>
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top