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

#   custom price listing with product variants

##

- **[destination\_sirius](/forum/user/18797-destination-sirius "View destination&#95;sirius's Profile")**
- [![destination&#95;sirius's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-05-23.jpg)](/forum/user/18797-destination-sirius "View destination&#95;sirius's Profile") Topic Author
- [ Offline](/forum/user/18797-destination-sirius)

Less More

- Posts: 11
- Thank you received: 0
-
-

13 years 4 months ago [\#110389](#110389) by [destination\_sirius](/forum/user/18797-destination-sirius "View destination&#95;sirius's Profile")  *[custom price listing with product variants](/forum/4-how-to/84030-custom-price-listing-with-product-variants#110389 "Hello,  I copied listing&#95;price.php, and renamed it into listing&#95;price1.php I inserted it into show&#95;default.php instead of listing&#95;price.php:  Then I edited listing&#95;price1.php by replacing hikashop&#95;product&#95;price with my custom hikashop&#95;product&#95;price&#95;big class  It works fine.  But I have product characteristics drop-down list on product view on frontend,  If customer selects one of the variants, my custom hikashop&#95;product&#95;price&#95;big class is no longer applied  Could you point me what to do in order to apply the hikashop&#95;product&#95;price&#95;big class to all products' variants price listing?")* was created by *[destination\_sirius](/forum/user/18797-destination-sirius "View destination&#95;sirius's Profile")*

Hello,

I copied **listing\_price.php**, and renamed it into **listing\_price1.php**
I inserted it into **show\_default.php** instead of **listing\_price.php**: Code:

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

Then I edited **listing\_price1.php** by **replacing hikashop\_product\_price** with my custom **hikashop\_product\_price\_big** class Code:

$classes = array('hikashop_product_price_big hikashop_product_price_'.$i);

It works fine.

But I have product characteristics drop-down list on product view on frontend,

If customer selects one of the variants, my custom **hikashop\_product\_price\_big** class is no longer applied

Could you point me what to do in order to apply the **hikashop\_product\_price\_big** class to all products' variants price listing?

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

13 years 4 months ago [\#110395](#110395) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[custom price listing with product variants](/forum/4-how-to/84030-custom-price-listing-with-product-variants#110395 "Hello,  I copied listing&#95;price.php, and renamed it into listing&#95;price1.php I inserted it into show&#95;default.php instead of listing&#95;price.php:  Then I edited listing&#95;price1.php by replacing hikashop&#95;product&#95;price with my custom hikashop&#95;product&#95;price&#95;big class  It works fine.  But I have product characteristics drop-down list on product view on frontend,  If customer selects one of the variants, my custom hikashop&#95;product&#95;price&#95;big class is no longer applied  Could you point me what to do in order to apply the hikashop&#95;product&#95;price&#95;big class to all products' variants price listing?")*

Hi,

That's because you need to the same modification in the "show" file of the product view.

Note however that I don't think that you need to do these modifications at all...
You could use the default code and simply use such CSS:
.hikashop_product_page .hikashop_product_price{
// your CSS
}

so that the CSS applies only for your prices on the product page.

The following user(s) said Thank You: [destination\_sirius](/forum/user/18797-destination-sirius "View destination&#95;sirius's Profile")

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

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

[](#top)
