Shwetab55 Posted February 24, 2020 Share Posted February 24, 2020 Hi, I have installed the prestashop 1.7 but product price is showing zero like this <span class="current-price"><span itemprop="price" class="product-price" content="332.5">0</span></span> Thank you Link to comment Share on other sites More sharing options...
MarlexLadag Posted February 24, 2020 Share Posted February 24, 2020 Can you put your site in to debug mode? And tell us if what are the changes you made? Are you using a theme? Link to comment Share on other sites More sharing options...
Shwetab55 Posted February 25, 2020 Author Share Posted February 25, 2020 Hi I'm using warehouse theme and I have just installed couple of the modules, after enabling debug mode I get following errors (1/1) ContextErrorException Notice: Undefined index: sign in Tools.php line 28 at Tools::displayPrice(6.6000000000000005, array('id_currency' => '1', 'name' => '', 'iso_code' => 'EUR', 'numeric_iso_code' => '978', 'precision' => '2', 'conversion_rate' => '1.0000000000', 'deleted' => '0', 'active' => '1'))in totloyaltyadvanced.php line 361 at TotLoyaltyAdvanced->hookDisplayProductPriceBlock(array('product' => object(ProductLazyArray), 'type' => 'weight', 'hook_origin' => 'product_sheet', 'smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 970 at HookCore::coreCallHook(object(TotLoyaltyAdvanced), 'hookdisplayProductPriceBlock', array('product' => object(ProductLazyArray), 'type' => 'weight', 'hook_origin' => 'product_sheet', 'smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 355 at HookCore::callHookOn(object(TotLoyaltyAdvanced), 'displayProductPriceBlock', array('product' => object(ProductLazyArray), 'type' => 'weight', 'hook_origin' => 'product_sheet', 'smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 907 at HookCore::exec('displayProductPriceBlock', array('product' => object(ProductLazyArray), 'type' => 'weight', 'hook_origin' => 'product_sheet', 'smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1), null)in smarty.config.inc.php line 167 at smartyHook(array('h' => 'displayProductPriceBlock', 'product' => object(ProductLazyArray), 'type' => 'weight', 'hook_origin' => 'product_sheet'), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83 at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayProductPriceBlock', 'product' => object(ProductLazyArray), 'type' => 'weight', 'hook_origin' => 'product_sheet'), object(SmartyDevTemplate)))in 5117a73d99f450c5aa8f1f2d8b0ecb7de7877727_2.file.product-prices.tpl.php line 72 at content_5e54bd0e534619_22306008(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('file:catalog/_partials/product-prices.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 0, false)in cbafdfe8aa8b1843fd0a879e3be725d861faf855_2.file.product.tpl.php line 337 at Block_18266080165e3aa427436b12_50281848->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_18266080165e3aa427436b12_50281848), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_18266080165e3aa427436b12_50281848))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_18266080165e3aa427436b12_50281848', 'product_prices', 0)in cbafdfe8aa8b1843fd0a879e3be725d861faf855_2.file.product.tpl.php line 372 at Block_17189266625e3aa4273f8f76_14105808->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_17189266625e3aa4273f8f76_14105808), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_17189266625e3aa4273f8f76_14105808))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_17189266625e3aa4273f8f76_14105808', 'page_header_container', 0)in cbafdfe8aa8b1843fd0a879e3be725d861faf855_2.file.product.tpl.php line 870 at Block_18055904165e3aa4273e8d50_78664648->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_18055904165e3aa4273e8d50_78664648), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_18055904165e3aa4273e8d50_78664648), object(Block_13731466115e3a9fa97aa3f8_47752394))in smarty_internal_runtime_inheritance.php line 186 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_13731466115e3a9fa97aa3f8_47752394))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_13731466115e3a9fa97aa3f8_47752394', 'content', 1)in 6cc9810ce64c184d819bacc1ef1e8bbe06da6f17_2.file.layout-full-width.tpl.php line 135 at Block_20013127835e3a9fa97a4a84_78112091->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_20013127835e3a9fa97a4a84_78112091), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_20013127835e3a9fa97a4a84_78112091), object(Block_20808587915e3a9fa97dffb1_67694861))in smarty_internal_runtime_inheritance.php line 186 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_20808587915e3a9fa97dffb1_67694861))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_20808587915e3a9fa97dffb1_67694861', 'content_wrapper')in cf64ecf066af2a01d094f2645df91cee0b1b8afd_2.file.layout-both-columns.tpl.php line 91 at content_5e3a9fa981f592_47631934(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('layouts/layout-both-columns.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')in 6cc9810ce64c184d819bacc1ef1e8bbe06da6f17_2.file.layout-full-width.tpl.php line 50 at content_5e3a9fa97ae649_84607519(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('layouts/layout-full-width.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl')in cbafdfe8aa8b1843fd0a879e3be725d861faf855_2.file.product.tpl.php line 64 at content_5e3aa4274b0e42_36593059(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232 at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, 'layouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch('catalog/product.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40 at SmartyDev->fetch('catalog/product.tpl', null, 'layouts/layout-full-width.tpl')in FrontController.php line 683 at FrontControllerCore->smartyOutputContent('catalog/product.tpl')in FrontController.php line 667 at FrontControllerCore->display()in Controller.php line 312 at ControllerCore->run()in Dispatcher.php line 515 at DispatcherCore->dispatch()in index.php line 28 Thank you Link to comment Share on other sites More sharing options...
JBW Posted February 25, 2020 Share Posted February 25, 2020 Seems to be caused by a loyalty module (TotLoyaltyAdvanced) - see if deactivating the modules solves the issue. If yes contact the module author to fix the issue Link to comment Share on other sites More sharing options...
Shwetab55 Posted February 25, 2020 Author Share Posted February 25, 2020 Uninstalled the loyalty modules but didn't solve the issue. Link to comment Share on other sites More sharing options...
JBW Posted February 25, 2020 Share Posted February 25, 2020 Error message should have haved now, whats the new one? Link to comment Share on other sites More sharing options...
Shwetab55 Posted February 25, 2020 Author Share Posted February 25, 2020 No, I dont find any after enabling debug mode Link to comment Share on other sites More sharing options...
NPO Posted February 25, 2020 Share Posted February 25, 2020 HI, Disable every 'extra' module you can. Delete /var/cache, clear all other cache and see if debug gives you anything. Link to comment Share on other sites More sharing options...
poshshop Posted June 26, 2022 Share Posted June 26, 2022 Hello, l checked out the themes/classic/templates/catalog ---> product.tpl file via my server (l'm using the default theme for Presta), and l noticed this: <meta property="product:pretax_price:amount" content="{$product.price_tax_exc}"> <meta property="product:pretax_price:currency" content="{$currency.iso_code}"> <meta property="product:price:amount" content="{$product.price_amount}"> <meta property="product:price:currency" content="{$currency.iso_code}"> It occurred to me: I was feeding the currency symbol into Presta during product spreadsheet upload. TL;DR: I removed the currency symbol from my upload spreadsheet, and the upload worked, the prices are correct. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now