Magento Forum

   
tier pricing modified
 
Rudy
Jr. Member
 
Avatar
Total Posts:  8
Joined:  2007-09-09
 

Hello Moshe,
I am still developing on the ticketshoip (box office).

Right now I am totally stucked and would need some help.

I set up a new product type - everything ok so far.

But now I want to implement a Price category feature instead of tear price.

So I have a pricecategory.phtml instead of a tier.phtml.:

<label for="row_index__category"><strong><?=__('PK')?></strong></label>
            <
select id="row_index__category" name="product[category_price][__index__][category]" class="select">
            
<?foreach ($this->getAllPriceCategoryOptions() as $option):?>
                <? 
                
                $_selected 
= ($option['value'== "'#{category}'"  ) ? 'selected' ''?>
                
<option value="<?=$option['value']?>" <?=$_selected?>><?=$option['label']?></option>
            
<?endforeach;?>
            
</select>        
                                
     </
div>

My Problem is: How can I check against #{category}

when I also included:

<?foreach ($this->getValues() as $_item):?>
    categoryPriceControl
.addItem('<?=$_item['category']?>','<?=$_item['price']?>','<?=$_item['availability']?>');
    
<?endforeach;?>
Everything works ok so far. I can get the information stored in the db. But I can not show the actual value selected getting from the database (#{category}.

I hope this makes sense and somebody can help me.

Thanks

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