Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: box_whatsnew.html

    srec

    • Gast
    box_whatsnew.html
    am: 12. Januar 2015, 00:10:36
    Hallo liebes Forum

    Ich möchte zuerst das tolle Forum sowie die Hilfestellungen loben - echt super. Ich bin was modified eCommerce Shopsoftware anbelangt absoluter Neuling...auch meine html-Kenntnisse bin ich stetig am aufbauen. Gerade bin ich an einem Shop dran und habe (wohl für die Profis von Euch) eine einfache frage..:):

    Ich versuche seit Stunden die box_whatsnew.html so zu konfigurieren, dass auf der Startseite 3 oder mehr verschiedene neue Artikel angezeigt werden - so nach dem Zufallsprinzip....leider habe ich es nur soweit geschafft dass ich zwar 3 Artikel sehe, aber das sind immer die gleichen..:(

    1. reicht es den Code nur unter box_whatsnew zu anzupassen?
    2. muss ich bei den Artikeln noch was angeben - z.B. Reihenfolge?

    Mein Code:

    Code: PHP  [Auswählen]
    {config_load file="$language/lang_$language.conf" section="boxes"}
    <h2 class="boxheader"><a href="{$LINK_NEW_PRODUCTS}">{#heading_whatsnew#}</a></h2>
    <div class="boxbody">
            {if $box_content.PRODUCTS_IMAGE!=''}<p class="center"><a href="{$box_content.PRODUCTS_LINK}"><img src="{$box_content.PRODUCTS_IMAGE}" alt="{$box_content.PRODUCTS_NAME}" class="productboximage"/></a></p>{/if}
            <p class="center"><a href="{$box_content.PRODUCTS_LINK}"><strong>{$box_content.PRODUCTS_NAME}</strong></a><br />{$box_content.PRODUCTS_PRICE}
            {if $box_content.PRODUCTS_VPE}<br />{$box_content.PRODUCTS_VPE}{/if}
            <br />{$box_content.PRODUCTS_TAX_INFO}{$box_content.PRODUCTS_SHIPPING_LINK}</p>

    {if $box_content.PRODUCTS_IMAGE!=''}<p class="center"><a href="{$box_content.PRODUCTS_LINK}"><img src="{$box_content.PRODUCTS_IMAGE}" alt="{$box_content.PRODUCTS_NAME}" class="productboximage"/></a></p>{/if}
            <p class="center"><a href="{$box_content.PRODUCTS_LINK}"><strong>{$box_content.PRODUCTS_NAME}</strong></a><br />{$box_content.PRODUCTS_PRICE}
            {if $box_content.PRODUCTS_VPE}<br />{$box_content.PRODUCTS_VPE}{/if}
            <br />{$box_content.PRODUCTS_TAX_INFO}{$box_content.PRODUCTS_SHIPPING_LINK}</p>

    {if $box_content.PRODUCTS_IMAGE!=''}<p class="center"><a href="{$box_content.PRODUCTS_LINK}"><img src="{$box_content.PRODUCTS_IMAGE}" alt="{$box_content.PRODUCTS_NAME}" class="productboximage"/></a></p>{/if}
            <p class="center"><a href="{$box_content.PRODUCTS_LINK}"><strong>{$box_content.PRODUCTS_NAME}</strong></a><br />{$box_content.PRODUCTS_PRICE}
            {if $box_content.PRODUCTS_VPE}<br />{$box_content.PRODUCTS_VPE}{/if}
            <br />{$box_content.PRODUCTS_TAX_INFO}{$box_content.PRODUCTS_SHIPPING_LINK}</p>
    </div>

    Ich möchte mich bereits jetzt herzlich bedanken für Eure Hilfe.

    lg Simon

    Linkback: https://www.modified-shop.org/forum/index.php?topic=31940.0

    otacon

    • Neu im Forum
    • Beiträge: 18
    Re: box_whatsnew.html
    Antwort #1 am: 12. Januar 2015, 09:16:54
    Du hast lediglich den Codeblock kopiert und noch zweimal angefügt, ganz klar das du dann 3 mal das gleiche Ergebnis bekommst.
    Die HTML ist für den optischen Output verantwortlich,
    wenn du das Ergebnis ändern möchtest muss die "templates/xtc5/source/boxes/whats_new.php" anpassen.

    MfG
    otacon
    5 Antworten
    3026 Aufrufe
    04. August 2012, 20:15:10 von WayneTsun
    9 Antworten
    4210 Aufrufe
    01. Juni 2014, 17:40:23 von Stiwano
    1 Antworten
    4762 Aufrufe
    13. Oktober 2008, 19:12:28 von karlheinz
    16 Antworten
    7937 Aufrufe
    21. September 2016, 16:55:31 von noRiddle (revilonetz)