Hi all,
I am not programmer, but have knowledge on html and css.
Now I need change my shop Layout and need ADD some PHP coding to the /includes/templates/template_default/sideboxes/tpl_search.php
I open the tpl_search.php and see this (Just Example there)
$content .= "<div>Test</div>";
It is easy for me to understand, since just a simply html coding..
================
Now I have those of coding that need to add to the $content .=
But the problems is, they are php coding, how do it add this?
Here are the coding....
Code:<div class="cart"> <!-- ========== SHOPPING CART ========== --> <?php if ($_SESSION['cart']->count_contents() == 0) { $cart_text = '<a href="' . zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL') . '">' . $_SESSION['cart']->count_contents() . ' items</a>'; } elseif ($_SESSION['cart']->count_contents() == 1) { $cart_text = '<a href="' . zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL') . '">' . $_SESSION['cart']->count_contents() . ' item</a>'; } else { $cart_text = '<a href="' . zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL') . '">' . $_SESSION['cart']->count_contents() . ' items</a>'; } ?> <?php echo $cart_text ?> <!-- =================================== --> </div>
Thank you very much of your time and help.


Reply With Quote

