increment/decrement input in checkout view

  • Posts: 5
  • Thank you received: 0
8 years 4 months ago #246361

Hello, How i can do increment/decrement input in checkout view ?

Attachments:

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 4 months ago #246369

Hi,

You'll have to edit the file "cart" of the view "checkout" via the menu Display>Views and replace the refresh button code by two HTML links with an onclick attribute which would have some javascript code to update the quantity field:

<a href="#" onclick="var qty_field = document.getElementById('hikashop_cart_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>

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

  • Posts: 5
  • Thank you received: 0
8 years 4 months ago #246479

Can you help me, step by step ?

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 4 months ago #246484

Hi,

I'm sorry but we provide user support not custom development. We can give some hints and potentially one or two lines of code, but for more custom development, you'll have to see with a third party developer.
If you need a developer to help you add custom code modification, you can contact our partners here:
www.hikashop.com/home/our-partners.html

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

Time to create page: 0.060 seconds
Powered by Kunena Forum