yanarasod Posted May 5, 2006 Posted May 5, 2006 hi i have installed contribution all products and have a error message Parse error: parse error, unexpected T_STRING in /home/bhura4/public_html/store/includes/languages/english/index.php on line 14 installing and everything was fine but when i want to link it error comes i placed this code in catalog / includes / languages / english / index.php define('TEXT_MAIN', 'Text Here <?php echo '<a href="' . tep_href_link(FILENAME_ALL_PRODUCTS) . '">' . ALL_PRODUCTS_LINK . '</a>'; ?>'); in the readme file it was told to copy <?php echo '<a href="' . tep_href_link(FILENAME_ALL_PRODUCTS) . '">' . ALL_PRODUCTS_LINK . '</a>'; ?> wherever i wanted a link to all products page appear, but it shows error, have i dont anything wrong
Terra Posted May 5, 2006 Posted May 5, 2006 catalog / includes / languages / english / index.php define('TEXT_MAIN', 'Text Here <?php echo '<a href="' . tep_href_link(FILENAME_ALL_PRODUCTS) . '">' . ALL_PRODUCTS_LINK . '</a>'; ?>'); You can't place PHP code into a define() function. The code looks like it should be somewhere else, probably a root level file, maybe the root index.php? but not in the english level file. I haven't got the instructions for the contrib to hand, but if you go back to it, you should be able to sort it - basically, the define() needs to be just simple text (or HTML), no PHP. PS (edit): Just realised what's happening - you don't put the above code into the language level file, but where you want the link to appear. If you want it to appear in the left column, then include it in "column_left.php". You can put the code either into the column files, the box files (e.g. information.php) or root level files. Left or right column is probably easiest. Terra My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad) and how to solve the invoice already paid error General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email **
yanarasod Posted May 5, 2006 Author Posted May 5, 2006 in the readme file it is written to install it anywhere where i want to place a link to that page. that's it i did what it said, but it shows error
Terra Posted May 5, 2006 Posted May 5, 2006 in the readme file it is written to install it anywhere where i want to place a link to that page. that's it i did what it said, but it shows error You cannot put the code within a define() statement - the code needs to go into: a root level file an includes level file (column_left / column_right) an includes/boxes file (information.php) if you don't move the code to a different location, it won't work. Terra My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad) and how to solve the invoice already paid error General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email **
yanarasod Posted May 5, 2006 Author Posted May 5, 2006 hey it's working now, i removed the code and entered another code to link it with products info box, it done now, can you tell me one more thing, how do i show the products full details in my all products, as bcoz now it shows only category name and products under it. i want to show full details just like if we move under categories and see the products with product name, buy now button and other etc. do you know how to do it
Recommended Posts
Archived
This topic is now archived and is closed to further replies.