- Posts: 127
- Thank you received: 6
Removal of per unit display.
12 years 8 months ago #140257
by Bobwales
Removal of per unit display. was created by Bobwales
Hi
Hoping someone might help show me how to remove the price per unit displaying on the checkout screens.
Any pointers gratefully received as I've searched for an hour or so...
Cheers
Bob
Hoping someone might help show me how to remove the price per unit displaying on the checkout screens.
Any pointers gratefully received as I've searched for an hour or so...
Cheers
Bob
Please Log in or Create an account to join the conversation.
12 years 8 months ago - 12 years 8 months ago #140279
by nicolas
Replied by nicolas on topic Removal of per unit display.
Hi,
You need to edit the file "cart" of the view "checkout" via the menu Display>Views and remove the code:
and:
and change:
to:
and:
to:
You need to edit the file "cart" of the view "checkout" via the menu Display>Views and remove the code:
Code:
<th id="hikashop_cart_product_price_title" class="hikashop_cart_product_price_title hikashop_cart_title">
<?php echo JText::_('CART_PRODUCT_UNIT_PRICE'); ?>
</th>
Code:
<td data-title="<?php echo JText::_('CART_PRODUCT_UNIT_PRICE'); ?>" class="hikashop_cart_product_price_value">
<?php
$this->row=&$row;
$this->unit=true;
echo $this->loadTemplate();
?>
<?php if(HIKASHOP_RESPONSIVE){ ?><span class="visible-phone"><?php echo JText::_('PER_UNIT'); ?></span><?php } ?>
</td>
Code:
$td .= '<td></td><td></td>';
Code:
$td .= '<td></td>';
Code:
$td .= '<td class="hidden-phone"></td><td class="hidden-phone"></td>';
Code:
$td .= '<td class="hidden-phone"></td>';
Last edit: 12 years 8 months ago by nicolas.
Please Log in or Create an account to join the conversation.
12 years 1 month ago #167601
by boopoo
Replied by boopoo on topic Removal of per unit display.
Hi Nicolas.
Would you be able to update this post when you find time in your busy day? I had the same request, but I see the last part of the code changes are not possible as this exact code does not exist any more in the file (this view has obviously been updated since):
$td .= '<td></td><td></td>';
and also this isn't in file:
$td .= '<td class="hidden-phone"></td><td class="hidden-phone"></td>';
Would you be able to update this post when you find time in your busy day? I had the same request, but I see the last part of the code changes are not possible as this exact code does not exist any more in the file (this view has obviously been updated since):
$td .= '<td></td><td></td>';
and also this isn't in file:
$td .= '<td class="hidden-phone"></td><td class="hidden-phone"></td>';
Please Log in or Create an account to join the conversation.
12 years 1 month ago #167609
by nicolas
Replied by nicolas on topic Removal of per unit display.
Hi,
Now, instead of these two modifications, you need to change the code:
to:
Now, instead of these two modifications, you need to change the code:
Code:
<tr <?php if(HIKASHOP_RESPONSIVE){ echo 'class="hidden-phone"'; } ?>>
<td colspan="<?php echo $row_count; ?>">
<hr />
</td>
</tr>
<?php
if(HIKASHOP_RESPONSIVE){
$td = '';
if($this->params->get('show_cart_image'))
$td = '<td colspan="3" class="hidden-phone hikashop_cart_empty_footer"></td>';
else
$td .= '<td colspan="2" class="hidden-phone hikashop_cart_empty_footer"></td>';
}else{
$td = '';
if($this->params->get('show_cart_image'))
$td .= '<td colspan="3" class="hikashop_cart_empty_footer"></td>';
else
$td .= '<td colspan="2" class="hikashop_cart_empty_footer"></td>';
}
Code:
<tr <?php if(HIKASHOP_RESPONSIVE){ echo 'class="hidden-phone"'; } ?>>
<td colspan="<?php echo ($row_count-1); ?>">
<hr />
</td>
</tr>
<?php
if(HIKASHOP_RESPONSIVE){
$td = '';
if($this->params->get('show_cart_image'))
$td = '<td colspan="2" class="hidden-phone hikashop_cart_empty_footer"></td>';
else
$td .= '<td colspan="1" class="hidden-phone hikashop_cart_empty_footer"></td>';
}else{
$td = '';
if($this->params->get('show_cart_image'))
$td .= '<td colspan="2" class="hikashop_cart_empty_footer"></td>';
else
$td .= '<td colspan="1" class="hikashop_cart_empty_footer"></td>';
}
Please Log in or Create an account to join the conversation.
12 years 1 month ago #167674
by boopoo
Replied by boopoo on topic Removal of per unit display.
Excellent. Thanks
Please Log in or Create an account to join the conversation.
Time to create page: 0.154 seconds