i block topic because peoples dont read rules and they open new topic, give question, i will answer and after many times they ask in the same topic about something new ... but they dont know that 1 topic = 1 problem Problem was solved ... topic was closed
- I added the javascript code to a products page expecting it to display the uploaded image for that product but all I got was a blank page with an error message telling me the file does not exist, so where did I go wrong? Thats why I asked, its the same subject, not a new topic.
I added this to the short description A great companion for both boys and girls.<br> <a href="javascript:windowNew( '$aList[sPhotoBig]' )">See Larger</a>
All I get is a blank page -- you can see it here -- click on the "Click to see larger" link: http://www.carlsbadgallery.com/pillow/shop/?p=productsList&iCategory=3
idaryl - there is problem. Your variable $aList[sPhotoBig] is not recognized. I dont know why. You have plugin productsInRow. Check function throwProductsData() in plugins/productsInRow/productsInRow.php and that $aList[sPhotoBig] exits in this function
o boy - do I paste the entire page here - I found a couple of places where the $aPhoto[alist] is mentioned but.... no mention of the $aList[sPhotoBig] - so where does it go?
<?php
$iColumns = 2;
if( basename( $_SERVER['PHP_SELF'] ) != 'admin.php' ){ /** * Display product list in columns, depending on the number set above ($iColumns) * @return string * @param string $sFile * @param array $aData * @param string $sPage * @param int $iList */ if( !function_exists( 'throwProductsData' ) ){ function throwProductsData( $sFile, $aData, $sPage, $iList ){ global $tpl, $aList, $oFF;
idaryl - yes You have variable: $aList['sPhotoBig'] defined in this function. Check for this: $aList['sPhotoBig'] = DIR_PRODUCTS_FILES.$aPhoto[$aList['iProduct']]['sPhoto'];
Hmm.. then edit templates/productsInRow.tpl and variable have correct name -> $aList[sPhotoBig] You have deleted example shop from server and i can check it
idaryl - give me link to productsInRow.tpl file. This file: http://www.carlsbadgallery.com/pillow/shop/templates/productsInRow.tpl dont include Your modifications