Skip to main content

Количество товара и его ограничение (сбой)

More
10 years 5 months ago #237006 by konuzelev
-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.5.1
-- Browser(s) name and version -- : google chrome
-- Error-message(debug-mod must be tuned on) -- : недостаточно товара на складе

Количество товара и его ограничение (сбой)
Срабатывает ограничение товара!
Хотя в товаре в главных опциях стоит неограниченно!
На странице с товаром добавляешь допустим 55 выходит сообщение недостаточно товара на складе.
И сбрасывает до 15.
Это происходит в любом товаре.
А в корзине ставлю 55 жму обновить и всё работает цену перечитывает.
Кто то сталкивался с этой проблемой? Ка исправить?
Заранее спасибо!!!!!!!!!!!!!!

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

More
10 years 5 months ago #237008 by nicolas
Hi,

I'm sorry but we don't speak Russian. Either post in the Russian forum or explain your problem in English.
Also, make sure that you provide screenshots of the problem. It will be easier to understand.

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

More
10 years 5 months ago #237020 by konuzelev
- HikaShop version -: 2.6.2
- Joomla version: 3.5.1
- browser (s) name and version--: Google Chrome
- Error-message (debug-mod must be tuned on) - : product not Enough stock Name Quantity of the product and ITS limit (fault) ! beyond the cap product ! Although the main item in the options is unlimited . on the item page, add say 55 message not Enough goes out of stock item and up to 15. resets This happens in any product . And put in the basket 55 click update, and everything works the price reads. Someone experienced with this problem? Ka fix? Thanks in advance !!!!!!!!!!!!!!

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

More
10 years 5 months ago #237027 by nicolas
Hi,

I'm sorry but I still don't understand what your problem is.

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

More
10 years 5 months ago #237066 by konuzelev
Thank you very much for the concern!Problem following:when the setting of item number of item is UNLIMITED! It is in the product when you purchase there is a limit of 15 items.Writes (out of stock).In the cart all is well not limited.At all so or only at me?How to fix it?



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

More
10 years 5 months ago #237121 by Xavier
Hi,

Please use that code for the view "product / show_quantity":
Code:
<?php $i = $this->params->get('i'); $min_quantity = ($this->params->get('min_quantity'))?$this->params->get('min_quantity'):1; $max_quantity = $this->params->get('max_quantity','0'); $html = $this->params->get('html'); $qLayout = JRequest::getVar('quantitylayout','show_default'); switch($qLayout){ case 'show_none': ?> <div class="hikashop_product_quantity_div hikashop_product_quantity_add_to_cart_div hikashop_product_quantity_add_to_cart_div_regrouped"> <?php echo $html; ?> </div> <?php break; case 'show_regrouped': ?> <div class="input-append hikashop_product_quantity_div hikashop_product_quantity_input_div_regrouped"> <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; ?>);" /> <div class="add-on hikashop_product_quantity_div hikashop_product_quantity_change_div_regrouped"> <div class="hikashop_product_quantity_change_div_plus_regrouped"> <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> </div> <div class="hikashop_product_quantity_change_div_plus_regrouped"> <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> </div> </div> </div> <div class="hikashop_product_quantity_div hikashop_product_quantity_add_to_cart_div hikashop_product_quantity_add_to_cart_div_regrouped"> <?php echo $html; ?> </div> <?php break; case 'show_select': if(!$max_quantity) $max_quantity = (int)$min_quantity * 15; ?> <div class="hikashop_product_quantity_div hikashop_product_quantity_input_div_select"> <select id="hikashop_product_quantity_select_<?php echo $i; ?>" onchange="var id = this.id.replace('select','field'); document.getElementById(id).value = this.value;"> <?php for($j = $min_quantity; $j <= $max_quantity; $j += $min_quantity){ echo '<option value="'.$j.'">'.$j.'</option>'; } ?> </select> <input id="hikashop_product_quantity_field_<?php echo $i; ?>" type="hidden" 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; ?>);" /> </div> <div class="hikashop_product_quantity_div hikashop_product_quantity_add_to_cart_div hikashop_product_quantity_add_to_cart_div_select"> <?php echo $html; ?> </div> <?php break; case 'show_select_price': if(!$max_quantity) $max_quantity = (int)$min_quantity * 15; ?> <div class="hikashop_product_quantity_div hikashop_product_quantity_input_div_select"> <select id="hikashop_product_quantity_select_<?php echo $i; ?>" onchange="var id = this.id.replace('select','field'); document.getElementById(id).value = this.value;"> <?php $pricesSet = array(); foreach($this->row->prices as $price){ if($price->price_min_quantity == 0) $price->price_min_quantity = 1; if(in_array($price->price_min_quantity,$pricesSet) || $price->price_min_quantity < $min_quantity || $price->price_min_quantity > $max_quantity) continue; $pricesSet[] = $price->price_min_quantity; echo '<option value="'.$price->price_min_quantity.'">'.$price->price_min_quantity.'</option>'; } if(empty($pricesSet)){ for($j = $min_quantity; $j <= $max_quantity; $j += $min_quantity){ echo '<option value="'.$j.'">'.$j.'</option>'; } } ?> </select> <input id="hikashop_product_quantity_field_<?php echo $i; ?>" type="hidden" 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; ?>);" /> </div> <div class="hikashop_product_quantity_div hikashop_product_quantity_add_to_cart_div hikashop_product_quantity_add_to_cart_div_select"> <?php echo $html; ?> </div> <?php break; case 'show_simple': ?> <input id="hikashop_product_quantity_field_<?php echo $i; ?>" type="hidden" value="<?php echo JRequest::getInt('quantity',$min_quantity); ?>" class="hikashop_product_quantity_field" name="quantity" /> <div class="hikashop_product_quantity_div hikashop_product_quantity_add_to_cart_div hikashop_product_quantity_add_to_cart_div_simple"> <?php echo $html; ?> </div> <?php break; case 'show_leftright': ?> <div class="input-prepend input-append hikashop_product_quantity_div hikashop_product_quantity_change_div_leftright"> <span class="add-on"> <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> </span> <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; ?>);" /> <span class="add-on"> <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> </span> </div> <div class="hikashop_product_quantity_div hikashop_product_quantity_add_to_cart_div hikashop_product_quantity_add_to_cart_div_leftright"> <?php echo $html; ?> </div> <?php break; case 'show_simplified': ?> <div class="hikashop_product_quantity_div hikashop_product_quantity_input_div_simplified"> <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; ?>);" /> </div> <div class="hikashop_product_quantity_div hikashop_product_quantity_add_to_cart_div hikashop_product_quantity_add_to_cart_div_simplified"> <?php echo $html; ?> </div> <?php break; case 'show_default_div': ?> <div class="hikashop_product_quantity_div hikashop_product_quantity_input_div_default"> <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; ?>);" /> </div> <div class="hikashop_product_quantity_div hikashop_product_quantity_change_div_default"> <div class="hikashop_product_quantity_change_div_plus_default"> <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> </div> <div class="hikashop_product_quantity_change_div_minus_default"> <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> </div> </div> <div class="hikashop_product_quantity_div hikashop_product_quantity_add_to_cart_div hikashop_product_quantity_add_to_cart_div_default"> <?php echo $html; ?> </div> <?php break; 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> <?php break; default: if(substr($qLayout,0,14) == 'show_quantity_'){ $doc = JFactory::getDocument(); $app = JFactory::getApplication(); $quantityDisplayType = hikashop_get('type.quantitydisplay'); if($quantityDisplayType->check( $qLayout, $app->getTemplate())){ $controller = new hikashopBridgeController(array('name'=>'product')); $viewType = $doc->getType(); if(!HIKASHOP_PHP5) { $view = & $controller->getView( '', $viewType, ''); } else { $view = $controller->getView( '', $viewType, ''); } $view->setLayout($qLayout); echo $view->loadTemplate(); break; } } ?> <div class="hikashop_product_quantity_div hikashop_product_quantity_input_div_default"> <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; ?>);" /> </div> <div class="hikashop_product_quantity_div hikashop_product_quantity_change_div_default"> <div class="hikashop_product_quantity_change_div_plus_default"> <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> </div> <div class="hikashop_product_quantity_change_div_minus_default"> <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> </div> </div> <div class="hikashop_product_quantity_div hikashop_product_quantity_add_to_cart_div hikashop_product_quantity_add_to_cart_div_default"> <?php echo $html; ?> </div> <?php break; }

www.hikashop.com/support/documentation/1...ize-the-display.html

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

More
10 years 5 months ago #237246 by konuzelev
Solved!Ur works!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Thank you very much dear person!!!!!!!!!!!!!!!! Thank you!!!!!!!!Thank you!!!!!!!!Thank you!!!!!!!!Thank you!!!!!!!!I bow to You!!!!!!!

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

More
10 years 5 months ago #237249 by konuzelev

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

More
10 years 5 months ago #237250 by konuzelev
You official support?You are from France!

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

More
10 years 5 months ago #237289 by Xavier
Hi,

Yes indeed I am part of the official support ;) And from France !
The following user(s) said Thank You: konuzelev

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

More
10 years 5 months ago #237330 by konuzelev
Thank you very much for your support.Sorry one more question can tell me .How can I expand the box with the item quantity.But it is too small.Need to three digits have been tampered with.

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

More
10 years 5 months ago - 10 years 5 months ago #237336 by Philip
Hello,

For your needs I suggest you to use/modify your Css code, for customize your product page via your Css,
have a look on this link, here .

Note : I advice you to edit your Css file at the end, later that will be easier to find and correct it.

You must use this kind of Css Code :


input.hikashop_product_quantity_field {
width: 30px;
}

Legend :
- Your selector or element target
- Your command or action you want to modify
- Your value for your modification

To learn more about Css code and their properties, I invite you to read this source, here
you will see that lots of things can be customed like this one for text and color, and
this one for your background-color and much more!

Hope that will help you.

Regards,
Last edit: 10 years 5 months ago by Philip.
The following user(s) said Thank You: konuzelev

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

More
10 years 5 months ago #237471 by konuzelev
Thank you very much I did !!!!!!!!!!!Everything turned out!!!!!!!!!!!!!

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

More
10 years 5 months ago #237472 by konuzelev
I know how to fix it.Don't know how to find the file in which this rule!

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

More
10 years 5 months ago #237481 by nicolas
Hi,

The link Philip gave you explains how to add such CSS code to HikaShop:
www.hikashop.com/support/documentation/2...by-color.html#custom
The following user(s) said Thank You: konuzelev

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

More
10 years 5 months ago #237584 by konuzelev
nicolas thank you very much!!!!!!!!!!!!!!!!

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

Time to create page: 0.319 seconds
Powered by Kunena Forum