How to display any array from CS Cart

One of the most common questions that new web developers have about CS Cart (and Smarty more generally), is how to display on screen the arrays they want.

This can be done simply by using

{$data.data_array|fn_print_r}

of course data and data_array are the ones you need, this is just a sample.

 

For example in order to display all the data from a product you can use

{$product|fn_print_r}
Don’t forget to clean the tpl cache or probably nothing will show up!

Master of SEO, server management specialist, guru of web development. A living legend.

Leave a Reply

Next ArticleHow to deal with mod_fcgid timeout in WHM/cPanel