How to move the 'In Stock' display

  • Posts: 46
  • Thank you received: 7
11 years 6 months ago #128877

taylordynamics.com/websitev2/index.php/p...ric-and-fibre-optics
-- HikaShop version -- : 2.2
-- Joomla version -- : 2.5.14

Can I move the 'In Stock' text to under the price? If so, which file do I need to move it in? Many thanks - Leo

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 6 months ago #128955

Hi,

Yes it's possible, you have to edit the view "product / quantity".
www.hikashop.com/support/documentation/1...ize-the-display.html

The following user(s) said Thank You: lcoombes

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

  • Posts: 46
  • Thank you received: 7
11 years 6 months ago #129212

For anyone who want to do this in future, these are the steps I took:
Removed from product/quantity.php

echo '<span class="hikashop_product_stock_count">'.JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity).'<br/></span>';
      if($config->get('button_style','normal')=='css'){
        echo '<br />';
      }

Added to product/listing_price.php

After:
    echo JText::_('PRICE_END');

Add:
     echo '<br/><span class="hikashop_product_stock_count">'.JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity).'<br/></span>';

The following user(s) said Thank You: nicolas

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

Time to create page: 0.068 seconds
Powered by Kunena Forum