[Skip to main content](#vessel-content)

#   Re: An "old price" field

##

- **[Samazar](/forum/user/7450-samazar "View Samazar's Profile")**
- [![Samazar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7450-samazar "View Samazar's Profile") Topic Author
- [ Offline](/forum/user/7450-samazar)

Less More

- Posts: 18
- Thank you received: 0
-
-

14 years 3 weeks ago [\#70441](#70441) by [Samazar](/forum/user/7450-samazar "View Samazar's Profile")  *[An "old price" field](/forum/4-how-to/70441-re-an-old-price-field#70441 "Hi! Could you tell me is there an &quot;old price&quot; field. I mean, you can fill this field and on product's page you can see an old price, which was struck off (or something else...), and below is displayed a new one price. If it's not provided, could you give me a hint of how to make this in a right way.")* was created by *[Samazar](/forum/user/7450-samazar "View Samazar's Profile")*

Hi!
Could you tell me is there an "old price" field. I mean, you can fill this field and on product's page you can see an old price, which was struck off (or something else...), and below is displayed a new one price.
If it's not provided, could you give me a hint of how to make this in a right way.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDQxLXJlLWFuLW9sZC1wcmljZS1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 3 weeks ago [\#70476](#70476) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: An "old price" field](/forum/4-how-to/70441-re-an-old-price-field#70476 "Hi! Could you tell me is there an &quot;old price&quot; field. I mean, you can fill this field and on product's page you can see an old price, which was struck off (or something else...), and below is displayed a new one price. If it's not provided, could you give me a hint of how to make this in a right way.")*

Hi,

To do this, you can create a new custom field on the table "Product" and then, in the product edition page you can set the old price in this custom field.
You can find some documentation about custom fields here:
[ www.hikashop.com/en/support/documentatio...p-field-listing.html](http://www.hikashop.com/en/support/documentation/41-hikashop-field-listing.html)

Then you just have to edit the view "product / show_default" to display the field as you want.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDQxLXJlLWFuLW9sZC1wcmljZS1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Samazar](/forum/user/7450-samazar "View Samazar's Profile")**
- [![Samazar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7450-samazar "View Samazar's Profile") Topic Author
- [ Offline](/forum/user/7450-samazar)

Less More

- Posts: 18
- Thank you received: 0
-
-

14 years 3 weeks ago [\#70482](#70482) by [Samazar](/forum/user/7450-samazar "View Samazar's Profile")  Replied by *[Samazar](/forum/user/7450-samazar "View Samazar's Profile")* on topic *[Re: An "old price" field](/forum/4-how-to/70441-re-an-old-price-field#70482 "Hi! Could you tell me is there an &quot;old price&quot; field. I mean, you can fill this field and on product's page you can see an old price, which was struck off (or something else...), and below is displayed a new one price. If it's not provided, could you give me a hint of how to make this in a right way.")*

I just tried to do so, but as far as I see it's not exactly what I need. I mean something like that:
Old price: [strike]800[/strike]
New price: **900**

Or did I understand something wrong?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDQxLXJlLWFuLW9sZC1wcmljZS1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 3 weeks ago [\#70490](#70490) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: An "old price" field](/forum/4-how-to/70441-re-an-old-price-field#70490 "Hi! Could you tell me is there an &quot;old price&quot; field. I mean, you can fill this field and on product's page you can see an old price, which was struck off (or something else...), and below is displayed a new one price. If it's not provided, could you give me a hint of how to make this in a right way.")*

With the method explain before, it's possible.
Some edition in the view file and css customization are needed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDQxLXJlLWFuLW9sZC1wcmljZS1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ag2r](/forum/user/10230-ag2r "View ag2r's Profile")**
- [![ag2r's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/10230-ag2r "View ag2r's Profile")
- [ Offline](/forum/user/10230-ag2r)

Less More

- Posts: 50
- Thank you received: 1
-
-

14 years 2 weeks ago -  14 years 2 weeks ago [\#72105](#72105) by [ag2r](/forum/user/10230-ag2r "View ag2r's Profile")  Replied by *[ag2r](/forum/user/10230-ag2r "View ag2r's Profile")* on topic *[Re: An "old price" field](/forum/4-how-to/70441-re-an-old-price-field#72105 "Hi! Could you tell me is there an &quot;old price&quot; field. I mean, you can fill this field and on product's page you can see an old price, which was struck off (or something else...), and below is displayed a new one price. If it's not provided, could you give me a hint of how to make this in a right way.")*

imported the old prices but I do not website. how to make a website that would show? that CSS needs to be adjusted (correct)? I use my gk_mystore Templates

if($this-&gt;params-&gt;get('old_price')==2&#124;&#124;!$this-&gt;params-&gt;get('old_price')){
echo $this-&gt;currencyHelper-&gt;format($price-&gt;old_price,$price-&gt;price_currency_id);

Last edit: 14 years 2 weeks ago by [ag2r](/forum/user/10230-ag2r "View ag2r's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDQxLXJlLWFuLW9sZC1wcmljZS1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Samazar](/forum/user/7450-samazar "View Samazar's Profile")**
- [![Samazar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7450-samazar "View Samazar's Profile") Topic Author
- [ Offline](/forum/user/7450-samazar)

Less More

- Posts: 18
- Thank you received: 0
-
-

14 years 2 weeks ago [\#72212](#72212) by [Samazar](/forum/user/7450-samazar "View Samazar's Profile")  Replied by *[Samazar](/forum/user/7450-samazar "View Samazar's Profile")* on topic *[Re: An "old price" field](/forum/4-how-to/70441-re-an-old-price-field#72212 "Hi! Could you tell me is there an &quot;old price&quot; field. I mean, you can fill this field and on product's page you can see an old price, which was struck off (or something else...), and below is displayed a new one price. If it's not provided, could you give me a hint of how to make this in a right way.")*

Hi! I'm still fighting this problem.
New question is: is it possible to display an "old price" field not on the product's page, but on page where multiple products are shown? I tried to do it in this way:
in listing price add Code:

foreach ($this-&gt;rows as $fieldName =&gt; $oneExtraField) { $value = trim($this-&gt;element-&gt; $fieldName); if ($fieldName == "oldprice") { if ($oneExtraField-&gt;oldprice!=""){ ?&gt; &lt;span class="oldPrice"&gt; &lt;?php echo $oneExtraField-&gt;oldprice." RUB for each&lt;br&gt;"; ?&gt; &lt;/span&gt;&lt;? } } }

but all I got is the same value through the all products.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDQxLXJlLWFuLW9sZC1wcmljZS1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 2 weeks ago -  14 years 2 weeks ago [\#72243](#72243) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: An "old price" field](/forum/4-how-to/70441-re-an-old-price-field#72243 "Hi! Could you tell me is there an &quot;old price&quot; field. I mean, you can fill this field and on product's page you can see an old price, which was struck off (or something else...), and below is displayed a new one price. If it's not provided, could you give me a hint of how to make this in a right way.")*

Hi,

To add the price in the product show page, you can use this kind of code: Code:

foreach ($this-&gt;fields as $fieldName =&gt; $oneExtraField) { $value = ''; if(empty($this-&gt;element-&gt;$fieldName) &amp;&amp; !empty($this-&gt;element-&gt;main-&gt;$fieldName))$this-&gt;element-&gt;$fieldName = $this-&gt;element-&gt;main-&gt;$fieldName; if(isset($this-&gt;element-&gt;$fieldName)) $value = trim($this-&gt;element-&gt;$fieldName); if (!empty ($value) &amp;&amp; $fieldName == 'old_price') { echo $this-&gt;fieldsClass-&gt;show($oneExtraField,$value); } }

To add under the code: Code:

if ($this-&gt;params-&gt;get('show_price')) { $this-&gt;row = &amp; $this-&gt;element; $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); }

In the product listing, you just have to add the line: Code:

echo $this-&gt;row-&gt;old_price;

$
Inthese examples your customfield must be named "old_price" you can replace "old_price" by your custome field name.

Last edit: 14 years 2 weeks ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

The following user(s) said Thank You: [Samazar](/forum/user/7450-samazar "View Samazar's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDQxLXJlLWFuLW9sZC1wcmljZS1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ag2r](/forum/user/10230-ag2r "View ag2r's Profile")**
- [![ag2r's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/10230-ag2r "View ag2r's Profile")
- [ Offline](/forum/user/10230-ag2r)

Less More

- Posts: 50
- Thank you received: 1
-
-

14 years 2 weeks ago -  14 years 2 weeks ago [\#72349](#72349) by [ag2r](/forum/user/10230-ag2r "View ag2r's Profile")  Replied by *[ag2r](/forum/user/10230-ag2r "View ag2r's Profile")* on topic *[Re: An "old price" field](/forum/4-how-to/70441-re-an-old-price-field#72349 "Hi! Could you tell me is there an &quot;old price&quot; field. I mean, you can fill this field and on product's page you can see an old price, which was struck off (or something else...), and below is displayed a new one price. If it's not provided, could you give me a hint of how to make this in a right way.")*

works! Thanks! but I do not know how to:

echo $this-&gt;row-&gt;old_price, EUR;

New price: 15 EUR
[strike]Old price: 25 EUR[/strike]

This variant AMAZING ![:)](/media/kunena/emoticons/3.png ":)") i need.

A big thank you.

Last edit: 14 years 2 weeks ago by [ag2r](/forum/user/10230-ag2r "View ag2r's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDQxLXJlLWFuLW9sZC1wcmljZS1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86363
- Thank you received: 14297
-
-

14 years 2 weeks ago [\#72364](#72364) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: An "old price" field](/forum/4-how-to/70441-re-an-old-price-field#72364 "Hi! Could you tell me is there an &quot;old price&quot; field. I mean, you can fill this field and on product's page you can see an old price, which was struck off (or something else...), and below is displayed a new one price. If it's not provided, could you give me a hint of how to make this in a right way.")*

I'm not sure I understand your new question.
Could you please explain what you have now and what you want ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDQxLXJlLWFuLW9sZC1wcmljZS1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ag2r](/forum/user/10230-ag2r "View ag2r's Profile")**
- [![ag2r's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/10230-ag2r "View ag2r's Profile")
- [ Offline](/forum/user/10230-ag2r)

Less More

- Posts: 50
- Thank you received: 1
-
-

14 years 2 weeks ago [\#72382](#72382) by [ag2r](/forum/user/10230-ag2r "View ag2r's Profile")  Replied by *[ag2r](/forum/user/10230-ag2r "View ag2r's Profile")* on topic *[Re: An "old price" field](/forum/4-how-to/70441-re-an-old-price-field#72382 "Hi! Could you tell me is there an &quot;old price&quot; field. I mean, you can fill this field and on product's page you can see an old price, which was struck off (or something else...), and below is displayed a new one price. If it's not provided, could you give me a hint of how to make this in a right way.")*

Now in my web site:

[ ![1.jpg](/forum/attachment/6493) ](/forum/attachment/6493 "1.jpg")

I wont:

[ ![2.jpg](/forum/attachment/6494) ](/forum/attachment/6494 "2.jpg")

- [ ![1.jpg](/forum/attachment/6493) ](/forum/attachment/6493 "1.jpg") [ ](/forum/attachment/6493?download=1 "1.jpg")
- [ ![2.jpg](/forum/attachment/6494) ](/forum/attachment/6494 "2.jpg") [ ](/forum/attachment/6494?download=1 "2.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDQxLXJlLWFuLW9sZC1wcmljZS1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86363
- Thank you received: 14297
-
-

14 years 2 weeks ago [\#72582](#72582) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: An "old price" field](/forum/4-how-to/70441-re-an-old-price-field#72582 "Hi! Could you tell me is there an &quot;old price&quot; field. I mean, you can fill this field and on product's page you can see an old price, which was struck off (or something else...), and below is displayed a new one price. If it's not provided, could you give me a hint of how to make this in a right way.")*

So you want to add a line return before the old price.

Then, instead of:
echo $this-&gt;row-&gt;old_price, EUR;

you can use:
echo '&lt;br/&gt;'.$this-&gt;row-&gt;old_price, EUR;

The following user(s) said Thank You: [ag2r](/forum/user/10230-ag2r "View ag2r's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDQxLXJlLWFuLW9sZC1wcmljZS1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[janic](/forum/user/33682-janic "View janic's Profile")**
- [![janic's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33682-janic "View janic's Profile")
- [ Offline](/forum/user/33682-janic)

Less More

- Posts: 16
- Thank you received: 1
-
-

7 years 9 months ago [\#303492](#303492) by [janic](/forum/user/33682-janic "View janic's Profile")  Replied by *[janic](/forum/user/33682-janic "View janic's Profile")* on topic *[Re: An "old price" field](/forum/4-how-to/70441-re-an-old-price-field#303492 "Hi! Could you tell me is there an &quot;old price&quot; field. I mean, you can fill this field and on product's page you can see an old price, which was struck off (or something else...), and below is displayed a new one price. If it's not provided, could you give me a hint of how to make this in a right way.")*

is this still the way to achieve this.
I cant find the settings
if ($this-&gt;params-&gt;get('show_price')) {
$this-&gt;row = &amp; $this-&gt;element;
$this-&gt;setLayout('listing_price');
echo $this-&gt;loadTemplate();
}

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDQxLXJlLWFuLW9sZC1wcmljZS1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86363
- Thank you received: 14297
-
-

7 years 9 months ago [\#303493](#303493) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: An "old price" field](/forum/4-how-to/70441-re-an-old-price-field#303493 "Hi! Could you tell me is there an &quot;old price&quot; field. I mean, you can fill this field and on product's page you can see an old price, which was struck off (or something else...), and below is displayed a new one price. If it's not provided, could you give me a hint of how to make this in a right way.")*

Hi,

This code changed a bit and is now: Code:

if($this-&gt;params-&gt;get('show_price') &amp;&amp; (empty($this-&gt;displayVariants['prices']) &#124;&#124; $this-&gt;params-&gt;get('characteristic_display') != 'list')) { $this-&gt;row =&amp; $this-&gt;element; $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); ?&gt; &lt;meta itemprop="availability" content="https://schema.org/&lt;?php echo ($this-&gt;row-&gt;product_quantity != 0) ? 'InStock' : 'OutOfstock' ;?&gt;" /&gt; &lt;meta itemprop="priceCurrency" content="&lt;?php echo $this-&gt;currency-&gt;currency_code; ?&gt;" /&gt; &lt;?php }

You still can add the code we gave in this post [ www.hikashop.com/forum/4-how-to/70441-re...ice-field.html#72243](https://www.hikashop.com/forum/4-how-to/70441-re-an-old-price-field.html#72243) below this new code and it should still work provided that your custom field has the correct name as mentioned in that post.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDQxLXJlLWFuLW9sZC1wcmljZS1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[janic](/forum/user/33682-janic "View janic's Profile")**
- [![janic's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33682-janic "View janic's Profile")
- [ Offline](/forum/user/33682-janic)

Less More

- Posts: 16
- Thank you received: 1
-
-

7 years 9 months ago [\#303637](#303637) by [janic](/forum/user/33682-janic "View janic's Profile")  Replied by *[janic](/forum/user/33682-janic "View janic's Profile")* on topic *[Re: An "old price" field](/forum/4-how-to/70441-re-an-old-price-field#303637 "Hi! Could you tell me is there an &quot;old price&quot; field. I mean, you can fill this field and on product's page you can see an old price, which was struck off (or something else...), and below is displayed a new one price. If it's not provided, could you give me a hint of how to make this in a right way.")*

Maybe a stupid question.
But how do i add 2 custom items there?
i added
&lt;?php
echo $this-&gt;row-&gt;gratisgemonteerd;
echo $this-&gt;row-&gt;gratisgeleverd;
?&gt;
But how do i add a break.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDQxLXJlLWFuLW9sZC1wcmljZS1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

7 years 9 months ago [\#303647](#303647) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: An "old price" field](/forum/4-how-to/70441-re-an-old-price-field#303647 "Hi! Could you tell me is there an &quot;old price&quot; field. I mean, you can fill this field and on product's page you can see an old price, which was struck off (or something else...), and below is displayed a new one price. If it's not provided, could you give me a hint of how to make this in a right way.")*

Hello,

If you want to add a separation between both prices you'll just have to use that kind of code : Code:

&lt;?php echo $this-&gt;row-&gt;gratisgemonteerd . 'YOUR_SEPARATION_TEXT'; echo $this-&gt;row-&gt;gratisgeleverd; ?&gt;

You'll just have to replace the "YOUR_SEPARATION_TEXT" by what you want to be displayed between both of your prices.

Kind regards,
Mohamed Thelji.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDQxLXJlLWFuLW9sZC1wcmljZS1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[janic](/forum/user/33682-janic "View janic's Profile")**
- [![janic's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33682-janic "View janic's Profile")
- [ Offline](/forum/user/33682-janic)

Less More

- Posts: 16
- Thank you received: 1
-
-

7 years 9 months ago [\#303688](#303688) by [janic](/forum/user/33682-janic "View janic's Profile")  Replied by *[janic](/forum/user/33682-janic "View janic's Profile")* on topic *[Re: An "old price" field](/forum/4-how-to/70441-re-an-old-price-field#303688 "Hi! Could you tell me is there an &quot;old price&quot; field. I mean, you can fill this field and on product's page you can see an old price, which was struck off (or something else...), and below is displayed a new one price. If it's not provided, could you give me a hint of how to make this in a right way.")*

thanks for the help.
But wat i want to do is align the 2 custom fields.
now i have this problem  [ ![bikkolayout.JPG](/forum/attachment/46094) ](/forum/attachment/46094 "bikkolayout.JPG")

- [ ![bikkolayout.JPG](/forum/attachment/46094) ](/forum/attachment/46094 "bikkolayout.JPG") [ ](/forum/attachment/46094?download=1 "bikkolayout.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDQxLXJlLWFuLW9sZC1wcmljZS1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86363
- Thank you received: 14297
-
-

7 years 9 months ago [\#303708](#303708) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: An "old price" field](/forum/4-how-to/70441-re-an-old-price-field#303708 "Hi! Could you tell me is there an &quot;old price&quot; field. I mean, you can fill this field and on product's page you can see an old price, which was struck off (or something else...), and below is displayed a new one price. If it's not provided, could you give me a hint of how to make this in a right way.")*

Hi,

Replace the YOUR_SEPARATION_TEXT in the code example of Mohamed by &lt;br/&gt; and you'll have them one on each line.
If you want something else, it would require some additional HTML tags with classes and CSS so that the texts could be styled.

You might want to contact our partners if you which for someone to help you with such customization:
[ www.hikashop.com/home/our-partners.html](https://www.hikashop.com/home/our-partners.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDQxLXJlLWFuLW9sZC1wcmljZS1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.135 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
