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

#   Hide "common price" on product details listing

##

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

Less More

- Posts: 8
- Thank you received: 0
-
-

9 years 8 months ago [\#266012](#266012) by [redhookcreative](/forum/user/37585-redhookcreative "View redhookcreative's Profile")  *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#266012 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")* was created by *[redhookcreative](/forum/user/37585-redhookcreative "View redhookcreative's Profile")*

I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the "common price: $xx.xx"?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODk1NjUtaGlkZS1jb21tb24tcHJpY2Utb24tcHJvZHVjdC1kZXRhaWxzLWxpc3Rpbmc/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

9 years 8 months ago [\#266013](#266013) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#266013 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")*

Hi,

You can add such CSS to hide it:
.hikashop_product_msrp_price{ display:none; }

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

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

Less More

- Posts: 8
- Thank you received: 0
-
-

9 years 8 months ago [\#266039](#266039) by [redhookcreative](/forum/user/37585-redhookcreative "View redhookcreative's Profile")  Replied by *[redhookcreative](/forum/user/37585-redhookcreative "View redhookcreative's Profile")* on topic *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#266039 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")*

Thank you, Please put in a request to add an option in the HikaShop Configuration settings such that the administrators can turn this feature on our off. It is not a good thing that the code must be altered.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODk1NjUtaGlkZS1jb21tb24tcHJpY2Utb24tcHJvZHVjdC1kZXRhaWxzLWxpc3Rpbmc/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

9 years 8 months ago [\#266050](#266050) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#266050 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")*

Hi,

There is no need for such option.
If you don't enter a retail price in the product, then it won't display.
The only purpose of that field is to display what you enter in it as retail price on the product page of the frontend.
If you don't want to display a retail price on the product page, then why do you enter it in the product in the first place ?

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

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

Less More

- Posts: 74
- Thank you received: 2
-
-

9 years 5 months ago [\#272423](#272423) by [jdean](/forum/user/21727-jdean "View jdean's Profile")  Replied by *[jdean](/forum/user/21727-jdean "View jdean's Profile")* on topic *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#272423 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")*

Where would you add that css to hide the common/ retail price?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODk1NjUtaGlkZS1jb21tb24tcHJpY2Utb24tcHJvZHVjdC1kZXRhaWxzLWxpc3Rpbmc/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

9 years 5 months ago [\#272429](#272429) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#272429 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")*

Hi,

You can follow our "customize the display" documentation which explains where to add your custom CSS:
[ www.hikashop.com/support/documentation/1...ize-the-display.html](https://www.hikashop.com/support/documentation/153-customize-the-display.html)
It also explains how to find the class that you want to use in your custom CSS.
In your case, you'll want to use hikashop_product_msrp_price

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

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

Less More

- Posts: 74
- Thank you received: 2
-
-

9 years 5 months ago [\#272514](#272514) by [jdean](/forum/user/21727-jdean "View jdean's Profile")  Replied by *[jdean](/forum/user/21727-jdean "View jdean's Profile")* on topic *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#272514 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")*

Ok, great. Thanks for your help.

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

8 years 10 months ago [\#286623](#286623) by [bmiexpress](/forum/user/37308-bmiexpress "View bmiexpress's Profile")  Replied by *[bmiexpress](/forum/user/37308-bmiexpress "View bmiexpress's Profile")* on topic *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#286623 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")*

Is there a way to make it default not to show common price or our price for each product? This is far more complex than it should be -- for non-technical users, there should be an option to click a check box to have this appear or not appear!!!!!!!!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODk1NjUtaGlkZS1jb21tb24tcHJpY2Utb24tcHJvZHVjdC1kZXRhaWxzLWxpc3Rpbmc/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

8 years 10 months ago [\#286625](#286625) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#286625 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")*

Hi,

The retail price's one and only function is to be displayed on the product page.
If you don't want it on the product page, then don't enter it in the product.
That's why there is no checkbox to display it or not:
[ www.hikashop.com/forum/product-category-...-listing.html#266050](https://www.hikashop.com/forum/product-category-display/889565-hide-common-price-on-product-details-listing.html#266050)
So far, no one could explain to us why it would be useful to have a retail price in a product and not display it on the product page.
So we still don't see any reason why we should add an option for that.
Could you provide more information on that ?

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

8 years 10 months ago [\#286708](#286708) by [bmiexpress](/forum/user/37308-bmiexpress "View bmiexpress's Profile")  Replied by *[bmiexpress](/forum/user/37308-bmiexpress "View bmiexpress's Profile")* on topic *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#286708 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")*

We publish business-to-business information. It has a price, but that's neither a "retail price" nor a "common price" - by the way, I've never before heard the term common price!

So while we might want Price to show, we would NEVER want either retail price or common price to show on our website pages.

Likewise, for products with variants, the feature you're providing for "retail price" and "common price" only lists one price, rather than the pricing for each variant option.

I hope that helps to explain why we'd never want to show the fields you've created as defaults in the way you've set them up.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODk1NjUtaGlkZS1jb21tb24tcHJpY2Utb24tcHJvZHVjdC1kZXRhaWxzLWxpc3Rpbmc/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

8 years 10 months ago [\#286713](#286713) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#286713 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")*

Hi,

The terms "common price" and "our price" that are displayed by default next to the prices on the product page are just the default texts that you can easily change with translation overrides in order to suits your needs:
[ www.hikashop.com/download/languages.html#modify](https://www.hikashop.com/download/languages.html#modify)

And regarding the variants, I've made a test but with a retail price for each variant and the variants displayed as a list on the product page, you clearly see the pricing for each variant:
[ monosnap.com/file/jWMBLMf5qVkcxD8jTGLDpMXwlxughK](https://monosnap.com/file/jWMBLMf5qVkcxD8jTGLDpMXwlxughK)
So I'm not sure what you're talking about.

And that still doesn't explain why you would want a setting to not display the retail price on the product page instead of just not entering the retail price in the product in the first place ?

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

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

Less More

- Posts: 26
- Thank you received: 1
-
-

8 years 4 months ago [\#294987](#294987) by [ericdewaal](/forum/user/57169-ericdewaal "View ericdewaal's Profile")  Replied by *[ericdewaal](/forum/user/57169-ericdewaal "View ericdewaal's Profile")* on topic *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#294987 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")*

Hi Nicolas,
You wrote:
"So far, no one could explain to us why it would be useful to have a retail price in a product and not display it on the product page.
So we still don't see any reason why we should add an option for that.
Could you provide more information on that ? "

Well, I can give you a good reason: we sell at retail prices! Except for a group of logged-in customers who have a lower price.
As soon as those customer are logged in, it's OK. The see: Common price: 8,95 € Your price 7.40 €.
But before logging in, AND the other, 'regular' customers, see: Common price: 8,95 € Your price 8,95 € !
That's a bit silly and suggests they do not get the best deal.
So IMHO there should be ab option, or even always, hide it when the prices are equal.

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

8 years 4 months ago -  8 years 4 months ago [\#295114](#295114) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#295114 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")*

Hello,

With your explanation, we can understand your point, now you have to understand that HikaShop have to work for most common case, and of course that don't mean add any option that our customer request.
Because that will lead to complicated configuration, and difficulties on our side from a non-optimized code.

Now, I can give you **2** solutions :
- Use Css to remove **Common price**, but for all product and any case
- Or create an override view of **Listing\_div** (or **listing\_list**), as :
=&gt; Code:

if ($common_price == $your_price) { // Only display your price : echo $your_price; } else { echo $common_price; echo $your_price; }

Hope this will fit your needs.
Regards

Last edit: 8 years 4 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

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

Less More

- Posts: 26
- Thank you received: 1
-
-

8 years 3 months ago [\#296656](#296656) by [ericdewaal](/forum/user/57169-ericdewaal "View ericdewaal's Profile")  Replied by *[ericdewaal](/forum/user/57169-ericdewaal "View ericdewaal's Profile")* on topic *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#296656 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")*

Hello Philipe,

It took some time, but now I tried to apply your second suggestion.
But I cannot find the view file for the override. None of them seems to have the variables $your_price or $common_price.
For example, nothing in products/listing_div.

Please indicate where I can apply the changes, thanks a lot in advance!

Eric

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODk1NjUtaGlkZS1jb21tb24tcHJpY2Utb24tcHJvZHVjdC1kZXRhaWxzLWxpc3Rpbmc/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

8 years 3 months ago [\#296659](#296659) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#296659 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")*

Hi,

That was just an example and you can't just use that code like that.

And regarding your example, it doesn't match with the subject which was about having an option to always display/hide the retail price. In your case you only want to hide it in some cases, and thus it requires some special coding.
Well, actually, automatically hiding the retail price when equal to the product price makes sense.
To do that is actually quite easy. Edit the file listing_price of the view product via the menu Display&gt;Views and replace the code:
@$this-&gt;row-&gt;product_msrp &gt; 0.0
by:
@$this-&gt;row-&gt;product_msrp &gt; $price-&gt;price_value_with_tax
Note that you need to do that at 2 different places in that file.

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

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

Less More

- Posts: 26
- Thank you received: 1
-
-

8 years 3 months ago [\#296666](#296666) by [ericdewaal](/forum/user/57169-ericdewaal "View ericdewaal's Profile")  Replied by *[ericdewaal](/forum/user/57169-ericdewaal "View ericdewaal's Profile")* on topic *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#296666 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")*

Hi,

The string @$this-&gt;row-&gt;product_msrp &gt; 0.0 actually occurs 3 times: in lines 16, 18 and 50.
After replacing them with @$this-&gt;row-&gt;product_msrp &gt; $price-&gt;price_value_with_tax, the product details still show both prices!
How can I solve this?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 3 months ago [\#296668](#296668) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#296668 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")*

Hello,

I'm sorry but Nicolas code was not correct ; unfortunately, the patch is more complicated since the display of the MSRP price is made before the loop on the prices.
We can see to add your request in the TODO list but I'm afraid that we won't be able to give you a "little patch" for it, it would require more code and would impact more than one single line.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 26
- Thank you received: 1
-
-

8 years 3 months ago [\#296693](#296693) by [ericdewaal](/forum/user/57169-ericdewaal "View ericdewaal's Profile")  Replied by *[ericdewaal](/forum/user/57169-ericdewaal "View ericdewaal's Profile")* on topic *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#296693 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")*

Hi Jerome,

I see, well, please put it on the TODO list and hopefully it will be included in a future update!
Thanks in advance.

Best regards,
Eric

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

- **[MauiMark](/forum/user/8797-mauimark "View MauiMark's Profile")**
- [![MauiMark's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/8797-mauimark "View MauiMark's Profile")
- [ Offline](/forum/user/8797-mauimark)

Less More

- Posts: 9
- Thank you received: 0
-
-

8 years 3 months ago [\#296696](#296696) by [MauiMark](/forum/user/8797-mauimark "View MauiMark's Profile")  Replied by *[MauiMark](/forum/user/8797-mauimark "View MauiMark's Profile")* on topic *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#296696 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")*

How about doing it this way.

While in product go down the page to pricing area. Leave retail price blank. The line below the retail price you can click the + button on the right allowing you to add pricing and restrictions.

If I'm thinking correctly, I would do it this way...

1. Create two separate prices in the restrictions area.

2. Under the discounted Price I would check mark "only" the access level that pertains your logged in users who get the discounted price.

3. Under the second non discounted price I would check mark all access levels "except" the access level for your logged in users...

4. Find the right Display view and change the text next to the price with an override to what you want.

So, if they are logged in they see one price, if not logged in see another price. No double pricing.

Just a theory, have not tested. Good luck and let me know if it solved your problem.

Eric

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

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

Less More

- Posts: 26
- Thank you received: 1
-
-

8 years 3 months ago [\#296697](#296697) by [ericdewaal](/forum/user/57169-ericdewaal "View ericdewaal's Profile")  Replied by *[ericdewaal](/forum/user/57169-ericdewaal "View ericdewaal's Profile")* on topic *[Hide "common price" on product details listing](/forum/26-product-category-display/889565-hide-common-price-on-product-details-listing#296697 "I recently updated a client's site to HikaShop Business 3.0.1. Now on a product details page there is Common price: $xx.xx Our price: $xx.xx each. How do I hide or remove the &quot;common price: $xx.xx&quot;?")*

Hi,

Obviously this works and we are doing it. But you miss the opportunity of showing:
Regular price: € 8,40 Your price: € 7.95
And that's the whole point of it.
Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODk1NjUtaGlkZS1jb21tb24tcHJpY2Utb24tcHJvZHVjdC1kZXRhaWxzLWxpc3Rpbmc/dG1wbD1tYXJrZG93bg==) 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.105 seconds

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