Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Php rule for two different values ​​with the same result
 
ocucek1
Jr. Member
 
Total Posts:  3
Joined:  2013-07-01
 

Helo

Can anyone explain how to use the rule of two values​​? ‘yes’ or ‘limited’

Thanks for help

foreach($root2->PRICES->PRICE as $izdelek2) {
echo “.”;
$ident = ‘ASB-’ . (string)$izdelek2->{’WIC’};
$products[$ident][’stock’] = ($izdelek2->{AVAIL} == ‘yes’ )?1:0;
$products[$ident][’available_quantity’] = ($izdelek2->{AVAIL} == ‘yes’ )?10:0;

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top