Values In Block

Hello

We need to add codes shown below for HomePage, ViewList, Product Page, Cart Page, Order Page. Can you do this with Block +smarty support.? But tpl codes need to be added to the sections we stated with bold. Can you support us for it with a fee or without ?
HomePage
----------------------------------------------------
ViewList
----------------------------------------------------
Product Page
----------------------------------------------------
Cart Page
----------------------------------------------------
Order Landing Page

Hello! What email do you need to put in that blocks? If the users see your site anonymously there is no emails.

Hello! What email do you need to put in that blocks? If the users see your site anonymously there is no emails.

yes if that's an user, user email should appear, if not, blank

yes if that's an user, user email should appear, if not, blank

Sent you a private message

For any of the cart/checkout pages you can use

{$cart.user_data.email}

And for any of the order pages

{$order_info.email}

For the non cart/checkout/order pages, for logged in users you should extend the user's 'auth' area with their email address by using the 'fill_auth' hook and add the $user_data['email'] as $auth['email'].

You cold then do:

{if $auth.email}{$auth.email}{/if}

for your email address.

Hope that makes sense.

Please also make sure that the { and } symbols of your code are not located on one line. E.g.

wrong:

{ event: "setEmail", email: "{$cart.user_data.email}" },

correct:

{ 
    event: "setEmail", email: "{$cart.user_data.email}" 
},

Not only email. Codes like shown below are required too

{ event: "viewList", item:[ "product_id_1" , "product_id_2" , "product_id_3" ]}

{ event: "viewItem", item: "product_id" }

{ id: "product_id_1", price: price_1, quantity: quantity_1 },
{ id: "product_id_2", price: price_2, quantity: quantity_2 }

- View list

You can retrieve product IDs from the $products array

{$products|fn_print_r}

- Product details page

Use

{$product.product_id}

- Order details

You can retrieve necessary attributes from the $order_info array

{$order_info.products|fn_print_r}