Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

le6ha2

Pioneers
  • Posts

    32
  • Joined

  • Last visited

Posts posted by le6ha2

  1. As you don't say what your trying to do I cant give a precise answer, but if you look at the code in Simple Multi Image Add-on (Un-Limited) with Fancy Popups http://addons.oscommerce.com/info/7008 that is done as part of that, perhaps you can work it out from there.

    Hello Sam,

    Okay, this is what I want. If I want to get the image path of a product from its product id (=1234 for example): get_image.php?proId=1234

    //connect database
    $product_info_query = tep_db_query("select p.products_image from " . TABLE_PRODUCTS . " p where p.products_id = '" . $_GET['proId'] . "'");
    
    $product_info = tep_db_fetch_array($product_info_query);
    
    $filePath= DIR_WS_IMAGES . $product_info['products_image'];

     

    So It will return the products_image, and it is not encrypted. My question is how can we get the encrypt file name from oscthumb?

     

    Could you show me a demo of website using Simple Multi Image Add-on and oscThumb?

     

    BTW, on Simple Multi Image Add-on, there is a field products_image_array. Can you show an example of its value?

     

    thank you for your great help.

  2. If you install this & have encrypt file name enabled then that will apply to product_info.php as well

     

    The purpose of the watermark is to protect the image, you cannot stop it being saved, after all, to be displayed in the browser it must be saved on the local machine already, so any save disable can be bypassed by searching the cache, or they can just use print screen etc etc.

     

    Hello Sam,

    thank you for your post. Could you help me 4. My main question, if we know the product_id, how can we get the encrypt filename of its image? (write a new .php file)

  3. Thank for your contrib! I have installed on my localhost, it works very well and have some questions:

     

    1. How does it protect the image? watermark and encrypt file name? I still can use "save image as..." command and save to local PC and open it. How can protect that user cannot save the image?

    2. How to get this image url: http://localhost/shoptest/oscthumb.php?src=kNXSwNvN1J3JzszC1ZPJ5M8.&w=1000&h=1440&f=jpg&q=100&hash=da3e9c93979ed352af1afecb5b530533 on product_info.php page?

    3. If i want to embed an image with <img src="img_path"> tag, how can we encrypt this img_path on product_info.php page? just using tep_image() function?

    4. My main question, if we know the product_id, how can we get the encrypt filename of its image?

     

    thanks for your help

  4. to remove the account_password_new at checkout success just comment

    this

    if(tep_session_is_registered('createaccount')) tep_redirect(tep_href_link('account_password_new.php','thx=1'));}

    to change the wording look in the language files

     

    Hi Nana, I have a problem about weight of shipping like previous post. Now I have:

     

    Hello,

    I go to Admin -> Catalog -> Product expected / Review and have this problem:

     

     

    Products Expected

    1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-20, 20' at line 1

     

    select pd.products_id, pd.products_name, p.products_date_available from products_description pd, products p where p.products_id = pd.products_id and p.products_date_available != '' and pd.language_id = '1' order by p.products_date_available DESC limit -20, 20

     

    [TEP STOP]

     

     

    Reviews

    1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-20, 20' at line 1

     

    select reviews_id, products_id, date_added, last_modified, reviews_rating from reviews order by date_added DESC limit -20, 20

     

    [TEP STOP]

     

     

     

    I used Easy Populate, and Fast Easy Check out contribute.

    Anyone help me with this problem? Thank you very much

  5. Hi Nana,

    I overwrited checkout_shipping.php you postes #482 but I still have the problem:

     

    My item's weight is 1, when i order 1 item and check out, shipping module calculate weight is 4 ??? if i order 2 items, the weght in shipping calculate is 5, I dont know why does it add 3 lbs? I use Zone rate shipping

     

    Please let me know, thanks

  6. Hi all,

    When a customer order compete, there is an email to store owner (and also to customer). I think there is a bit inconvenience here: the email "Order process" to owner store doesn't have the email adress of customer. I have to go to admin pages -> customer and find the customer to reply him/her.

    It is easy for me (and all of OS user) if the email "order process" is sent from customer's email (of course, the email "order process" to customer is sent from the store owner). Then, we just click reply to contact with the customer and vice versa, customers too.

    I think, we have to 2 mail function while checkout processing, one to customer (sent from store owner) and one to us (sent from customer's email adress).

     

    Or at least, in "order process" email, we should include customer's adress.

     

    { I aslo want to include IP address of customer )

     

    Please give me an advice,

    thanks a lot.

×
×
  • Create New...