cancel
Showing results for 
Search instead for 
Did you mean: 

getStoreView

getStoreView

Hello,

I have multiple store:

My eStore

-- Canada fr

-- Canada en

-- USA en

Is there any getStoreView ?

Because I use WebText Amazon FBA extension and I want to display the "in stock qty" by store views.

 

At the moment I use this it works but I need help...

 

<div class="availability-qty">
<?php if (Mage::app()->getStore()->getWebsiteId() == 4):?>
    <div class="availability-qty">
    <?php if ($_product->isAvailable()): ?>
        <p class="availability in-stock"><?php echo $this->__('Qty Available:') ?> <span><!--<?php echo $this->__('In stock') ?>--><?= (int) Mage:: getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty()?></span></p>
    <?php else: ?>
        <p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('Out of stock') ?></span></p>
    <?php endif; ?>
    </div>
<?php endif; ?>
</div>
1 REPLY 1

Re: getStoreView

Hi

 

The "Qty" attribute is global. It's the same value in all the store views.

You can't have different values in each of your stores (Canada fr, Canada en, USA en)

Maxime Coudreuse, developer of Product Manager for Magento: User-friendly product editor with customizable grid interface and category tree for Magento 1 and 2