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

Using a variable in CMS.. HELP! 
 
tstokes661
Jr. Member
 
Total Posts:  3
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_$variablename="$variabletemplate="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