Quote:
Originally Posted by AMMoyer
But I need more info in the $products array than xcart provides such as part position, qty per position, notes, power steering, 4WD, bodystyle, etc. in order to correctly narrow down the search on the results page.
|
The best way to deal with this is to use func_select_product to get the product data and merge your additional data into the product array it returns or assign your additional data array to a different smarty variable.
Quote:
BTW, why does my custom lookup work on my local WAMP server but not on the Unix server the site is located at? It is successfully using image.php to pull the images on my 'results' page, but on products.php page after a category search, the sourcecode shows the thumbnail images with a complete path. Another thing, my admin side is using image.php to get images for the product page and it is not working either with no custom code on the admin side. Any thoughts?
|
You found out about the \ vs / between Linux & Windows. The reason your custom results page uses image.php and the category search uses the full URL is probably because you aren't using func_get_image_url to turn the image file name in the database into a real URL as I mentioned before. If you don't do things the same way X-Cart does you can't expect the same results.