Quantitiy cotrole before quantitiy field

  • Posts: 203
  • Thank you received: 0
10 years 11 months ago #174533

-- HikaShop version -- : HikaShop Essential 2.3.3
-- Joomla version -- : 3.3.4
-- PHP version -- : 5.4.30
-- Browser(s) name and version -- : Firefox 32

Hallo support Team

How can i move the "+" and "-" buttons in front of the quantity field?


awesomescreenshot.com/0103lvogf7

Thx
Andreas

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

  • Posts: 12953
  • Thank you received: 1778
10 years 11 months ago #174539

Hello,
To do that you'll have to directly edit the code of the "show_default" file of the "product" view of your front-end template.

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

  • Posts: 203
  • Thank you received: 0
10 years 11 months ago #174655

Maybe you have a little hint which line to edit :-)

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

  • Posts: 12953
  • Thank you received: 1778
10 years 11 months ago #174670

Hi,

You'll have to edit the "show_quantity" file of the "product" view of your front-end template via "Hikashop->Display->Views" and change these lines :

 case 'show_default':
    ?>
    <table>
      <tr>
        <td rowspan="2">
          <input id="hikashop_product_quantity_field_<?php echo $i; ?>" type="text" value="<?php echo JRequest::getInt('quantity',$min_quantity); ?>" class="hikashop_product_quantity_field" name="quantity" onchange="hikashopCheckQuantityChange('hikashop_product_quantity_field_<?php echo $i; ?>',<?php echo $max_quantity; ?>,<?php echo $min_quantity; ?>);" />
        </td>
        <td>
          <a id="hikashop_product_quantity_field_change_plus_<?php echo $i; ?>" class="hikashop_product_quantity_field_change_plus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_<?php echo $i; ?>',1,<?php echo $max_quantity; ?>,<?php echo $min_quantity; ?>);">+</a>
        </td>
        <td rowspan="2">
          <?php echo $html; ?>
        </td>
      </tr>
      <tr>
        <td>
          <a id="hikashop_product_quantity_field_change_minus_<?php echo $i; ?>" class="hikashop_product_quantity_field_change_minus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_<?php echo $i; ?>',0,<?php echo $max_quantity; ?>,<?php echo $min_quantity; ?>);">&ndash;</a>
        </td>
      </tr>
    </table>
By :
  case 'show_default':
    ?>
    <table>
      <tr>
        <td>
          <a id="hikashop_product_quantity_field_change_plus_<?php echo $i; ?>" class="hikashop_product_quantity_field_change_plus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_<?php echo $i; ?>',1,<?php echo $max_quantity; ?>,<?php echo $min_quantity; ?>);">+</a>
        </td>
        <td rowspan="2">
          <input id="hikashop_product_quantity_field_<?php echo $i; ?>" type="text" value="<?php echo JRequest::getInt('quantity',$min_quantity); ?>" class="hikashop_product_quantity_field" name="quantity" onchange="hikashopCheckQuantityChange('hikashop_product_quantity_field_<?php echo $i; ?>',<?php echo $max_quantity; ?>,<?php echo $min_quantity; ?>);" />
        </td>
        <td rowspan="2">
          <?php echo $html; ?>
        </td>
      </tr>
      <tr>
        <td>
          <a id="hikashop_product_quantity_field_change_minus_<?php echo $i; ?>" class="hikashop_product_quantity_field_change_minus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_<?php echo $i; ?>',0,<?php echo $max_quantity; ?>,<?php echo $min_quantity; ?>);">&ndash;</a>
        </td>
      </tr>
    </table>

Last edit: 10 years 11 months ago by Mohamed Thelji.

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

Time to create page: 0.069 seconds
Powered by Kunena Forum