Compare view editing.

  • Posts: 424
  • Thank you received: 11
  • Hikaserial Subscription Hikashop Business
8 years 6 months ago #256330

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4
-- PHP version -- : 6.x
-- Error-message(debug-mod must be tuned on) -- : no error

Hello,

I like to edit the compare view a little, but can not find the right part in the view. Please help.


As you see on the image, i like to have the add to cart button below the quantity input field. But where and how can i do that the best way?
Thanks

Attachments:

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

  • Posts: 83995
  • Thank you received: 13605
  • MODERATOR
8 years 6 months ago #256369

Hi,

Well, the short answer is "it depends".
That display comes from the code:

case 'show_default':
?>
		<table>
			<tr>
				<td rowspan="2">
					<input id="<?php echo $id; ?>" type="text" value="<?php echo $current_quantity; ?>" class="hikashop_product_quantity_field" name="quantity" data-hk-qty-min="<?php echo $min_quantity; ?>" data-hk-qty-max="<?php echo $max_quantity; ?>" onchange="window.hikashop.checkQuantity(this);" />
				</td>
				<td>
					<a class="hikashop_product_quantity_field_change_plus hikashop_product_quantity_field_change" href="#" data-hk-qty-mod="1" onclick="return window.hikashop.updateQuantity(this,'<?php echo $id; ?>');">+</a>
				</td>
				<td rowspan="2"><?php
					echo $html;
				?></td>
			</tr>
			<tr>
				<td>
					<a class="hikashop_product_quantity_field_change_minus hikashop_product_quantity_field_change" href="#" data-hk-qty-mod="-1" onclick="return window.hikashop.updateQuantity(this,'<?php echo $id; ?>');">&ndash;</a>
				</td>
			</tr>
		</table>
<?php
		break;
of the file "show_quantity" that you can edit via the menu Display>Views.
However, that code will also be used on the products listings if you display the add to cart buttons there, and on the product pages if you display the add to cart buttons there. So you need to take that into account if you modify that code.
Also, you could also do that with only CSS code that you could add in your template or in the HikaShop frontend CSS:
www.hikashop.com/support/documentation/1...ize-the-display.html

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

Time to create page: 0.054 seconds
Powered by Kunena Forum