hide the price, keep the Unit Price

Phoca Cart - complex e-commerce extension
User avatar
Slava
Phoca Member
Phoca Member
Posts: 31
Joined: 07 Nov 2025, 18:39

hide the price, keep the Unit Price

Post by Slava »

Hello
Joomla ‎6.0.2/Phoca Cart 6.1.0Beta2

What CSS code should I add to hide the price but keep the Unit Price visible on the category list pages, product pages, and Comparison page?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49199
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: hide the price, keep the Unit Price

Post by Jan »

Hi, the prices in Phoca Cart have own CSS class, so just open devtools and see the class the the current part - to hide it then e.g. in user.css

Jan
If you find Phoca extensions useful, please support the project
User avatar
Slava
Phoca Member
Phoca Member
Posts: 31
Joined: 07 Nov 2025, 18:39

Re: hide the price, keep the Unit Price

Post by Slava »

Thank you, Jan, to hide the standard price in the category list, I added it to user.css. It works

Code: Select all

/*hide the standard price label*/
.pc-category-view .ph-standard-txt {
        display: none;
}

/*hide the standard price value*/
.pc-category-view .ph-standard {
        display: none;
}
Slava
User avatar
Slava
Phoca Member
Phoca Member
Posts: 31
Joined: 07 Nov 2025, 18:39

Re: hide the price, keep the Unit Price

Post by Slava »

hide both the label and the value of the standard price on the product page.

Code: Select all

.pc-item-view .ph-standard-txt {
        display: none;
}

.pc-item-view .ph-standard {
        display: none;
}
hide standard price label and value on comparison page.

Code: Select all

.pc-comparison-view .ph-standard-txt {
        display: none;
}

.pc-comparison-view .ph-standard {
        display: none;
}
Post Reply