Removal of per unit display.

  • Posts: 127
  • Thank you received: 6
11 years 7 months ago #140257

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

Please Log in or Create an account to join the conversation.

  • Posts: 84301
  • Thank you received: 13697
  • MODERATOR
11 years 7 months ago #140279

Hi,

You need to edit the file "cart" of the view "checkout" via the menu Display>Views and remove the 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>
and:
<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>
and change:
$td .= '<td></td><td></td>';
to:
$td .= '<td></td>';
and:
$td .= '<td class="hidden-phone"></td><td class="hidden-phone"></td>';
to:
$td .= '<td class="hidden-phone"></td>';

Last edit: 11 years 7 months ago by nicolas.

Please Log in or Create an account to join the conversation.

  • Posts: 272
  • Thank you received: 7
11 years 3 weeks ago #167601

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>';

Please Log in or Create an account to join the conversation.

  • Posts: 84301
  • Thank you received: 13697
  • MODERATOR
11 years 3 weeks ago #167609

Hi,

Now, instead of these two modifications, you need to change the 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>';
		}
to:
<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.

  • Posts: 272
  • Thank you received: 7
11 years 3 weeks ago #167674

Excellent. Thanks

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum