module - Magento: Inventory increment qty attribute per store -


i have 1 simple question.

my problem is:

is there free extensions turn "enable qty increments" , "qty increments" global scope store view?

also have found question inventory settings

it's have kind of answer, need confirm this.

if there no free extension fulfill needs, need write own extension (as answer in previous link says) or there easy way change scope global store view. ?

my magento version ce 1.9.1.0

what achieve same thing create new product text attribute called pack_size, give per store view scope, set order quantity against per product, per store view.

then, in addtocart.phtml file, here;

app/design/frontend/xxx/yyy/template/catalog/product/view/addtocart.phtml 

where xxx yyy name of theme, , replace quantity input box with;

<?php $pack = $_product->getdata('pack_size'); ?> <?php if(($pack == 1) || (!$pack)) { ?> <input type="text" name="qty" id="qty" maxlength="4" value="1" /> <?php } else { ?> <select name="qty" id="qty" maxlength="12"> <?php  $countme = 1; while ($countme < 101) {         echo '<option value="'.($pack*$countme).'">'.($pack*$countme).'</option>'; $countme++;  } ?> </select> 

now if value of pack_offer set , greater 1, user able choose multiple of qty.

depending on theme, may need implement in cart page.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -