Jump to content

Twilli

Members
  • Posts

    39
  • Joined

  • Last visited

Profile Information

  • First Name
    Tom
  • Last Name
    Willi

Recent Profile Visitors

315 profile views

Twilli's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hallo, wir möchten nur bei einem Lagerbestand von kleiner 10 Stück die Anzahl/Bestand/quantity des jeweiligen Artikels anzeigen lassen. Ich habe in der product.tpl (ca. Zeile 394) folgendes geändert: {if ($display_qties == 1 && !$PS_CATALOG_MODE && $PS_STOCK_MANAGEMENT && $product->available_for_order)} <!-- number of item in stock --> <p id="pQuantityAvailable"{if $product->quantity > 10} style="display: none;"{/if}> <span id="quantityAvailable">{$product->quantity|intval}</span> <span {if $product->quantity > 1} style="display: none;"{/if} id="quantityAvailableTxt">{l s='Item'} noch verfügbar!</span> <span {if $product->quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='Items'} noch verfügbar!</span> </p> {/if} Also alles mit einem Bestand/quantity von mehr als 10 soll der Bestand/quantity nicht angezeigt werden. Die Änderung funktioniert leider nur bei Artikel die keine Varianten haben. Hier wird durch die Änderung keine quantity mehr angezeigt. Bei Artikel mit Varianten wird allerdings noch die quantity angezeigt. Hat jemand einen Hinweis/Idee/Lösung Vielen Dank und Grüße Twilli
  2. Hallo und vielen Dank. Wenn ich die Facettennavigation deaktiviere habe ich auch keine Facettennaviagtion (Filter) mehr. Diese soll bestehen bleiben . . Aber ich habe eine Lösung gefunden: Die akteullen blocklayered.tpl Dateien verwenden. Die alte blocklayered.js wie folgt ändern: ca. in/ab Zeile 45 u. 125 Diesen code: $(document).on('click', '#layered_form .select, #layered_form input[type=checkbox], #layered_form input[type=radio]', function(e) { reloadContent(true); }); mit folgendem ersetzen: $(document).on('change', '#layered_form .select', function(e) { reloadContent(); }); $(document).on('change', '#layered_form input[type=checkbox]', function(e) { reloadContent(true); }); Und bei mir ist das Problem behoben. Ich muss nun nur noch ein paar optische Anpassungen durchführen. Vielen Dank an alle Beteiligten!!!! Gelöst! (wie setzt man den Beiträg auf gelöst?) Grüße
  3. Ok - vielen Dank ! Leider gabs eine Fehlinfo. Im Theme-Ordner/Module selbst ist das Modul auch noch mal enthalten und hier sind wirklick die alten .js drin alte Dateien: 2007-2015 PrestaShop neue Dateien: 2007-2016 PrestaShop Ich habe zum Test die aktuellere .js hochgeladen. Damit ist dann der Fehler leider nicht behoben, und/aber die komplette Facettennavigation funktioniert dann nicht mehr und die Navigation im Head wird nicht mehr korrekt dargestellt. Grüße
  4. Vielen Dank für eure Hilfe Version: Block Facettennavigation v2.2.1 - von PrestaShop PHP-Version 7.0.33 Ich habe bereits deaktiviert, aktiviert, cache gelöscht.... Datein von facettenmodul ersetzt . . . alles was man so machen kann ohne direkt im code zu "wursteln". Grüße
  5. Cache geleert, neue indexiert . . . Das Problem gibt es hier: https://www.aliens-outdoor.com/102-kletterseile Bei Filter "Hersteller" Vielen Dank & Grüße
  6. Vielen Dank Das Java wäre > siehe Anhang Aber ich sehe den Fehler nicht. Grüße blocklayered.js
  7. PrestaVersion1.6.1.10 Hallo, ich habe in der Facettennavigation die Darstellung "Drop-Down-Liste" gewählt. Diese wird auch korrekt angezeigt, hat aber leider das Problem, sobald ich auf den "Pfeil" der DropDwonliste klicke öffnet sich kurz die mögliche Auswahlliste und dann wird sofort wieder die aktuelle Seite neu geladen mit "keine Filter". D.h. ich kann die Auswahl nicht öffnen und nutzen, da bei klick auf den Pfeil sofort die Seite mit "keine Filter" neu geladen wird. Hat jemand einen Lösungsansatz?? Danke & Grüße Es handelt sich um die blocklayered.tpl mit dem Abschnitt: <select class="select form-control" {if $filter.filter_show_limit > 1}multiple="multiple" size="{$filter.filter_show_limit}"{/if}> <option value="">{l s='No filters' mod='blocklayered'}</option> {foreach from=$filter.values key=id_value item=value} {if $value.nbr || !$hide_0_values} <option style="color: {if isset($value.color)}{$value.color}{/if}" id="layered_{$filter.type_lite}{if $id_value || $filter.type == 'quantity'}_{$id_value}{/if}" value="{$id_value}_{$filter.id_key}" {if isset($value.checked) && $value.checked}selected="selected"{/if} {if !$value.nbr}disabled="disabled"{/if}> {$value.name|escape:'html':'UTF-8'}{if $layered_show_qties}<span> ({$value.nbr})</span>{/if} </option> {/if} {/foreach} </select>
  8. Gelöst !! classes/controller/FrontController.php $this->context->smarty->assign(array( 'id_currency_cookie' => (int)$currency->id, 'logged' => $this->context->customer->isLogged(), 'customerNumber' => ($this->context->customer->logged ? $this->context->customer->id : false) )); Das ganze dann in/als override Und in der gewünschten .tpl über {$customerNumber} aufrufen Grüße
  9. Prestashop 1.6.1.10 Hallo, ich würde gerne die jeweilige customer id aus der Datenbank ps_customer > id_customer des Kunden in dessen Kundenbereich (identitiy.tpl oder adresses.tpl) anzeigen lassen. Geht das ? Vielen Dank!!!!
  10. We have 1.6 I try this manual: https://presta.site/blog/en/how-to-create-a-new-page-using-module-front-controller/ I create: root/modules/mymodule/controllers/front/test.php code: <?php class MyModuleTestModuleFrontController extends ModuleFrontController { } But there is a 404 error when I try to open the page .... /index.php?fc=module&module=mymodule&controller=test cache/class_index.php was deleted Seo & url >> modul-path: module/{module}{/:controller}
  11. Hello, how can i create a custom / single php page containing the new products like "blocknewproducts". Single page without header, navigation, footer . . . . just the "blocknewproducts". Thanks for help
  12. Twilli

    Rss feed

    Hello, I want to display the associated product image from rss.php: Code: <?php foreach ($products AS $product) { $image = Image::getImages((int)($cookie->id_lang), $product['id_product']); echo "\t\t<item>\n"; echo "\t\t\t<title><![CDATA[".$product['name']." ]]></title>\n"; echo "\t\t\t<description>"; $cdata = true; if (is_array($image) AND sizeof($image)) { $imageObj = new Image($image[0]['id_image']); echo "<![CDATA[<img src='".$link->getImageLink($product['link_rewrite'], $image[0]['id_image'], 'medium_default')."' title='".str_replace('&', '', $product['name'])."' alt='thumb' />"; $cdata = false; } if ($cdata) echo "<![CDATA["; echo $product['description_short']."]]>-</description>\n"; echo "\t\t\t<link><![CDATA[".str_replace('&amp;', '&', htmlspecialchars($link->getproductLink($product['id_product'], $product['link_rewrite'], Category::getLinkRewrite((int)($product['id_category_default']), $cookie->id_lang)))).$affiliate."]]></link>\n"; echo "\t\t</item>\n"; } ?> This is realized via an xsl. The title and link will work, but the above code for the product image or the complete description will not work. Related xsl: <xsl:for-each select="rss/channel/item"> <li class="episodes-list__item"> <h3 class="no-margin"> <a> <xsl:attribute name="href"> <xsl:value-of select="link"/> </xsl:attribute> <xsl:value-of select="title"/> </a> </h3> <p> <xsl:value-of select="description"/> </p> <p> <a> <xsl:attribute name="href"> <xsl:value-of select="link"/> </xsl:attribute> weiter zur Produktansicht >> </a> </p> </li> <hr /> </xsl:for-each> Does anyone have an idea / solution ?? Thank you!!
  13. Hallo, evtl. kann ich weiterhelfen. Hierfür bräuchte ich allerdings einen Link zur website.
  14. Hallo, ich möchte aus der rss.php das zugehörige Produktbild anzeigen lassen: Code: <?php foreach ($products AS $product) { $image = Image::getImages((int)($cookie->id_lang), $product['id_product']); echo "\t\t<item>\n"; echo "\t\t\t<title><![CDATA[".$product['name']." ]]></title>\n"; echo "\t\t\t<description>"; $cdata = true; if (is_array($image) AND sizeof($image)) { $imageObj = new Image($image[0]['id_image']); echo "<![CDATA[<img src='".$link->getImageLink($product['link_rewrite'], $image[0]['id_image'], 'medium_default')."' title='".str_replace('&', '', $product['name'])."' alt='thumb' />"; $cdata = false; } if ($cdata) echo "<![CDATA["; echo $product['description_short']."]]>-</description>\n"; echo "\t\t\t<link><![CDATA[".str_replace('&amp;', '&', htmlspecialchars($link->getproductLink($product['id_product'], $product['link_rewrite'], Category::getLinkRewrite((int)($product['id_category_default']), $cookie->id_lang)))).$affiliate."]]></link>\n"; echo "\t\t</item>\n"; } ?> Dies wird über eine xsl realisiert. Der Titel und de Link funtkionieren, aber der obige Code für das Produktbild bzw. die komplette description funktioniert nicht. Zugehörige xsl: <xsl:for-each select="rss/channel/item"> <li class="episodes-list__item"> <h3 class="no-margin"> <a> <xsl:attribute name="href"> <xsl:value-of select="link"/> </xsl:attribute> <xsl:value-of select="title"/> </a> </h3> <p> <xsl:value-of select="description"/> </p> <p> <a> <xsl:attribute name="href"> <xsl:value-of select="link"/> </xsl:attribute> weiter zur Produktansicht >> </a> </p> </li> <hr /> </xsl:for-each> Hat jemand eine Idee/Lösungsansatz?? Danke!!
×
×
  • Create New...