Jump to content

hungryfrank

Members
  • Content count

    427
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by hungryfrank

  1. this add-on combines the shipping and payment page and can bypasses the checkout confirmation page as an option. there is no core changes. simply upload and install the header tag module two folders 4-5 works up to 1.0.5. 5.5 was tested on .2 and .5 https://apps.oscommerce.com/YzQoF&exp-checkout-1-2-page-checkout thanks to JcMagpie
  2. 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
  3. 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" />`); });
  4. 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
  5. 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
  6. hungryfrank

    Attribute Images

    product_id_optionname.jpg 4_red.jpg but u can do your way also.
  7. 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" );
  8. 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>
  9. 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" />`);
  10. 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
  11. 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.
  12. 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
  13. 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.
  14. 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.
  15. hungryfrank

    Attribute Images

    it needs a loop
  16. hungryfrank

    Attribute Images

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

    Attribute Images

    @LeeFoster you can probably add the images to the product like a regular large image. name the image the same thing as the option, and access it like that. this way you also have them in the thumbs
  18. hungryfrank

    Attribute Images

    I prefer the header tag. removing a hook file is dangerous
  19. hungryfrank

    Attribute Images

    did get it to work?
  20. hungryfrank

    Attribute Images

    you have to put it in loop so it works on all the attribute/options
  21. hungryfrank

    Attribute Images

    global $_SERVER first if it didn't work then global $PHP_SELF; if($PHP_SELF='product_info.php'){ instead of if (in_array(basename($_SERVER['PHP_SELF']), $this->safe_pages)) { check the spelling
  22. hungryfrank

    Attribute Images

    global $PHP_SELF;
  23. hungryfrank

    Attribute Images

    like jquerry.php shop/sitewide/ and condition it for if php_self= product_info.php or maybe you can make a pi module. or header_tag module I think u can put it
  24. hungryfrank

    Attribute Images

    you have to put the script in a hook or module.
  25. hungryfrank

    Attribute Images

    <script> $(function() { var img_option='images/sample/'+'lime-1'+'.jpg'; $("#input_1").change(function(){ val = $("#input_1 option:selected").text(); $("a.lb:first").html( "<img src="+ img_option+">"); $('a.lb:first img').css({'width' : '150px' , 'height' : '150px'}); $('a.lb:first img').addClass( "img-fluid" ); }); }); </script> you can add the class also
×