Fail in price view

  • Posts: 145
  • Thank you received: 1
8 years 11 months ago #241592

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.6.19

When i set Min Qty in Price and taxes to 6.



When i can not se the price in the product overview
And it do not sho up on the invoice

It works fine if i set the value to 1.


What can i do about that?


Best regards
Brian
Attachments:
Last edit: 8 years 11 months ago by Nowweb.

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

  • Posts: 83799
  • Thank you received: 13571
  • MODERATOR
8 years 11 months ago #241595

Hi,

On the products listing of the backend that's normal. The price displayed there is only the unit price in order to avoid having too many prices displayed.
Add the code:

if(!count($p)){
			foreach($prices as $price) {
				$p[] = $this->format($price->$value_field, $price->$currency_id_field).JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price->price_min_quantity);
			}
		}
before the line:
return implode(' / ', $p);
in the file administrator/components/com_hikashop/classes/currency.php and that will display the prices with min quantity on the products listing.

I've checked on my end but it displays fine on the invoice. So I'm not sure what you're talking about.

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

Time to create page: 0.061 seconds
Powered by Kunena Forum