Jump to content

vxmretail

Members
  • Posts

    10
  • Joined

  • Last visited

Contact Methods

Profile Information

  • Location
    Breda, Nederland
  • Activity
    Other

Recent Profile Visitors

379 profile views

vxmretail's Achievements

Newbie

Newbie (1/14)

  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

1

Reputation

  1. Bedankt Inform-All voor een reactie. Ik heb mijn template bouwer een mail gestuurd en die geeft aan dat het aan de Pretty Urls ligt en niet aan het template, echter de maker gan Pretty Url geeft aan dat het aan de template ligt, dus kom niet verder. Ik heb de pagina opgeslagen van een willekeurig product, de debug geeft inderdaad veel fouten aan. Hoop dat u weet waar ik moet beginnen om het probleem op te lossen. skirtini-setje.html
  2. Hoi, Ik heb een probleem met mijn webshop. Mijn error log staat helemaal vol met 1 foutmelding [28-Feb-2021 17:56:34 Europe/Amsterdam] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/XXX/public_html/var/cache/prod/smarty/compile/warehouselayouts_layout_full_width_tpl/a4/5e/c8/a45ec8b6e41f76c7af2e5ff1fb03cffacfb2ee57_2.file.product-prices.tpl.php on line 226 Ik gebruik het Warehouse theme en de ontwikkelaar zegt dat het niet aan het thema ligt, alleen ik weet niet hoe ik het probleem kan oplossen, wellicht hebben jullie een idee? Dit is mijn file product-prices.tpl {** * 2007-2017 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 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/osl-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-2017 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <div class="product-prices"> {block name='product_reference'} {if $iqitTheme.pp_reference == 'title'} {if isset($product.reference_to_display) && $product.reference_to_display neq ''} <div class="product-reference"> <label class="label">{l s='Reference' d='Shop.Theme.Catalog'} </label> <span itemprop="sku">{$product.reference_to_display}</span> <br /> <label class="label">{l s='Ean13' d='Shop.Theme.Catalog'}:</label> <span itemprop="gtin13" content="{$product.ean13}">{$product.ean13}</span> </div> {/if} {/if} {/block} {if $product.show_price} {if !$configuration.is_catalog} {block name='product_availability'} {if $product.show_availability && $product.availability_message} <span id="product-availability" class="badge {if $product.availability == 'available'} {if $product.quantity <= 0 && !$product.allow_oosp} badge-danger product-unavailable {elseif $product.quantity <= 0 && $product.allow_oosp}badge-warning product-unavailable-allow-oosp {else}badge-success product-available{/if}{elseif $product.availability == 'last_remaining_items'}badge-warning product-last-items{else}badge-danger product-unavailable{/if}"> {if $product.availability == 'available'} <i class="fa fa-check rtl-no-flip" aria-hidden="true"></i> {$product.availability_message} {elseif $product.availability == 'last_remaining_items'} <i class="fa fa-exclamation" aria-hidden="true"></i> {$product.availability_message} {else} <i class="fa fa-ban" aria-hidden="true"></i> {$product.availability_message} {if isset($product.available_date) && $product.available_date != '0000-00-00'} {if $product.available_date|strtotime > $smarty.now}<span class="available-date">{l s='until' d='Shop.Theme.Catalog'} {$product.available_date}</span>{/if} {/if} {/if} </span> {/if} {/block} {/if} {block name='product_price'} <div class="{if $product.has_discount}has-discount{/if}" itemprop="offers" itemscope itemtype="https://schema.org/Offer" > {if isset($product.seo_availability)} <link itemprop="availability" href="{$product.seo_availability}"/> {else} <link itemprop="availability" href="https://schema.org/InStock"/> {/if} <meta itemprop="priceCurrency" content="{$currency.iso_code}"> <meta itemprop="url" content="{$product.url}"> <div> <span itemprop="price" class="product-price" content="{$product.rounded_display_price}">{$product.price}</span> {if $product.has_discount} <span class="product-discount"> {hook h='displayProductPriceBlock' product=$product type="old_price"} <span class="regular-price">{$product.regular_price}</span> </span> {if $product.discount_type === 'percentage'} <span class="badge badge-discount discount discount-percentage">-{$product.discount_percentage_absolute}</span> {else} <span class="badge badge-discount discount discount-amount">-{$product.discount_to_display}</span> {/if} {if isset($product.specific_prices.to) && $product.specific_prices.to != '0000-00-00 00:00:00'}<meta itemprop="priceValidUntil" content="{$product.specific_prices.to}"/>{/if} {/if} </div> {block name='product_unit_price'} {if $displayUnitPrice} <p class="product-unit-price text-muted">{l s='(%unit_price%)' d='Shop.Theme.Catalog' sprintf=['%unit_price%' => $product.unit_price_full]}</p> {/if} {/block} </div> {/block} {block name='product_without_taxes'} {if $priceDisplay == 2} <p class="product-without-taxes text-muted">{l s='%price% tax excl.' d='Shop.Theme.Catalog' sprintf=['%price%' => $product.price_tax_exc]}</p> {/if} {/block} {block name='product_pack_price'} {if $displayPackPrice} <p class="product-pack-price"> <span>{l s='Instead of %price%' d='Shop.Theme.Catalog' sprintf=['%price%' => $noPackPrice]}</span> </p> {/if} {/block} {block name='product_ecotax'} {if $product.ecotax.amount > 0} <p class="price-ecotax text-muted">{l s='Including %amount% for ecotax' d='Shop.Theme.Catalog' sprintf=['%amount%' => $product.ecotax.value]} {if $product.has_discount} {l s='(not impacted by the discount)' d='Shop.Theme.Catalog'} {/if} </p> {/if} {/block} {hook h='displayProductPriceBlock' product=$product type="weight" hook_origin='product_sheet'} <div class="tax-shipping-delivery-label text-muted"> {if isset($configuration.taxes_enabled) && !$configuration.taxes_enabled} {l s='No tax' d='Shop.Theme.Catalog'} {elseif $configuration.display_taxes_label} {$product.labels.tax_long} {/if} {hook h='displayProductPriceBlock' product=$product type="price"} {hook h='displayProductPriceBlock' product=$product type="after_price"} {if $product.additional_delivery_times == 1} {if $product.delivery_information} <span class="delivery-information">{$product.delivery_information}</span> {/if} {elseif $product.additional_delivery_times == 2} {if $product.quantity > 0} <span class="delivery-information">{$product.delivery_in_stock}</span> {* Out of stock message should not be displayed if customer can't order the product. *} {elseif $product.quantity <= 0 && $product.add_to_cart_url} <span class="delivery-information">{$product.delivery_out_stock}</span> {/if} {/if} </div> {hook h='displayCountDown'} {/if} </div> Onderstaand de file uit de cache: <?php /* Smarty version 3.1.34-dev-7, created on 2021-02-25 21:50:24 from '/home/XXXX/public_html/themes/warehouse/templates/catalog/_partials/product-prices.tpl' */ /* @var Smarty_Internal_Template $_smarty_tpl */ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( 'version' => '3.1.34-dev-7', 'unifunc' => 'content_60380d902d1a86_03461783', 'has_nocache_code' => false, 'file_dependency' => array ( 'a45ec8b6e41f76c7af2e5ff1fb03cffacfb2ee57' => array ( 0 => '/home/XXXX/public_html/themes/warehouse/templates/catalog/_partials/product-prices.tpl', 1 => 1614185262, 2 => 'file', ), ), 'includes' => array ( ), ),false)) { function content_60380d902d1a86_03461783 (Smarty_Internal_Template $_smarty_tpl) { $_smarty_tpl->_loadInheritance(); $_smarty_tpl->inheritance->init($_smarty_tpl, false); ?> <div class="product-prices"> <?php $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_20779463860380d902a6790_91866698', 'product_reference'); ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['show_price']) {?> <?php if (!$_smarty_tpl->tpl_vars['configuration']->value['is_catalog']) {?> <?php $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_12827977860380d902ac162_29380855', 'product_availability'); ?> <?php }?> <?php $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_70785149360380d902b6947_32318380', 'product_price'); ?> <?php $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_200861944260380d902c0d85_87765752', 'product_without_taxes'); ?> <?php $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_34211519560380d902c3289_23511182', 'product_pack_price'); ?> <?php $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_94140078760380d902c5040_38279537', 'product_ecotax'); ?> <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0], array( array('h'=>'displayProductPriceBlock','product'=>$_smarty_tpl->tpl_vars['product']->value,'type'=>"weight",'hook_origin'=>'product_sheet'),$_smarty_tpl ) );?> <div class="tax-shipping-delivery-label text-muted"> <?php if (isset($_smarty_tpl->tpl_vars['configuration']->value['taxes_enabled']) && !$_smarty_tpl->tpl_vars['configuration']->value['taxes_enabled']) {?> <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'No tax','d'=>'Shop.Theme.Catalog'),$_smarty_tpl ) );?> <?php } elseif ($_smarty_tpl->tpl_vars['configuration']->value['display_taxes_label']) {?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['labels']['tax_long'], ENT_QUOTES, 'UTF-8');?> <?php }?> <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0], array( array('h'=>'displayProductPriceBlock','product'=>$_smarty_tpl->tpl_vars['product']->value,'type'=>"price"),$_smarty_tpl ) );?> <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0], array( array('h'=>'displayProductPriceBlock','product'=>$_smarty_tpl->tpl_vars['product']->value,'type'=>"after_price"),$_smarty_tpl ) );?> <?php if ($_smarty_tpl->tpl_vars['product']->value['additional_delivery_times'] == 1) {?> <?php if ($_smarty_tpl->tpl_vars['product']->value['delivery_information']) {?> <span class="delivery-information"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['delivery_information'], ENT_QUOTES, 'UTF-8');?> </span> <?php }?> <?php } elseif ($_smarty_tpl->tpl_vars['product']->value['additional_delivery_times'] == 2) {?> <?php if ($_smarty_tpl->tpl_vars['product']->value['quantity'] > 0) {?> <span class="delivery-information"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['delivery_in_stock'], ENT_QUOTES, 'UTF-8');?> </span> <?php } elseif ($_smarty_tpl->tpl_vars['product']->value['quantity'] <= 0 && $_smarty_tpl->tpl_vars['product']->value['add_to_cart_url']) {?> <span class="delivery-information"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['delivery_out_stock'], ENT_QUOTES, 'UTF-8');?> </span> <?php }?> <?php }?> </div> <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0], array( array('h'=>'displayCountDown'),$_smarty_tpl ) );?> <?php }?> </div> <?php } /* {block 'product_reference'} */ class Block_20779463860380d902a6790_91866698 extends Smarty_Internal_Block { public $subBlocks = array ( 'product_reference' => array ( 0 => 'Block_20779463860380d902a6790_91866698', ), ); public function callBlock(Smarty_Internal_Template $_smarty_tpl) { ?> <?php if ($_smarty_tpl->tpl_vars['iqitTheme']->value['pp_reference'] == 'title') {?> <?php if (isset($_smarty_tpl->tpl_vars['product']->value['reference_to_display']) && $_smarty_tpl->tpl_vars['product']->value['reference_to_display'] != '') {?> <div class="product-reference"> <label class="label"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Reference','d'=>'Shop.Theme.Catalog'),$_smarty_tpl ) );?> </label> <span itemprop="sku"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['reference_to_display'], ENT_QUOTES, 'UTF-8');?> </span> <br /> <label class="label"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Ean13','d'=>'Shop.Theme.Catalog'),$_smarty_tpl ) );?> :</label> <span itemprop="gtin13" content="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['ean13'], ENT_QUOTES, 'UTF-8');?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['ean13'], ENT_QUOTES, 'UTF-8');?> </span> </div> <?php }?> <?php }?> <?php } } /* {/block 'product_reference'} */ /* {block 'product_availability'} */ class Block_12827977860380d902ac162_29380855 extends Smarty_Internal_Block { public $subBlocks = array ( 'product_availability' => array ( 0 => 'Block_12827977860380d902ac162_29380855', ), ); public function callBlock(Smarty_Internal_Template $_smarty_tpl) { ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['show_availability'] && $_smarty_tpl->tpl_vars['product']->value['availability_message']) {?> <span id="product-availability" class="badge <?php if ($_smarty_tpl->tpl_vars['product']->value['availability'] == 'available') {?> <?php if ($_smarty_tpl->tpl_vars['product']->value['quantity'] <= 0 && !$_smarty_tpl->tpl_vars['product']->value['allow_oosp']) {?> badge-danger product-unavailable <?php } elseif ($_smarty_tpl->tpl_vars['product']->value['quantity'] <= 0 && $_smarty_tpl->tpl_vars['product']->value['allow_oosp']) {?>badge-warning product-unavailable-allow-oosp <?php } else { ?>badge-success product-available<?php } } elseif ($_smarty_tpl->tpl_vars['product']->value['availability'] == 'last_remaining_items') {?>badge-warning product-last-items<?php } else { ?>badge-danger product-unavailable<?php }?>"> <?php if ($_smarty_tpl->tpl_vars['product']->value['availability'] == 'available') {?> <i class="fa fa-check rtl-no-flip" aria-hidden="true"></i> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['availability_message'], ENT_QUOTES, 'UTF-8');?> <?php } elseif ($_smarty_tpl->tpl_vars['product']->value['availability'] == 'last_remaining_items') {?> <i class="fa fa-exclamation" aria-hidden="true"></i> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['availability_message'], ENT_QUOTES, 'UTF-8');?> <?php } else { ?> <i class="fa fa-ban" aria-hidden="true"></i> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['availability_message'], ENT_QUOTES, 'UTF-8');?> <?php if (isset($_smarty_tpl->tpl_vars['product']->value['available_date']) && $_smarty_tpl->tpl_vars['product']->value['available_date'] != '0000-00-00') {?> <?php if (strtotime($_smarty_tpl->tpl_vars['product']->value['available_date']) > time()) {?><span class="available-date"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'until','d'=>'Shop.Theme.Catalog'),$_smarty_tpl ) );?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['available_date'], ENT_QUOTES, 'UTF-8');?> </span><?php }?> <?php }?> <?php }?> </span> <?php }?> <?php } } /* {/block 'product_availability'} */ /* {block 'product_unit_price'} */ class Block_137137558960380d902beaa8_99561232 extends Smarty_Internal_Block { public function callBlock(Smarty_Internal_Template $_smarty_tpl) { ?> <?php if ($_smarty_tpl->tpl_vars['displayUnitPrice']->value) {?> <p class="product-unit-price text-muted"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'(%unit_price%)','d'=>'Shop.Theme.Catalog','sprintf'=>array('%unit_price%'=>$_smarty_tpl->tpl_vars['product']->value['unit_price_full'])),$_smarty_tpl ) );?> </p> <?php }?> <?php } } /* {/block 'product_unit_price'} */ /* {block 'product_price'} */ class Block_70785149360380d902b6947_32318380 extends Smarty_Internal_Block { public $subBlocks = array ( 'product_price' => array ( 0 => 'Block_70785149360380d902b6947_32318380', ), 'product_unit_price' => array ( 0 => 'Block_137137558960380d902beaa8_99561232', ), ); public function callBlock(Smarty_Internal_Template $_smarty_tpl) { ?> <div class="<?php if ($_smarty_tpl->tpl_vars['product']->value['has_discount']) {?>has-discount<?php }?>" itemprop="offers" itemscope itemtype="https://schema.org/Offer" > <?php if (isset($_smarty_tpl->tpl_vars['product']->value['seo_availability'])) {?> <link itemprop="availability" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['seo_availability'], ENT_QUOTES, 'UTF-8');?> "/> <?php } else { ?> <link itemprop="availability" href="https://schema.org/InStock"/> <?php }?> <meta itemprop="priceCurrency" content="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currency']->value['iso_code'], ENT_QUOTES, 'UTF-8');?> "> <meta itemprop="url" content="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['url'], ENT_QUOTES, 'UTF-8');?> "> <div> <span class="current-price"><span itemprop="price" class="product-price" content="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['rounded_display_price'], ENT_QUOTES, 'UTF-8');?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['price'], ENT_QUOTES, 'UTF-8');?> </span></span> <?php if ($_smarty_tpl->tpl_vars['product']->value['has_discount']) {?> <span class="product-discount"> <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0], array( array('h'=>'displayProductPriceBlock','product'=>$_smarty_tpl->tpl_vars['product']->value,'type'=>"old_price"),$_smarty_tpl ) );?> <span class="regular-price"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['regular_price'], ENT_QUOTES, 'UTF-8');?> </span> </span> <?php if ($_smarty_tpl->tpl_vars['product']->value['discount_type'] === 'percentage') {?> <span class="badge badge-discount discount discount-percentage">-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['discount_percentage_absolute'], ENT_QUOTES, 'UTF-8');?> </span> <?php } else { ?> <span class="badge badge-discount discount discount-amount">-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['discount_to_display'], ENT_QUOTES, 'UTF-8');?> </span> <?php }?> <?php if (isset($_smarty_tpl->tpl_vars['product']->value['specific_prices']['to']) && $_smarty_tpl->tpl_vars['product']->value['specific_prices']['to'] != '0000-00-00 00:00:00') {?><meta itemprop="priceValidUntil" content="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['specific_prices']['to'], ENT_QUOTES, 'UTF-8');?> "/><?php }?> <?php }?> </div> <?php $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_137137558960380d902beaa8_99561232', 'product_unit_price', $this->tplIndex); ?> </div> <?php } } /* {/block 'product_price'} */ /* {block 'product_without_taxes'} */ class Block_200861944260380d902c0d85_87765752 extends Smarty_Internal_Block { public $subBlocks = array ( 'product_without_taxes' => array ( 0 => 'Block_200861944260380d902c0d85_87765752', ), ); public function callBlock(Smarty_Internal_Template $_smarty_tpl) { ?> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 2) {?> <p class="product-without-taxes text-muted"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'%price% tax excl.','d'=>'Shop.Theme.Catalog','sprintf'=>array('%price%'=>$_smarty_tpl->tpl_vars['product']->value['price_tax_exc'])),$_smarty_tpl ) );?> </p> <?php }?> <?php } } /* {/block 'product_without_taxes'} */ /* {block 'product_pack_price'} */ class Block_34211519560380d902c3289_23511182 extends Smarty_Internal_Block { public $subBlocks = array ( 'product_pack_price' => array ( 0 => 'Block_34211519560380d902c3289_23511182', ), ); public function callBlock(Smarty_Internal_Template $_smarty_tpl) { ?> <?php if ($_smarty_tpl->tpl_vars['displayPackPrice']->value) {?> <p class="product-pack-price"> <span><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Instead of %price%','d'=>'Shop.Theme.Catalog','sprintf'=>array('%price%'=>$_smarty_tpl->tpl_vars['noPackPrice']->value)),$_smarty_tpl ) );?> </span> </p> <?php }?> <?php } } /* {/block 'product_pack_price'} */ /* {block 'product_ecotax'} */ class Block_94140078760380d902c5040_38279537 extends Smarty_Internal_Block { public $subBlocks = array ( 'product_ecotax' => array ( 0 => 'Block_94140078760380d902c5040_38279537', ), ); public function callBlock(Smarty_Internal_Template $_smarty_tpl) { ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['ecotax']['amount'] > 0) {?> <p class="price-ecotax text-muted"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Including %amount% for ecotax','d'=>'Shop.Theme.Catalog','sprintf'=>array('%amount%'=>$_smarty_tpl->tpl_vars['product']->value['ecotax']['value'])),$_smarty_tpl ) );?> <?php if ($_smarty_tpl->tpl_vars['product']->value['has_discount']) {?> <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'(not impacted by the discount)','d'=>'Shop.Theme.Catalog'),$_smarty_tpl ) );?> <?php }?> </p> <?php }?> <?php } } /* {/block 'product_ecotax'} */ } Alvast bedankt voor het meedenken! Met vriendelijke groet, Jelte
  3. Hi, I see a problem in my error log: [28-Feb-2021 17:56:34 Europe/Amsterdam] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/XXX/public_html/var/cache/prod/smarty/compile/warehouselayouts_layout_full_width_tpl/a4/5e/c8/a45ec8b6e41f76c7af2e5ff1fb03cffacfb2ee57_2.file.product-prices.tpl.php on line 226 Line 226: <span class="current-price"><span itemprop="price" class="product-price" content="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['rounded_display_price'], ENT_QUOTES, 'UTF-8');?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['price'], ENT_QUOTES, 'UTF-8');?> This is my product-prices.tpl file {** * 2007-2017 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 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/osl-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-2017 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <div class="product-prices"> {block name='product_reference'} {if $iqitTheme.pp_reference == 'title'} {if isset($product.reference_to_display) && $product.reference_to_display neq ''} <div class="product-reference"> <label class="label">{l s='Reference' d='Shop.Theme.Catalog'} </label> <span itemprop="sku">{$product.reference_to_display}</span> <br /> <label class="label">{l s='Ean13' d='Shop.Theme.Catalog'}:</label> <span itemprop="gtin13" content="{$product.ean13}">{$product.ean13}</span> </div> {/if} {/if} {/block} {if $product.show_price} {if !$configuration.is_catalog} {block name='product_availability'} {if $product.show_availability && $product.availability_message} <span id="product-availability" class="badge {if $product.availability == 'available'} {if $product.quantity <= 0 && !$product.allow_oosp} badge-danger product-unavailable {elseif $product.quantity <= 0 && $product.allow_oosp}badge-warning product-unavailable-allow-oosp {else}badge-success product-available{/if}{elseif $product.availability == 'last_remaining_items'}badge-warning product-last-items{else}badge-danger product-unavailable{/if}"> {if $product.availability == 'available'} <i class="fa fa-check rtl-no-flip" aria-hidden="true"></i> {$product.availability_message} {elseif $product.availability == 'last_remaining_items'} <i class="fa fa-exclamation" aria-hidden="true"></i> {$product.availability_message} {else} <i class="fa fa-ban" aria-hidden="true"></i> {$product.availability_message} {if isset($product.available_date) && $product.available_date != '0000-00-00'} {if $product.available_date|strtotime > $smarty.now}<span class="available-date">{l s='until' d='Shop.Theme.Catalog'} {$product.available_date}</span>{/if} {/if} {/if} </span> {/if} {/block} {/if} {block name='product_price'} <div class="{if $product.has_discount}has-discount{/if}" itemprop="offers" itemscope itemtype="https://schema.org/Offer" > {if isset($product.seo_availability)} <link itemprop="availability" href="{$product.seo_availability}"/> {else} <link itemprop="availability" href="https://schema.org/InStock"/> {/if} <meta itemprop="priceCurrency" content="{$currency.iso_code}"> <meta itemprop="url" content="{$product.url}"> <div> <span itemprop="price" class="product-price" content="{$product.rounded_display_price}">{$product.price}</span> {if $product.has_discount} <span class="product-discount"> {hook h='displayProductPriceBlock' product=$product type="old_price"} <span class="regular-price">{$product.regular_price}</span> </span> {if $product.discount_type === 'percentage'} <span class="badge badge-discount discount discount-percentage">-{$product.discount_percentage_absolute}</span> {else} <span class="badge badge-discount discount discount-amount">-{$product.discount_to_display}</span> {/if} {if isset($product.specific_prices.to) && $product.specific_prices.to != '0000-00-00 00:00:00'}<meta itemprop="priceValidUntil" content="{$product.specific_prices.to}"/>{/if} {/if} </div> {block name='product_unit_price'} {if $displayUnitPrice} <p class="product-unit-price text-muted">{l s='(%unit_price%)' d='Shop.Theme.Catalog' sprintf=['%unit_price%' => $product.unit_price_full]}</p> {/if} {/block} </div> {/block} {block name='product_without_taxes'} {if $priceDisplay == 2} <p class="product-without-taxes text-muted">{l s='%price% tax excl.' d='Shop.Theme.Catalog' sprintf=['%price%' => $product.price_tax_exc]}</p> {/if} {/block} {block name='product_pack_price'} {if $displayPackPrice} <p class="product-pack-price"> <span>{l s='Instead of %price%' d='Shop.Theme.Catalog' sprintf=['%price%' => $noPackPrice]}</span> </p> {/if} {/block} {block name='product_ecotax'} {if $product.ecotax.amount > 0} <p class="price-ecotax text-muted">{l s='Including %amount% for ecotax' d='Shop.Theme.Catalog' sprintf=['%amount%' => $product.ecotax.value]} {if $product.has_discount} {l s='(not impacted by the discount)' d='Shop.Theme.Catalog'} {/if} </p> {/if} {/block} {hook h='displayProductPriceBlock' product=$product type="weight" hook_origin='product_sheet'} <div class="tax-shipping-delivery-label text-muted"> {if isset($configuration.taxes_enabled) && !$configuration.taxes_enabled} {l s='No tax' d='Shop.Theme.Catalog'} {elseif $configuration.display_taxes_label} {$product.labels.tax_long} {/if} {hook h='displayProductPriceBlock' product=$product type="price"} {hook h='displayProductPriceBlock' product=$product type="after_price"} {if $product.additional_delivery_times == 1} {if $product.delivery_information} <span class="delivery-information">{$product.delivery_information}</span> {/if} {elseif $product.additional_delivery_times == 2} {if $product.quantity > 0} <span class="delivery-information">{$product.delivery_in_stock}</span> {* Out of stock message should not be displayed if customer can't order the product. *} {elseif $product.quantity <= 0 && $product.add_to_cart_url} <span class="delivery-information">{$product.delivery_out_stock}</span> {/if} {/if} </div> {hook h='displayCountDown'} {/if} </div> Does anyone know a solution? Thanks! Best Regards, Jelte satisfyer-wand-er-woman-white.html
  4. I have the same problem. If i turn on debug function i got the message: Warning op lijn 448 in bestand /home/mijnwebsite/public_html/modules/mailchimpintegration/mailchimpintegration.php [2] Invalid argument supplied for foreach() *** line 448*** foreach ($current_lists['lists'] as $list) { $options[] = array( 'id' => $list['id'], 'name' => $list['name'] ); } *** Also send an ticket to mailchimp.
  5. Hi, we have a prestashop 1.7 store and where the newsletter signup is getting a lot of subscriptions from strange email address like [email protected] and 68 more off unknow emailadresses. I have turn on all confirmation and verifying in newsletter and put a reCaptcha on but where is still getting strange email subscriptions, now i have disabled the newsletter module ps_emailsubscription Note: they all come from tor exit Router. I have checked all the IP adresses But my question is how they subscribe, i dont see anything in the logs and no visiters in the logs from cpanel Thanks!
  6. Beste Prestashoppers, Ik zit met een vraag waar ik niet echt een oplossing voor kan vinden. Wij gebruiken Prestashop 1.6.1.5, wij hebben de multi store aanstaan en hebben op dit moment 1 lopende website. Wij zijn bezig met de 2e website maar krijgen op de homepagina de producten niet automatisch zichtbaar. Wij gebruiken de tabs Nieuw binnen, Populair & Aanbiedingen zie afbeelding Als wij de website inladen, dan zijn de producten niet zichtbaar, klikken wij op nieuw binnen, dan verschijnen er gewoon producten. Hoe kan ik er voor zorgen dat als klant op de webshop komt, direct de producten onder tab Nieuw binnen zichtbaar zijn? Ik heb alles geprobeerd, de installatie module, herstellen module, cache geleegd maar niets lukt. Alvast bedankt voor de antwoorden Gr Jelte
  7. Hallo, Ik ben een Prestashop aan het instellen. Alles werkt perfect alleen ik zit met 1 probleem betreft de Tags. De tags in de Engelse taal zijn netjes zichtbaar: De tags in de Nederlandse taal zijn totaal niet zichtbaar: Ik heb alles al geprobeerd, maar krijg de tags niet actief in de Nederlandse taal terwijl deze wel de juiste taal instelling heeft. Weet iemand toevallig een oplossing voor dit probleem? Alvast bedankt! Jelte
  8. Hello Vekia, I have the same issue. In the English language, the tags are visible on the website. In the Dutch language, the tags are not visible on the website I have disable the module tags, but still not working when i turned the module back on. I have ps_tag_count in the database, should i delete this in my database? Thanks for your awnser Jelte
  9. Hello, I have the same issue. In the English language, the tags are visible on the website. In the Dutch language, the tags are not visible on the website The tags are entered in both languages, has someone a solution for this? Thanks! Jelte
×
×
  • Create New...