Quantity in Shopping Basket is limited to 15

  • Posts: 4
  • Thank you received: 0
  • Hikashop Business
8 years 8 months ago #232342

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.5.3
-- Browser(s) name and version -- : Firefox 44.02

Hi,
I have several products that should be purchased in bigger quantities, let's say up to 200.
But when I put products in the basket with quantity > 15 the Quantity Pulldown field shows 1.
When I want to correct it, I saw that the Pulldown Field is limited to 15.
That means, up to quantity 15 everything is ok, do want want to put more in the basket, the pulldown menu shows a quantity of 1.
Besides this problem, the next steps in the order go wrong. When I proceed checkout there is a quantitiy of 0 before I can finish the order.
By the way, the total price calculation works fine all the time.

Attachments:
Last edit: 8 years 8 months ago by Idrian65. Reason: Missing attachments

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

  • Posts: 13201
  • Thank you received: 2322
8 years 8 months ago #232362

Hi,

You have to fill the options "Min quantity per order" and "Max quantity per order" in the product edition page.
The min quantity allow to set the steps of the dropdown.

Regarding the 0 quantity in the order, the system does not seem to be able to get the values of these options correctly.
Do you have any view overrides on the views "product / cart" and "checkout / cart" ?

Last edit: 8 years 8 months ago by Xavier.
The following user(s) said Thank You: Idrian65

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

  • Posts: 4
  • Thank you received: 0
  • Hikashop Business
8 years 8 months ago #232443

Hi Xavier,

this suggestion fixed my problem. Thank you. I thought, that it would be sufficient to leave the "Max quantity per order" as it is - from = 0 to unlimited. Obviously not. I set now the figures from 1 to 800 and it works fine.
Once again, thanks a lot.

Anton

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

  • Posts: 5
  • Thank you received: 0
8 years 5 months ago #242390

Hi, This limit of 15 is causing me a major headache across 2 shops I am developing.

If the product has a stock of say 44 and the client orders 20 of them. When they go to the checkout the cost is correct but the quantity is zero. They choose the offered shipping option and the cart updates and deletes the product and returns them to the home page (only if I'm testing with one product line above 15).
If you use the solution of adding a max and min qty to each product you then get the correct view at the product page (44 available) but now at the checkout, if the client decides to amend the order they can choose between 1 and 800 and if they choose above 44 (in this example) they get a system message saying "limit reached..."... This looks awful and isn't professional having already told them at the product page what the stock limit is.
Please, please, please can you let me know how you disable this 15 limit at checkout across the whole site?
Many thanks, :(

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

  • Posts: 13201
  • Thank you received: 2322
8 years 5 months ago #242412

Hi,

You have to update to the latest version of HikaShop. This issue has already been solved.

The following user(s) said Thank You: inkinick

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

  • Posts: 5
  • Thank you received: 0
8 years 5 months ago #242537

My bad... I thought it had been done but we'd moved the shop to a new URL and hadn't updated either of our two subs!!!
However, I've updated both sites (everything I seem to be able to) and it still isn't working? :-(

I found this in the checkout/cart.php view -
if($max_quantity == 0)
$max_quantity = (int)$min_quantity * 15;
Lines 223 & 224...

Am I in the right place?

Last edit: 8 years 5 months ago by inkinick.

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

  • Posts: 13201
  • Thank you received: 2322
8 years 5 months ago #242556

Hi,

Please use that code:

	$min_quantity = (@$this->row->main->product_min_per_order) ? (int)@$this->row->main->product_min_per_order : (int)@$this->row->product_min_per_order;
	$max_quantity = (@$this->row->main->product_max_per_order) ? (int)@$this->row->main->product_max_per_order : (int)@$this->row->product_max_per_order;
Instead of:
	$min_quantity = $this->row->product_min_per_order;
	$max_quantity = $this->row->product_max_per_order;

The following user(s) said Thank You: inkinick

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

  • Posts: 5
  • Thank you received: 0
8 years 5 months ago #243057

Many thanks,
Sorry for the delay in response, I've been away for a few days.

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

Time to create page: 0.088 seconds
Powered by Kunena Forum