apilon45 Posted October 30, 2008 Posted October 30, 2008 Good day all , I am getting this error Parse error: syntax error, unexpected '=' in /home/digitalh/public_html/includes/modules/sts_inc/sts_user_code.php on line 39 here is the start of the code that seem to cause the error but i cannot see anything wrong Any help would be appreciated Alain Pilon $sts->template['shoppingcartarea'] = '<strong>' .BOX_HEADING_SHOPPING_CART . '</strong><br />'; $sts->template['shoppingcartarea'] =$cart->count_contents(); if ($cart->count_contents() ==1) { $sts->template['shoppingcartarea'].=HEADER_SHOPPING_CART_ITEM . '</br>'; } else { $sts->template['shoppingcartarea']. = HEADER_SHOPPING_CART_ITEMS . '</br>'; } if ($cart->count_contents() >0) { $sts->template['shoppingcartarea'] . = '<a href=' .tep_href_link(FILENAME_SHOPPING_CART). ' class="headerNavigation">' .HEADER_TITLE_CART_CONTENTS. '</a> · <a href=' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, ", 'SSL') . 'class="headerNavigation">' . HEADER_TITLE_CHECKOUT . '</a>'; }
♥geoffreywalton Posted October 30, 2008 Posted October 30, 2008 Post the 5 lines before the error as well. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
apilon45 Posted November 4, 2008 Author Posted November 4, 2008 Post the 5 lines before the error as well. here it is a bit above and below i cannot find the error i am receiving (Parse error: syntax error, unexpected T_STRING in /home/digitalh/public_html/includes/modules/sts_inc/sts_user_code.php on line 37) Another way to declare STS variables is to enter them directly into the STS array: $sts->template['MyText']='Hello World'; */ $sts->template['shippinglink'] = '<a href='. tep_href_link(FILENAME_SHIPPING).'class="headerNavigation">'.BOX_INFORMATION_SHIPPING.'</a>'; $sts->template['privacylink'] = '<a href='. tep_href_link(FILENAME_PRIVACY).'class="headerNavigation">'.BOX_INFORMATION_PRIVACY.'</a>'; $sts->template['conditionslink'] = '<a href='. tep_href_link(FILENAME_CONDITIONS).'class="headerNavigation">'.BOX_INFORMATION_CONDITIONS.'</a>'; $sts->template['contactlink'] = '<a href=' . tep_href_link(FILENAME_CONTACT_US).'class="headerNavigation">'.BOX_INFORMATION_CONTACT.'</a>'; $sts->template['shoppingcartarea'] = '<strong>' .BOX_HEADING_SHOPPING_CART.'</strong><br />'; $sts->template['shoppingcartarea'].=$cart->count_contents(); if ($cart->count_contents()== 1){ $sts->template['shoppingcartarea'].=HEADER_SHOPPING_CART_ITEM.'<br />'; } else { $sts->template['shoppingcartarea'].=HEADER_SHOPPING_CART_ITEMS.'<br />'; } if ($cart->count_contents()> 0) { $sts->template['shoppingcartarea'].='<a href="href='.tep_href_link(FILENAME_SHOPPING_CART).'class="headerNavigation">'.HEADER_TITLE_CART_CONTENTS.'</a> ·<a href='.tep_href_link(FILENAME_CHECKOUT_SHIPPING,",'SSL').'class="headerNavigation">'.HEADER_TITLE_CHECKOUT.'</a>'; }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.