Jump to content

Display Specific prices with basic prices on product page


Wilendar

Recommended Posts

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 by Wilendar (see edit history)
Link to comment
Share on other sites

  • 3 years later...
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

ps38.png.c28af3bccbaf283514efa6c2c0528496.png

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 by militaryamy (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...