Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with: Ultrapics Contribution (allinone)


antonie

Recommended Posts

I have installed a rather medium shop abt PC.

Also, i installed Ultrapics + WYSIWYG (all in one) contribution of Lee (MaxiDVD) and STS.

My live shop is http://www.amtech-vn.com/shop/

After moding some codes at /shop/popup_image.php

My code is exactly based on this code:

 

define('IN_IMAGE_SUBDIR','images_big/');

 

// if the big image isn't shown unkomment the next line, and check the path:

// maybe you have to remove '/'. or adjust the path, depends on your configuration

      if (is_file(DIR_FS_CATALOG.'/'.DIR_WS_IMAGES.IN_IMAGE_SUBDIR.$products['products_image'])) {

              $image=DIR_WS_IMAGES.IN_IMAGE_SUBDIR.$products['products_image'];

        }

        else {

              $image=DIR_WS_IMAGES . $products['products_image'];

        }

          echo tep_image($image, $products_values['products_name']);

 

//echo tep_image(DIR_WS_IMAGES.IN_IMAGE_SUBDIR.$products['products_image'], $products_values['products_name']);

 

Now, I want to use Ultrapics again but i cannot compare the difference btw 2 files.

So, i reuploaded the original popup_image.php to my host after viewing the difference btw 2 original files with my files (product_info.php, /admin/categories.php ...) --> no difference among them.

In admin area, i cannot see 2 kinds of pic: medium, large.

when browsing a product, the enlarge function doesnot work properly.

 

My shop now is using my code above.

I wanna use the contribution of Lee. Only with the Ultrapics mod.

May i get some advises?

 

 

 

Sincerely,

Link to comment
Share on other sites

  • 5 months later...

Hi,

 

I have installed STS and ultrapic.

 

Now I would like to add the extra pictures to the sts_product_info page. but I need some help.

 

How should I do this and do I just add this to tha page?

 

// BOF MaxiDVD: Modified For Ultimate Images Pack!

$product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, p.products_image_med, p.products_image_lrg, p.products_image_sm_1, p.products_image_xl_1, p.products_image_sm_2, p.products_image_xl_2, p.products_image_sm_3, p.products_image_xl_3, p.products_image_sm_4, p.products_image_xl_4, p.products_image_sm_5, p.products_image_xl_5, p.products_image_sm_6, p.products_image_xl_6, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");

// EOF MaxiDVD: Modified For Ultimate Images Pack!

 

Where should I add it on the page??

 

Anyone..

 

Espen

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...