Unit price on category listing / products option

GK User
Mon May 29, 2017 11:05 am
Hello,

How can I hide unit price on category listing / product options because only text can be seen not the price.
https://snag.gy/suOVyl.jpg
On product listing page shows it properly.
https://snag.gy/Bvjobu.jpg

Page where the problem is found:
https://www.hungarianflavours.com/webar ... oelcslevek
Page where the problem is not found:
https://www.hungarianflavours.com/webar ... oelcsle-1l

I suppose both price is done by listing_price.php

Code :
if(isset($price->price_min_quantity) && empty($this->cart_product_price) && $this->params->get('per_unit',1)){
if($price->price_min_quantity>1){
echo '<span class="hikashop_product_price_per_unit_x">'.JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price->price_min_quantity).'</span>';
}else{
echo '<span class="hikashop_product_price_per_unit">'.JText::_('PRICE_SEPARATOR').JText::_('PER_UNIT').'</span>';
}
}
if($this->params->get('show_price_weight')){
if(!empty($this->element->product_id) && isset($this->row->product_weight) && bccomp($this->row->product_weight,0,3)){

echo '<span class="hikashop_product_price_per_weight_unit">';
if($this->params->get('price_with_tax')){
$weight_price = $price->price_value_with_tax / $this->row->product_weight;
echo ' '.$this->currencyHelper->format($weight_price,$price->price_currency_id).' / '.JText::_($this->row->product_weight_unit);
}
if($this->params->get('price_with_tax')==2){
echo ' '.JText::_('PRICE_BEFORE_TAX');
}
if($this->params->get('price_with_tax')==2||!$this->params->get('price_with_tax')){
$weight_price = $price->price_value / $this->row->product_weight;
echo ' '.$this->currencyHelper->format($weight_price,$price->price_currency_id).' / '.JText::_($this->row->product_weight_unit);
}
if($this->params->get('price_with_tax')==2){
echo ' '.JText::_('PRICE_AFTER_TAX');
}
echo '</span>';
}
}


Krisztian
User avatar
Fresh Boarder

teitbite
Fri Jun 02, 2017 3:22 pm
Hi

Please add this code to override.css and make sure override is enabled in template settings.

Code: Select all
#hikashop_category_information_module_ .hikashop_product_price_per_unit {
display: none;
}
User avatar
Moderator


cron