Forum Replies Created

Viewing 15 replies - 1 through 15 (of 23 total)
  • Thread Starter Tomi

    (@tomitech)

    I have finished the webpage (tomitechnologies dot com) but gtmetrix gives it an F.

    I think the size of the photos may be the biggest reason why.

    I am happy with the image sizes, but I think it’s loading all of the photos in their original, on the main page. I want it to load the original in the same way this page does (https://om4.com.au/client/preparing-image-files-before-uploading-with-wordpress/) or alternately, manually clicking it ‘open image in new tab’ is fine. But I want it to only load smaller photos on the front. I have my ‘large’ set to 1024pixels and I am happy with that on visual (the page I linked), but WP did not create this. So, is this the point where I should activate ShortPixel?

    p.s. I didn’t write out the link to my site because I don’t want bots locking on and forever trying to hack it.

    Thread Starter Tomi

    (@tomitech)

    I am an affiliate for the lights. The actual physical lights are the product.

    I got Irfanview and what I did was ctrl + r, kept the same size and dpi, but resampled with lanczos to drastically reduce the size on disk. The results are better than anything I’ve ever seen before. The size range is now 450kb to 1250kb with same noticeable quality! (from 5-8MB before).

    So I have all my pics now, and will upload them via FTP soon, then I think I’ll just use WP in built re-sizing. Since Irfanview already compressed it, I don’t think there is any use in a plugin unless it gives me other benefits.

    I will update later. Thanks for the help!!!

    Thread Starter Tomi

    (@tomitech)

    Goal: Show off the photo very well. Photos (professionally taken) are of commercial light tubes that I would like to sell to customers. I would also like efficient use of storage – if size could be reduced while maintaining same observable quality, I would like to do that.

    An example of a photo is 300 dpi, 8061 x 5374 pixels, jpg.

    Since you haven’t mentioned any plugins, it seems you are recommending I do it all manually? I don’t fully understand what you mean when you say upload images via FTP and then you say make a reasonable size for use on a web page and upload that to WP. That sounds like 2 different paths. One – upload originals via FTP to server, and two – resize (or reduce dpi) manually and upload through WP.

    One of the reasons I mentioned using plugins is because I have 38 photos for this project that I would like to include, and manually resizing each one seams like a lot of work.

    Thanks for the reply! And, sorry if this is a bad question. I genuinely did look into this and am unsure of how to maximize quality while minimizing disk usage.

    Thread Starter Tomi

    (@tomitech)

    Yes, that is exactly what I have been looking for, THANK YOU SO MUCH! So far it seems as if all I had to do was remove ” && sizeof($default_attributes) == 1″ so that it just looks at the variations. At the moment it seems to work, but I have a feeling it’s flawed, because when I echo, it only refers to the first attribute:

    	echo reset($variation['attributes']);
    	echo nl2br ("\n");
    	echo reset($default_attributes);
    	echo nl2br ("\n");

    returns

    china
    china

    even though this product has 2 attributes (1 variation though, since both attributes have only 1 value). But I don’t think it matters cuz there’s only 1 variation, so I’m not sure if there’s even a point in that if statement:

    if( reset($variation['attributes']) == reset($default_attributes) ) :

    Anyway, I think it should work fine as I don’t see any reason for any further logic after it’s been determined there is only 1 variation. This was a great learning experience. I got to make my own little modification, even if its super tiny. Thanks again!

    I’m still willing to look into this further though, because of some of the unknowns I mentioned.

    Regards

    Thread Starter Tomi

    (@tomitech)

    I found in another thread:
    Hannah S. said that “WooCommerce product variations don’t know how to handle conditional logic.”

    …but how can this be if the file that deals with this is written in PHP?
    single-product/add-to-cart/variable.php

    Is PHP not a conditional language?

    Thread Starter Tomi

    (@tomitech)

    This worked perfect, Thank You very much lorro!

    This is the first thing I have in additional CSS.
    Will it be erased if the theme updates?
    I do have a child theme.

    Thread Starter Tomi

    (@tomitech)

    tomitechnologies.com

    Thanks

    Thread Starter Tomi

    (@tomitech)

    I understand this is not just for posts now. When I did this, it only did it for 30 rows. I then did the following step (it said 124 rows for that one). I have 366 pictures. For both, I had to put the URL in double quotes (“), else it wouldn’t work. In short, it didn’t work. Next step is to restore from backup because every picture on my site will no longer display. I don’t understand why. I planned this very carefully…

    Thread Starter Tomi

    (@tomitech)

    Perfect, thanks!

    Thread Starter Tomi

    (@tomitech)

    Yea it can be closed but I want to give a note for anyone reading this in the future with the same problem: Don’t even worry about the “PayPal” payment option, just use “PayPal Checkout”. The “PayPal” option likely isn’t supported anymore, hence the payment on Hold. So go with “PayPal Checkout” and “Stripe” as these seem like a normal way to go.

    Thread Starter Tomi

    (@tomitech)

    OK, it is fixed now with the update. Thank you.

    Regards,
    Tomi

    Thread Starter Tomi

    (@tomitech)

    Yea, I want to have an alternative where they don’t need to have a PayPal account, or have to sign up for any sort of account. Just need access to a credit card.

    Thanks!

    Thread Starter Tomi

    (@tomitech)

    Yea, I already have that guide bookmarked. Didn’t fix anything. If it does the same thing, I am fine with using PayPal Checkout. The reason I wanted both was so I gave customers more options to pay. But, it seems to me they both have the same payment options and are the exact same. The only difference being that PayPal Checkout opened up a popup window in your site, instead of re-directing, correct?

    So yea, I guess I can just remove PayPay [standard]. I’m new to this so I just want to make sure I am offering my customers a variety of ways to pay. Is there perhaps any popular payment option that PayPal Checkout does not offer/support?

    Thanks,
    Tomi

    Thread Starter Tomi

    (@tomitech)

    Solution: The code I gave above is correct, but also the page template needs to be called “Woocommerce – My Account”. I had it as “Container – Center Title”. Soner from flatsome UX Themes Support figured it out for me.

    Thanks for being by my side!

    • This reply was modified 5 years, 10 months ago by Tomi.
    • This reply was modified 5 years, 10 months ago by Tomi.
    Thread Starter Tomi

    (@tomitech)

    OK, so after finally getting a child theme setup, I can continue this again. The dev gave me some code to put into the advanced options for the theme, custom css, all screens.

    body.woocommerce-wishlist .my-account-header.page-title
    {
    	display: none !important;
    }

    However, it didn’t seem to remove the title. Not even when I put it in the style.css. I figured I’ll reply to give an update since it’s been over a week.

Viewing 15 replies - 1 through 15 (of 23 total)