olesen Posted November 25, 2021 Share Posted November 25, 2021 (edited) Hi Prestashop 1.7.8.1 I have the problem that the price is not visible on the product page 😞 The price is visibel on the product list, but when I click on the product and go to the product detail, the price is missing.. If there is a discount shown before the price and discount% but not price. Are there others who have the same problem? (Maby a solution?) Thanks in advance Edited November 25, 2021 by olesen [sOLVED] (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted November 25, 2021 Share Posted November 25, 2021 First check if it is visbile in the source code and only hidden by CSS. If not check the corresponding .tpl file Link to comment Share on other sites More sharing options...
olesen Posted November 25, 2021 Author Share Posted November 25, 2021 Hi Thanks The price seems to be in the code .. So it must be CSS, what should I look for 😉 Link to comment Share on other sites More sharing options...
JBW Posted November 25, 2021 Share Posted November 25, 2021 Expand this span, see if the price is really inside. The element does not seem to be hidden be css Link to comment Share on other sites More sharing options...
olesen Posted November 25, 2021 Author Share Posted November 25, 2021 Hi Yes, right, the price is missing.... Hmmm TPL fiels ? Link to comment Share on other sites More sharing options...
olesen Posted November 25, 2021 Author Share Posted November 25, 2021 Hi Maby ? <span class='current-price-value' content="{$product.rounded_display_price}"> {capture name='custom_price'}{hook h='displayProductPriceBlock' product=$product type='custom_price' hook_origin='product_sheet'}{/capture} {if '' !== $smarty.capture.custom_price} {$smarty.capture.custom_price nofilter} {else} {$product.price} {/if} </span> Link to comment Share on other sites More sharing options...
JBW Posted November 25, 2021 Share Posted November 25, 2021 This looks same in current classic theme. Do you maybe have a module active that is manipulating the price in hook displayProductPriceBlock? Link to comment Share on other sites More sharing options...
olesen Posted November 25, 2021 Author Share Posted November 25, 2021 Hi Thanks 🙂 "FO Quantity Prices", is the problem 🙂 Link to comment Share on other sites More sharing options...
olesen Posted March 3, 2022 Author Share Posted March 3, 2022 It must be this TPL file that is teasing. I have written to the developer, but again reply back yet .... {** * --------------------------------------------------------------------------------- * * This file is part of the 'oleafoquantityprices' module feature * Developped for Prestashop platform. * You are not allowed to use it on several site * You are not allowed to sell or redistribute this module * This header must not be removed * * @category XXX * @author OleaCorner <[email protected]> <www.oleacorner.com> * @copyright OleaCorner * @version 1.0 * * --------------------------------------------------------------------------------- *} {if isset($display_fromprice) && $display_fromprice && isset($oleafoqty_bestprice) && count($oleafoqty_bestprice)} {if !$olea_isalg} <div class="oleafoqty_fromprice"><span class="oleafoqty_fromlabel">{l s='From' mod='oleafoquantityprices'} </span>{$oleafoqty_bestprice.price_displayed|escape:'htmlall':'UTF-8'} {l s='By %d' sprintf=[$oleafoqty_bestprice.quantity|intval] mod='oleafoquantityprices'}</div> {else} <div class="oleafoqty_fromprice"> <span class="oleafoqty_fromlabel">{l s='From' mod='oleafoquantityprices'} </span> {$oleafoqty_bestprice.price_without_taxes_displayed|escape:'htmlall':'UTF-8'} HT CHAQUE{l s='by' mod='oleafoquantityprices'} {$oleafoqty_bestprice.quantity|intval} <br/>{$oleafoqty_bestprice.price_with_taxes_displayed|escape:'htmlall':'UTF-8'} TTC CHAQUE{l s='by' mod='oleafoquantityprices'} {$oleafoqty_bestprice.quantity|intval} </div> {/if} {/if} {include file="module:oleafoquantityprices/views/templates/hook/ps17/tables/table_main.tpl" fromHook="displayProductPriceBlock" assign=oleafoqty_content} {if trim($oleafoqty_content)} <div class="oleafoq_priceblock" > {if 0}<label>{l s='Quantity prices' mod='oleafoquantityprices'}</label>{/if} <div class="js_oleafoq_content js_oleafoq_displayProductPriceBlock_{$current_blockprice_type|escape:'htmlall':'UTF-8'} "> {$oleafoqty_content nofilter} {* No Escaper, as comuted by previous assign by include file *} </div> </div> {/if} Link to comment Share on other sites More sharing options...
Robert Dube Posted January 12, 2023 Share Posted January 12, 2023 anybody get an answer to this question - my theme Movic not displaying price in product detail page 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