Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

aris99

Archived
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Real Name
    ARIS MARIS

aris99's Achievements

  1. For the ones that imagemagic doesnt work. I had installed one on my shop under /catalog and it worked (except the watermarks). Then i did a new shop without /catalog but imagemagic didnt work (the thubnail directory was empty). So i found out where the problem was and publishing it so other can make it work. 1) on both installations find in imagemagic.php at about line 20 require('includes/imagemagic/imagemagic.functions.php'); coment the next line: chdir (DIR_FS_CATALOG); 2) when installation on root (not in catalog) in imagemagic.php at about line 132 find $image = @getimagesize($_GET['img']); replace with: $image = @getimagesize(DIR_FS_CATALOG .$_GET['img']); find // $filename = DIR_FS_CATALOG.$filename; uncomment it find $src = imagecreatefromjpeg($_GET['img']); replace with $src = imagecreatefromjpeg(DIR_FS_CATALOG .$_GET['img']); find $src = imagecreatefromgif($_GET['img']); replace with $src = imagecreatefromgif(DIR_FS_CATALOG .$_GET['img']); find $src = imagecreatefrompng($_GET['img']); replace with $src = imagecreatefrompng(DIR_FS_CATALOG .$_GET['img']); find $src = imagecreatefrompng($_GET['img']); replace with $src = imagecreatefrompng(DIR_FS_CATALOG .$_GET['img']); in html_output find $image_size = @getimagesize($src); replace with $image_size = @getimagesize(DIR_FS_CATALOG .$src); in product_thumb find $image = @getimagesize($_GET['img']); replace with $image = @getimagesize(DIR_FS_CATALOG .$_GET['img']); thats it! Now also watermarks might work..
  2. if you call about_us.php in admin directly (without the information.php) you must supply a value for $info_lang. This can easely be done with this command if ($info_lang == '') $info_lang = (int)$languages_id; before echo '<BR><BR><font size=-3>Select '; if ($info_lang == 1) { echo '<a href="' . tep_href_link('about_us.php?info_lang=1', '', 'NONSSL') . '"><font color=blue><b>English</b></font></a>'; This must be done in each 4 files about_us, condition, privacy and Shipping
  3. To display only one language you must replace with $category_query = "SELECT DISTINCT `categories_description`.`categories_name`,`categories_description`.`categories_id`,`categories`.`parent_id` FROM `categories_description`INNER JOIN `categories` ON (`categories_description`.`categories_id` = `categories`.`categories_id`) WHERE (`categories_description`.`language_id` = 1) ORDER BY `categories_id` "; $product_query = "SELECT DISTINCT `products`.`products_id`,`products`.`products_quantity`,`products`.`products_model`,`products`.`products_image`,`products`.`products_price`,`products`.`products_date_added`,`products`.`products_last_modified`,`products`.`products_date_available`,`products`.`products_weight`,`products`.`products_status`,`products`.`manufacturers_id`,`products_description`.`products_name`,`products_description`.`products_url`,`categories_description`.`categories_name`,`products_description`.`language_id`,`manufacturers`.`manufacturers_name` FROM `products` INNER JOIN `products_description` ON (`products`.`products_id` = `products_description`.`products_id`) INNER JOIN `products_to_categories` ON (`products_description`.`products_id` = `products_to_categories`.`products_id`) INNER JOIN `categories_description` ON (`products_to_categories`.`categories_id` = `categories_description`.`categories_id`) INNER JOIN `manufacturers` ON (`products`.`manufacturers_id` = `manufacturers`.`manufacturers_id`) WHERE (`products_description`.`language_id` = 1) AND (`categories_description`.`language_id` = 1) AND (`products_to_categories`.`categories_id` = " . $row['categories_id'] . ")"; i have choosen lanuage_id=1 if you have other you can put e.g. lanuage_id=4
×
×
  • Create New...