Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.


  • Content count

  • Joined

  • Last visited

  • Days Won


hungryfrank last won the day on May 17 2020

hungryfrank had the most liked content!

Profile Information

  • Real Name
  • Gender
  • Location
  • Interests

Recent Profile Visitors

8,677 profile views
  1. hungryfrank

    Attribute Images

    @LeeFoster @burt I uploaded the header tag it is functioning correctly. both the main image changes and the gallery is acting as I wanted. it woks even if u simply upload the images directly https://apps.oscommerce.com/Wo1Q8&options-with-images-show-in-main-image
  2. hungryfrank

    Attribute Images

    @LeeFoster $.get("images/sample/"+text) .done(function() { if( value > 0) { $("a.lb:first").html( "<img src=images/"+ {$prod_id} + "_" + selectedImage + ".jpg>"); $('a.lb:first img').addClass( "img-fluid" );$('a.lb:first img').addClass( "img-fluid" );} }).fail(function() { }); this is the part that checks if image exist. change the image source and get image first line looks for the image value>0 is so it docent change when it is switched to --select-- this is the part in mine $.get("images/sample/"+text) .done(function() { if( value > 0) $("a.lb:first").html(`<img src="${source}" style="width: 100%" class="img-fluid" />`); }).fail(function() { // if( value > 0) $("a.lb:first").html(`<img src="${source}" style="width: 350px" class="img-fluid" />`); });
  3. hungryfrank

    Attribute Images

    dose it work for u? I have almost solved the last part. I will post it when t is cleaned out. I am going to use a header tag instead of a hook. I will eventualy add a button that will give the final image if the shop owner decides to implement a multi option images. maybe if I figure out the exact sort order of attributes and options, have not looked at all can u post your header tag
  4. hungryfrank

    Attribute Images

    thanks Burt. I will play with this it seems that it answers a lot not my questions. thinking a simpler way would be to just add an active class to the image that is to be used. but this neccessitates to have the option-images to be in product_images. db while your way allows for a ftp upload of the images so they won't be in the thumbs. I like it better
  5. hungryfrank

    Attribute Images

    product_id_optionname.jpg 4_red.jpg but u can do your way also.
  6. hungryfrank

    Attribute Images

    I have this line but it doesn't work 100%. maybe 50% // $( '<div class="carousel-item text-center "><img src="images/store_logo.png" alt="" width="1680" height="1050" class="img-fluid" loading="lazy"></div>' ).insertBefore( "div.carousel-item:last" );
  7. hungryfrank

    Attribute Images

    this is what I have so far with a lot of help from stack <script> $(function() { var img_option = "<?php echo $_GET['products_id']; ?>"; const inputs = $('[id^=input_]').filter(function () { return this.id.match(/input_\d+$/); //regex for the pattern "input_ followed by a number" }); inputs.on('change', function() { let text = this.options[this.selectedIndex].text; let value = this.options[this.selectedIndex].value; let parenthesis = text.indexOf("(")-1; if( parenthesis > -1) text = text.substring(0,parenthesis); text=img_option + "_" +text; let source = `images/sample/${text}.jpg`; $.get("images/sample/"+text) .done(function() { if( value > 0) $("a.lb:first").html(`<img src="${source}" style="width: 100%" class="img-fluid" />`); $(".carousel-item.active").html(`<img src="${source}" style="width: 100%" class="img-fluid" />`); // $( '<div class="carousel-item text-center active"><img src="images/Image-10-22-1398-AP-at-18.40.gif" alt="" width="1680" height="1050" class="img-fluid" loading="lazy"></div>' ).insertBefore( "div.carousel-item:first" ); }).fail(function() { // if( value > 0) $("a.lb:first").html(`<img src="${source}" style="width: 350px" class="img-fluid" />`); }); }); }); </script>
  8. hungryfrank

    Attribute Images

    @burt I got the image in the Lightbox to. change, but the original is gone. I have no idea how to go forward. $(".carousel-item.active").html(`<img src="${source}" style="width: 100%" class="img-fluid" />`);
  9. hungryfrank

    Attribute Images

    please if u get to do it also implement option type 27 images only if I add a button to click to get the result. since there might be instances that one is not selected. I have resolved other issues, like not having an image, and working for all attributes. I wil post as soon as I cleanup. a little original. image I will figure it out to
  10. hungryfrank

    Attribute Images

    I am going to work on this and make an add-on. I think I am almost there. i got it to work or all attributes, but not showing blue circle. just showing blue and circle independently.
  11. hungryfrank

    Easy Admin Group - Login Issues

    DROP TABLE IF EXISTS `administrator_group_access` ; CREATE TABLE `administrator_group_access` ( `administrator_group_access_id` int(11) NOT NULL, `administrator_group_id` int(11) NOT NULL, `administrator_group_block` varchar(1000) CHARACTER SET utf8 NOT NULL, `administrator_group_access_file` varchar(50) CHARACTER SET utf8 NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; ALTER TABLE `administrator_group_access` ADD PRIMARY KEY (`administrator_group_access_id`); ALTER TABLE `administrator_group_access` MODIFY `administrator_group_access_id` int(11) NOT NULL AUTO_INCREMENT; run this in your phpmyadmin
  12. hungryfrank

    Attribute Images

    so lets say you have two attributes color red/greenn/blue shape. circle/square so do we want to show blue when blue is selected and when they choose circle then blue is replaced with circle it would be better to show a blue circle but this makes the whole thing more complicated.
  13. hungryfrank

    Express checkout 1_2 pages

    thanks. I will add it in a few days.i have some other mortification also to make all boxes switchable in admin.
  14. hungryfrank

    Attribute Images

    it needs a loop
  15. hungryfrank

    Attribute Images

    great. this is a working and usable as an add-on. but it has to work with all options.