Hi,
I've set up a hidden field in my form that is dynamically populated by the following shortcode in my functions.php file and using the parameter "cart" :
add_filter('gform_field_value_cart', 'populate_cart');
function populate_cart($value){
return do_shortcode("[cart mode="read"]");
}
The [cart mode='read'] shortcode is supposed to display a table with the cart's contents (products, prices, total, etc.), but for some reason all of the table formatting is lost in the email.... The cart's contents are all there, but they are all displayed on separate lines and have several blank lines in between items, which creates a very long email that cannot be forwarded to clients.
Is there any way I can retain the original formatting of the shortcode?
Thanks,