Wilendar Posted May 31, 2021 Share Posted May 31, 2021 (edited) Hello, Is there any way to display both prices (specific and basic) in the product page and catalog view ? I have set specific price for each product individually, each product have different specific price for each customer group, how to display it with basic price (crossed out) on the product page? Can anyone help me please? I have found code for prestashop 1.6 but it won't work on 1.7 Quote Hi, For the 1.6 version you can access prices from the 61 to 77 : {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} <div class="content_price" itemprop="offers" itemscope itemtype="http://schema.org/Offer"> {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="{$priceDisplay}" /> {if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0} <span class="old-price product-price"> {displayWtPrice p=$product.price_without_reduction} </span> {if $product.specific_prices.reduction_type == 'percentage'} <span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span> {/if} {/if} {/if} </div> {/if} Edited May 31, 2021 by Wilendar (see edit history) Link to comment Share on other sites More sharing options...
EvaF Posted May 31, 2021 Share Posted May 31, 2021 there is plugin for 1.7 ModuleAdmin product price list with discount price Module it might be is what you search Link to comment Share on other sites More sharing options...
Wilendar Posted June 7, 2021 Author Share Posted June 7, 2021 On 5/31/2021 at 8:39 PM, EvaF said: there is plugin for 1.7 ModuleAdmin product price list with discount price Module it might be is what you search Thank you for the reply, but i'm looking to display both prices on the front page, not in the back office. Link to comment Share on other sites More sharing options...
militaryamy Posted September 30 Share Posted September 30 (edited) On 5/31/2021 at 7:39 PM, EvaF said: there is plugin for 1.7 ModuleAdmin product price list with discount price Module it might be is what you search This looks just what I need but the link goes to loads of modules - I know it's been 3 years since you posted this but whichh module did you use to produce this result? I need to be able to see my "specific prices" in the back office list. Thank you Edited September 30 by militaryamy (see edit history) 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