Skip to main content

remove: Quantity & Total price

12 years 11 months ago - 12 years 11 months ago #133811 by IgorMM
-- url of the page with the problem -- : mywebsite.com/mypage
-- HikaShop version -- : 2.22
-- Joomla version -- : 2.5.x
-- PHP version -- : 5.3.27
-- Browser(s) name and version -- : FF 25.0.1

hi all,

how can i remove from the checkout this fields
- Quantity
- Total price (Or unit price)

i dont need this info

thx
regards
Last edit: 12 years 11 months ago by IgorMM.

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

12 years 11 months ago #133866 by Mohamed Thelji
Hi,

You'll be able to do that by editing the code of the "cart" file of your "checkout" view of your front-end template through "Hikashop->Display->Views".
The following user(s) said Thank You: IgorMM

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

12 years 11 months ago #133868 by IgorMM
hi
thx for the reply

i have basic knowleg for html, so i dont have a clue what to delete there :dry:

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

12 years 11 months ago #133888 by nicolas
Hi,

Remove these lines:
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> <th id="hikashop_cart_product_quantity_title" class="hikashop_cart_product_quantity_title hikashop_cart_title"> <?php echo JText::_('PRODUCT_QUANTITY'); ?> </th>
Code:
$td .= '<td></td><td></td>';
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> <td data-title="<?php echo JText::_('PRODUCT_QUANTITY'); ?>" class="hikashop_cart_product_quantity_value"> <?php if(empty($this->disable_modifications)){ ?> <input id="hikashop_checkout_quantity_<?php echo $row->cart_product_id;?>" type="text" name="item[<?php echo $row->cart_product_id;?>]" class="hikashop_product_quantity_field" value="<?php echo $row->cart_product_quantity; ?>" onchange="var qty_field = document.getElementById('hikashop_checkout_quantity_<?php echo $row->cart_product_id;?>'); if (qty_field){<?php echo $input; ?>}; return true;" /> <div class="hikashop_cart_product_quantity_refresh"> <a href="#" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_<?php echo $row->cart_product_id;?>'); if (qty_field && qty_field.value != '<?php echo $row->cart_product_quantity; ?>'){<?php echo $input; ?> qty_field.form.submit(); } return false;" title="<?php echo JText::_('HIKA_REFRESH'); ?>"> <img src="<?php echo HIKASHOP_IMAGES . 'refresh.png';?>" border="0" alt="<?php echo JText::_('HIKA_REFRESH'); ?>" /> </a> </div> <?php if($this->params->get('show_delete',1)){ ?> <div class="hikashop_cart_product_quantity_delete"> <a href="<?php echo hikashop_completeLink('product&task=updatecart&product_id='.$row->product_id.'&quantity=0&return_url='.urlencode(base64_encode(urldecode($this->params->get('url'))))); ?>" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_<?php echo $row->cart_product_id;?>'); if(qty_field){qty_field.value=0; <?php echo $input; ?> qty_field.form.submit();} return false;" title="<?php echo JText::_('HIKA_DELETE'); ?>"> <img src="<?php echo HIKASHOP_IMAGES . 'delete2.png';?>" border="0" alt="<?php echo JText::_('HIKA_DELETE'); ?>" /> </a> </div> <?php } }else{ echo $row->cart_product_quantity; } ?> </td>
The following user(s) said Thank You: IgorMM

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

Time to create page: 0.051 seconds
Powered by Kunena Forum