Separate inputs Quantity-fi and Add to cart-button

  • Posts: 56
  • Thank you received: 0
12 years 2 days ago #48242

Hi,

I´m trying to make some changes for the way quantity-field and Add to cart-button displays on the frontend-page but can´t see where I shall make the changes in the quantity.php.
See the code under where I think I shall make the changes:

<h5>Antal:</h5>
					<div class="hikashop_product_stock">
					<?php
						echo $this->cart->displayButton(JText::_('ADD_TO_CART'),'add',$this->params,$url,$this->ajax,'',$this->row->product_max_per_order,$this->row->product_min_per_order);
					}elseif($this->row->product_quantity>0){
					?>
					<div class="hikashop_product_stock">
					<?php
						echo '<span class="hikashop_product_stock_count">'.JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity).'</span><br/>';
						$config =& hikashop_config();
						if($config->get('button_style','normal')=='css'){
							echo '<br />';
						}
						echo $this->cart->displayButton(JText::_('ADD_TO_CART'),'add',$this->params,$url,$this->ajax,'',$this->row->product_max_per_order,$this->row->product_min_per_order);
					}else{
						?>
I want the button displays right under the quantity-field, see attached image!

Edit:
It´seems that I get a way to display it the way I wanted with some css-style on the inputs-element...

/Micke

Attachments:
Last edit: 12 years 2 days ago by Micke_skane.

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
12 years 2 days ago #48306

So problem solved ?

The HTML of these elements is done in the file administrator/components/com_hikashop/helpers/cart.php

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

  • Posts: 56
  • Thank you received: 0
12 years 2 days ago #48410

Ok, thanks!

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

Time to create page: 0.059 seconds
Powered by Kunena Forum