Try the Demo

Magento Forum

   
Using a variable in CMS.. HELP! 
 
tstokes661
Jr. Member
 
Total Posts:  1
Joined:  2012-09-07
 

I am having trouble using a php and variable in a CMS page

I want to display items on main page depending on the Customer Group

It works great with just category id number

{{block type="catalog/product_list" category_id="253" template="catalog/product/list.phtml"}}

or with a attribute

{{block type="catalog/product_list_promotion" name="promotion" template="catalog/product/promotion.phtml" }}

But I want to display items tagged as “promotion” to members of Group “promotion” and display items tagged as “Wholesale” to “Wholesale” customers using a variable such as:

{{block type="catalog/product_list_$variable" name="$variable" template="catalog/product/$variable.phtml" }}

Any help would be great!!

Thanks!

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