Jump to content

CartDesign

Members
  • Content count

    9
  • Joined

  • Last visited

Profile Information

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. CartDesign

    Overwriting system files

    This is the best solution to keep changes away from the core. Are there any tutorials about creating add-ons?
  2. CartDesign

    Overwriting system files

    I want to change some functions in oscommerce but I don't want them to be overwritten when I update the oscommerce core. For example, I want to change the tep_image function.
  3. CartDesign

    Overwriting system files

    How does oscommerce overwriting system files, provided in the installation, look like? So that the changes continue to work, for example, after updating the entire e-commerce
  4. CartDesign

    Serve images in next-gen formats

    Browsers from Microsofft do not support webp files. And here with htaccess may be a problem. I like your solution :). It's easier to rebuild a ready module than to write something from the beginning.
  5. CartDesign

    Serve images in next-gen formats

    For example, I have a translucent banner measuring 1900 by 911 pixels. The image in png format is 577 kb, and in webp format is 128 kb. The banner consists of a slide show with three such images. On the banner alone I have a saving of over 1 MB. The images would be generated only once. Then the script would only check if a given image size exists. For example, the latest products. tep_image(DIR_WS_IMAGES . $products_new['products_image'], $products_new['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) Here it turns out that oscommerce also creates the miniatures of images. If only additional webp format creation is added to this function? Before displaying the path, you can check if the browser supports webp, for example, the following code: if((isset($_SERVER['HTTP_ACCEPT']) === true) && (strstr($_SERVER['HTTP_ACCEPT'], 'image/webp') !== false)){ Thanks to the above script can pass the path to jpg or webp. I'm already writing the script myself. I need information from You where to find the file with the tep_image function.
  6. Thank you for your answer. I will then follow the competing stores.
  7. CartDesign

    Serve images in next-gen formats

    MrPhil Below I will give you an ideal solution that would suit me. To the function I pass the src of the image as well as the width and height. The function checks if the image named e.g. image-300x400.webp exists. If so, it returns a new src. If not, it converts the original to webp with appropriate dimensions. That's why I would need some kind of php class that converts to webp. I would do the rest This is a manual conversion tool. I want to automate all this. JcMagpie or does it require installation on the server?
  8. Hi I am testing my online shop in the new version of Page Speed Insight and I have a question for you. How to solve the problem: Serve images in next-gen formats. I read that the best format is webp. How to convert images in oscommerce (on the fly) to webp format?
  9. Hi I start an e-commerce business. As I try to do everything myself, I need help Does anyone know the services with ready-made terms and conditions for various industries (for free). Or maybe there is a generator of rules for online shops?
×