Jump to content

philipp_e

Members
  • Posts

    10
  • Joined

  • Last visited

1 Follower

Profile Information

  • Activity
    Agency

philipp_e's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Noone can help? Thanks for any hints ...
  2. Hallo an alle, ich bin leider etwas hilflos. Ich habe das Standard-Template stark modifiziert. Alles passt nun soweit. Sobald ich allerding den Smart Cache für CSS aktiviere, bricht die mobile Ansicht zusammen. Der Warenkorb wird immer angezeigt mit 1 Artikel und der Summe 0,00 Euro und das CSS wird einfach nicht richtig umgesetzt. Das alles nur in der mobilen Ansicht. Ich habe schon alle CSS-Files beim W3C-Validator überprüfen lassen, aber die stimmen alle von der Syntax. Ich habe auch schon einiges ausprobiert: Memcache, APC, sämtliche Leistungseinstellungen usw. ... Irgendwo muss der Fehler sein. Zwei Screenshot machen die Sache etwas deutlicher: Die "normale", nicht responsive-Seite ist völlig ok unabhängig vom Cache. Kann jemand bitte helfen? Vielen Dank. Die URL lautet www.kunstbuch-eckel.de/shop/ Viele Grüße, Philipp EDIT: erledigt! Ich habe den Fehler dank www.csslint.net in global.css gefunden.
  3. Compare product.tpl and product-list.tpl in your theme. Both should contain the hook: {hook h="displayProductPriceBlock" product=$product type="price"}
  4. Hello everyone, I got a problem with Smart Cache for CSS and the Blockcart dodule using AJAX. If I disable Smart Cache for CSS, everything is fine, but slow. If I enable it und resize the browser window to a smaller one or use the smartphone, the Blockcart module looks weird us and the navbar too. jQuery problem? I duplicated the default theme from 1.6.0.8 and modified it. If I change over to the default theme, same problem. Url is www.kunstbuch-eckel.de/shop Please see the screenshots! Thanks!
  5. Hello, I´ve added some custom fields into Prestashop. As we will sell books, I´ve added "author", "publisher" etc. which works fine importing CSV-Files. Displaying them in product-list.tpl, product.tpl etc. is not a problem. But how can I make the search bar querying those custom fields? Thanks in advance for any help! I´m running Prestashop 1.6.0.8
  6. Peter, thanks for the quick reply. But I already tried this. This results in PS displaying "undefined". See screenshot: Strange thing is: if I just CUT and PASTE from right block to left block, title and description is shown twice, on left and right block. As So I think it has to to with the definitions and the math equation in the beginning .. I just don´t understand how product-list.tpl is structured with columns, blocks and - as Firebug for Firefox says - rows ...
  7. Hello everyone, I use PS 1.6.0.8 and the default theme which I already modified. As I don´t use product images at all, i want the left column/block in product-list.tpl to disappear and the center column/block or its conten move to the left. Please see the picture: This is my already modified product-list.tpl: {* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if isset($products) && $products} {*define numbers of product per line in other page for desktop*} {if $page_name !='index' && $page_name !='product'} {assign var='nbItemsPerLine' value=3} {assign var='nbItemsPerLineTablet' value=2} {assign var='nbItemsPerLineMobile' value=3} {else} {assign var='nbItemsPerLine' value=2} {assign var='nbItemsPerLineTablet' value=3} {assign var='nbItemsPerLineMobile' value=2} {/if} {*define numbers of product per line in other page for tablet*} {assign var='nbLi' value=$products|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet} <!-- Products list --> <ul{if isset($id) && $id} id="{$id}"{/if} class="product_list list row{if isset($class) && $class} {$class}{/if}"> {foreach from=$products item=product name=products} {math equation="(total%perLine)" total=$smarty.foreach.products.total perLine=$nbItemsPerLine assign=totModulo} {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet} {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineMobile assign=totModuloMobile} {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if} {if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if} {if $totModuloMobile == 0}{assign var='totModuloMobile' value=$nbItemsPerLineMobile}{/if} <li class="ajax_block_product{if $page_name == 'index' || $page_name == 'product'} col-xs-12 col-sm-4 col-md-3{else} col-xs-12 col-sm-6 col-md-4{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLine == 0} last-in-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLine == 1} first-in-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModulo)} last-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 0} last-item-of-tablet-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 1} first-item-of-tablet-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 0} last-item-of-mobile-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 1} first-item-of-mobile-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModuloMobile)} last-mobile-line{/if}"> <div class="product-container" itemscope itemtype="http://schema.org/Product"> <div class="left-block"> <!-- <h5 itemprop="name"> {if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if} <a class="product-name" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.title|escape:'html':'UTF-8'}" itemprop="url" > {$product.title|truncate:100:'...'|escape:'html':'UTF-8'} </a> </h5> <div class="product-desc" itemprop="description"> {$product.author} {$product.city} {$product.publisher} {$product.year} </div> --> </div> <div class="right-block"> <h5 itemprop="name"> <!-- {if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if} --> <a class="product-name" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url" > {$product.title|truncate:100:'...'|escape:'html':'UTF-8'} </a> </h5> <div class="product-desc" itemprop="description"> {$product.author} {$product.city} {$product.publisher} {$product.year} </div> {hook h='displayProductListReviews' product=$product} {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="content_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} <span itemprop="price" class="price product-price"> {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} </span> <meta itemprop="priceCurrency" content="{$currency->iso_code}" /> <!-- {if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0} {hook h="displayProductPriceBlock" product=$product type="old_price"} <span class="old-price product-price"> {displayWtPrice p=$product.price_without_reduction} </span> {hook h="displayProductPriceBlock" id_product=$product.id_product type="old_price"} {if $product.specific_prices.reduction_type == 'percentage'} <span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span> {/if} {/if} --> {hook h="displayProductPriceBlock" product=$product type="price"} {hook h="displayProductPriceBlock" product=$product type="unit_price"} {/if} </div> {/if} <div class="button-container"> <!-- {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE} {if ($product.allow_oosp || $product.quantity > 0)} {if isset($static_token)} <a class="button ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart'}" data-id-product="{$product.id_product|intval}"> <span>{l s='Add to cart'}</span> </a> {else} <a class="button ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart',false, NULL, 'add=1&id_product={$product.id_product|intval}', false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart'}" data-id-product="{$product.id_product|intval}"> <span>{l s='Add to cart'}</span> </a> {/if} {else} <span class="button ajax_add_to_cart_button btn btn-default disabled"> <span>{l s='Add to cart'}</span> </span> {/if} {/if} --> <!-- <a itemprop="url" class="button lnk_view btn btn-default" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View'}"> <span>{l s='More'}</span> </a> --> </div> {if isset($product.color_list)} <div class="color-list-container">{$product.color_list}</div> {/if} <div class="product-flags"> {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} {if isset($product.online_only) && $product.online_only} <span class="online_only">{l s='Online only'}</span> {/if} {/if} {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} <span class="discount">{l s='Reduced price!'}</span> {/if} </div> <!-- {if (!$PS_CATALOG_MODE && $PS_STOCK_MANAGEMENT && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)} <span itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="availability"> {if ($product.allow_oosp || $product.quantity > 0)} <span class="{if $product.quantity <= 0 && !$product.allow_oosp}out-of-stock{else}available-now{/if}"> <link itemprop="availability" href="http://schema.org/InStock" />{if $product.quantity <= 0}{if $product.allow_oosp}{if isset($product.available_later) && $product.available_later}{$product.available_later}{else}{l s='In Stock'}{/if}{else}{l s='Out of stock'}{/if}{else}{if isset($product.available_now) && $product.available_now}{$product.available_now}{else}{l s='In Stock'}{/if}{/if} </span> {elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)} <span class="available-dif"> <link itemprop="availability" href="http://schema.org/LimitedAvailability" />{l s='Product available with different options'} </span> {else} <span class="out-of-stock"> <link itemprop="availability" href="http://schema.org/OutOfStock" />{l s='Out of stock'} </span> {/if} </span> {/if} {/if} --> </div> {if $page_name != 'index'} <div class="functional-buttons clearfix"> {hook h='displayProductListFunctionalButtons' product=$product} {if isset($comparator_max_item) && $comparator_max_item} <div class="compare"> <a class="add_to_compare" href="{$product.link|escape:'html':'UTF-8'}" data-id-product="{$product.id_product}">{l s='Add to Compare'}</a> </div> {/if} </div> {/if} </div><!-- .product-container> --> </li> {/foreach} </ul> {addJsDefL name=min_item}{l s='Please select at least one product' js=1}{/addJsDefL} {addJsDefL name=max_item}{l s='You cannot add more than %d product(s) to the product comparison' sprintf=$comparator_max_item js=1}{/addJsDefL} {addJsDef comparator_max_item=$comparator_max_item} {addJsDef comparedProductsIds=$compared_products} {/if} I already commented out some lines. So how to move the center to the left? I suppose it is related to bootstrap, but I cannot figure it out. Any help is very welcome! Thank you!
  8. Hallo, ich habe auch eine Weile gebraucht, bis ich es hatte in 1.6. Folgende Schritte sind zu tun: 1. In phpMyAdmin in der Tabelle "PRÄFIX_product" eine neue Spalte "Drehzahl" mit den entsprechenden Eigenschaften anlegen. 2. In controllers/AdminImportController.php nach case $this->entities[$this->l('Products')]: self::$validators['image'] = array( 'AdminImportController', 'split' ); $this->available_fields = array( 'Drehzahl' => array('label' => $this->l('Drehzahl')), einsetzen. Dadurch wird das Feld "Drehzahl" beim CSV-Import als "Drehzahl" angezeigt. 3. In classes/Product.php nach ca. Zeile 205 folgendes einsetzen: public $Drehzahl; Dies macht Prestahop die neue Spalte bekannt. 4. Dann noch bei ca. Zeile 350 einsetzen: 'Drehzahl' => array('type' => self::TYPE_STRING, 'validate' => 'isCleanHtml'), Hier werden weitere Eigenschaften festgelegt. Dies ist ein quick-and-dirty-Hack, der aber bei mir reibungslos funktioniert beim Import. Zum Bearbeiten der Felder im Back-Office ist etwas mehr zu tun, was ich mir aber gespart habe. Viel Erfolg!
×
×
  • Create New...