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

#   Change class to price

##

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

14 years 3 weeks ago [\#73657](#73657) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  *[Change class to price](/forum/4-how-to/73657-change-class-to-price#73657 "Hi! I need to change class for different pages for the price. I have sceenshots to show you what I mean. When I change the span.hikashop&#95;product&#95;price it changes in 1.jpg but it changes also in 3.jpg. I found how to correct this in 2.jpg  Thanks")* was created by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")*

Hi! I need to change class for different pages for the price.
I have sceenshots to show you what I mean.
When I change the
span.hikashop_product_price
it changes in 1.jpg
but it changes also in 3.jpg.
I found how to correct this in 2.jpg

Thanks

- [ ![1.jpg](/forum/attachment/6640) ](/forum/attachment/6640 "1.jpg") [ ](/forum/attachment/6640?download=1 "1.jpg")
- [ ![2.jpg](/forum/attachment/6641) ](/forum/attachment/6641 "2.jpg") [ ](/forum/attachment/6641?download=1 "2.jpg")
- [ ![3.jpg](/forum/attachment/6642) ](/forum/attachment/6642 "3.jpg") [ ](/forum/attachment/6642?download=1 "3.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzczNjU3LWNoYW5nZS1jbGFzcy10by1wcmljZT90bXBsPW1hcmtkb3du) 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 [\#73823](#73823) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Change class to price](/forum/4-how-to/73657-change-class-to-price#73823 "Hi! I need to change class for different pages for the price. I have sceenshots to show you what I mean. When I change the span.hikashop&#95;product&#95;price it changes in 1.jpg but it changes also in 3.jpg. I found how to correct this in 2.jpg  Thanks")*

Hi,

If you want to change the style only in the product page, you can apply the properties to: Code:

.hikashop_product_price_main .hikashop_product_price{ /* your css */ }

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

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

14 years 2 weeks ago [\#73961](#73961) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Re: Change class to price](/forum/4-how-to/73657-change-class-to-price#73961 "Hi! I need to change class for different pages for the price. I have sceenshots to show you what I mean. When I change the span.hikashop&#95;product&#95;price it changes in 1.jpg but it changes also in 3.jpg. I found how to correct this in 2.jpg  Thanks")*

ok it works but when I use more prices see prtscreen. Can we seperate prices with more classes?
[ ![32332.jpg](/forum/attachment/6656) ](/forum/attachment/6656 "32332.jpg")

- [ ![32332.jpg](/forum/attachment/6656) ](/forum/attachment/6656 "32332.jpg") [ ](/forum/attachment/6656?download=1 "32332.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzczNjU3LWNoYW5nZS1jbGFzcy10by1wcmljZT90bXBsPW1hcmtkb3du) 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: 86579
- Thank you received: 14322
-
-

14 years 2 weeks ago [\#74085](#74085) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Change class to price](/forum/4-how-to/73657-change-class-to-price#74085 "Hi! I need to change class for different pages for the price. I have sceenshots to show you what I mean. When I change the span.hikashop&#95;product&#95;price it changes in 1.jpg but it changes also in 3.jpg. I found how to correct this in 2.jpg  Thanks")*

Sure. Each price has it's class too.
hikashop_product_price_for_at_least_1
hikashop_product_price_for_at_least_12
hikashop_product_price_for_at_least_24

or even:
hikashop_product_price_0
hikashop_product_price_1
hikashop_product_price_2

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

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

14 years 2 weeks ago [\#74123](#74123) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Re: Change class to price](/forum/4-how-to/73657-change-class-to-price#74123 "Hi! I need to change class for different pages for the price. I have sceenshots to show you what I mean. When I change the span.hikashop&#95;product&#95;price it changes in 1.jpg but it changes also in 3.jpg. I found how to correct this in 2.jpg  Thanks")*

Nice, but, one last but, if it can be done.
When I have 1 price the class is hikashop_product_price_0

When I have 2 prices and more, the first price takes the same class "hikashop_product_price_0", so its imposossible to move it as I want because it ll move the one with the 2-3 prices product.

Is it possible to have different class for the solo price?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzczNjU3LWNoYW5nZS1jbGFzcy10by1wcmljZT90bXBsPW1hcmtkb3du) 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: 86579
- Thank you received: 14322
-
-

14 years 2 weeks ago [\#74194](#74194) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Change class to price](/forum/4-how-to/73657-change-class-to-price#74194 "Hi! I need to change class for different pages for the price. I have sceenshots to show you what I mean. When I change the span.hikashop&#95;product&#95;price it changes in 1.jpg but it changes also in 3.jpg. I found how to correct this in 2.jpg  Thanks")*

You can use that class hikashop_product_several_prices which is only there when you have several prices.

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

- **[colpc](/forum/user/6409-colpc "View colpc's Profile")**
- [![colpc's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6409.gif)](/forum/user/6409-colpc "View colpc's Profile")
- [ Offline](/forum/user/6409-colpc)

Less More

- Posts: 77
- Thank you received: 3
-
-
-
-

13 years 9 months ago [\#87862](#87862) by [colpc](/forum/user/6409-colpc "View colpc's Profile")  Replied by *[colpc](/forum/user/6409-colpc "View colpc's Profile")* on topic *[Re: Change class to price](/forum/4-how-to/73657-change-class-to-price#87862 "Hi! I need to change class for different pages for the price. I have sceenshots to show you what I mean. When I change the span.hikashop&#95;product&#95;price it changes in 1.jpg but it changes also in 3.jpg. I found how to correct this in 2.jpg  Thanks")*

What would be the syntax ( if possible )

To tell the price to just look at ones Joomla Template to get the link color ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzczNjU3LWNoYW5nZS1jbGFzcy10by1wcmljZT90bXBsPW1hcmtkb3du) 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)
-

13 years 9 months ago [\#87928](#87928) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Change class to price](/forum/4-how-to/73657-change-class-to-price#87928 "Hi! I need to change class for different pages for the price. I have sceenshots to show you what I mean. When I change the span.hikashop&#95;product&#95;price it changes in 1.jpg but it changes also in 3.jpg. I found how to correct this in 2.jpg  Thanks")*

You can edit the css property of:

.hikashop_product_several_prices .hikashop_product_price_0{
/* CSS property */
}

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

12 years 11 months ago [\#134139](#134139) by [carlomin](/forum/user/29758-carlomin "View carlomin's Profile")  Replied by *[carlomin](/forum/user/29758-carlomin "View carlomin's Profile")* on topic *[Change class to price](/forum/4-how-to/73657-change-class-to-price#134139 "Hi! I need to change class for different pages for the price. I have sceenshots to show you what I mean. When I change the span.hikashop&#95;product&#95;price it changes in 1.jpg but it changes also in 3.jpg. I found how to correct this in 2.jpg  Thanks")*

in the cart module and in the last product module i have the same class:
hikashop_product_price_0
how i change this class for every different module?
for example change
hikashop_product_price_0 to hikashop_product_price_1

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzczNjU3LWNoYW5nZS1jbGFzcy10by1wcmljZT90bXBsPW1hcmtkb3du) 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)
-

12 years 11 months ago [\#134224](#134224) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Change class to price](/forum/4-how-to/73657-change-class-to-price#134224 "Hi! I need to change class for different pages for the price. I have sceenshots to show you what I mean. When I change the span.hikashop&#95;product&#95;price it changes in 1.jpg but it changes also in 3.jpg. I found how to correct this in 2.jpg  Thanks")*

Hi,

The best way is to add a suffix in the module class in the Joomla options.
Then in css combine the classes to edit the property in only one place, for example: Code:

.your_module_suffix .hikashop_product_price_0{ /* your properties */ }

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

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

12 years 11 months ago [\#134258](#134258) by [carlomin](/forum/user/29758-carlomin "View carlomin's Profile")  Replied by *[carlomin](/forum/user/29758-carlomin "View carlomin's Profile")* on topic *[Change class to price](/forum/4-how-to/73657-change-class-to-price#134258 "Hi! I need to change class for different pages for the price. I have sceenshots to show you what I mean. When I change the span.hikashop&#95;product&#95;price it changes in 1.jpg but it changes also in 3.jpg. I found how to correct this in 2.jpg  Thanks")*

if i add a suffix in the module,
the new class work only on the first div of the module
and it does not work on the class inside the module.
why?

[ ![hc58a142.jpg](/forum/attachment/13993) ](/forum/attachment/13993 "hc58a142.jpg")

[ ![h2a1b535.jpg](/forum/attachment/13994) ](/forum/attachment/13994 "h2a1b535.jpg")

- [ ![hc58a142.jpg](/forum/attachment/13993) ](/forum/attachment/13993 "hc58a142.jpg") [ ](/forum/attachment/13993?download=1 "hc58a142.jpg")
- [ ![h2a1b535.jpg](/forum/attachment/13994) ](/forum/attachment/13994 "h2a1b535.jpg") [ ](/forum/attachment/13994?download=1 "h2a1b535.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzczNjU3LWNoYW5nZS1jbGFzcy10by1wcmljZT90bXBsPW1hcmtkb3du) 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)
-

12 years 11 months ago [\#134320](#134320) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Change class to price](/forum/4-how-to/73657-change-class-to-price#134320 "Hi! I need to change class for different pages for the price. I have sceenshots to show you what I mean. When I change the span.hikashop&#95;product&#95;price it changes in 1.jpg but it changes also in 3.jpg. I found how to correct this in 2.jpg  Thanks")*

Hi,

No in your case: Code:

.last .hikashop_product_price_0{ /* your properties */ }

should work. It can be applied on any class inside the previous class.
Check if there is no another css property which override this one thanks to your browser console.

You can too add !important in your properties to force the use of this property.
ex: color: #ccc !important;

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

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

12 years 11 months ago [\#134433](#134433) by [carlomin](/forum/user/29758-carlomin "View carlomin's Profile")  Replied by *[carlomin](/forum/user/29758-carlomin "View carlomin's Profile")* on topic *[Change class to price](/forum/4-how-to/73657-change-class-to-price#134433 "Hi! I need to change class for different pages for the price. I have sceenshots to show you what I mean. When I change the span.hikashop&#95;product&#95;price it changes in 1.jpg but it changes also in 3.jpg. I found how to correct this in 2.jpg  Thanks")*

Thank you now i have understood!
it works,if i have any other questions,i'll write to you.
You are a kind man
Carlo

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

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