nicholas_benoit
Forum Replies Created
-
Forum: Plugins
In reply to: [Smart Variations Images & Swatches for WooCommerce] No images on mobileDone! Thanks again!
Forum: Plugins
In reply to: [Smart Variations Images & Swatches for WooCommerce] No images on mobileGood call! I just checked out the live version on the site’s real domain and they are all absolute, but when hosted through Desktop Server Pro it removes them. I guess it doesn’t mess w/ the plugin because it’s all done after the fact in javascript.
Thanks for the help!
Forum: Plugins
In reply to: [Smart Variations Images & Swatches for WooCommerce] No images on mobileGot it to work!
I had to change your CDN example to:
function svi_cdn_image_url($image) { $url = $image[0]; $types = ["gif", "png", "jpg"]; $type = substr($url, -3); if (in_array($type, $types)) { $site = get_site_url(); $cdn = "{ngrok URL}"; $image[0] = str_replace($site, $cdn, $url); } return $image; } add_filter('wp_get_attachment_image_src', 'svi_cdn_image_url');Interestingly enough, with the filter in place, it adds the ngrok URL to all of the images, even the ones WooCommerce was displaying as relative in my example above. If I remove the filter, they go back to relative.
All good now!
- This reply was modified 6 years, 1 month ago by nicholas_benoit.
- This reply was modified 6 years, 1 month ago by nicholas_benoit.
Forum: Plugins
In reply to: [Smart Variations Images & Swatches for WooCommerce] No images on mobileThanks David,
I realize the title of my original post should have been updated. When I first started asking the question, I thought it was just a mobile issue and forgot to update there. Woops.
I haven’t been able to get the filter to work, but I’ll keep messing with it and see if I can figure it out. It was originally throwing an error saying it wanted 4 arguments but only 1 was available. I got it to stop throwing the error by only passing only $image, but then it was still using the site URL and not the ngrok url that I replaced {Insert cdn URL here} with.
Also, as far as I can tell, WooCommerce uses relative URLs for all of it’s images. At least that’s what it shows when I inspect the element of any image that it pulls.
See https://40fc667c.ngrok.io/home/gokey-boots/the-supreme/ for example. The thumbnails pulled for the related products at the bottom are all relative.
It’s not a huge deal, I can set up a staging environment on the site’s cPanel, I was just hoping to be able to share it w/ ngrok.
Thanks again,
Nick
Thanks for the fast reply, Ramona – this solution worked!
Forum: Plugins
In reply to: [WP Menu Cart] Menu cart always showingI too have this problem. Did you ever find a solution?
Forum: Plugins
In reply to: [WooCommerce: No PO Boxes] Error in WP on Plugin PageThanks!
Hi pizzaport,
I’m in no way affiliated w/ WooCommerce, but I’ve been having some similar problems with content not showing up on pages, but only in Chrome. Are you by any chance using the built-in gallery, zoom, and lightbox? I found that disabling the lightbox but keeping the gallery fixed the issue, and now I just use Colorbox for my lightbox.
Forum: Plugins
In reply to: [WooCommerce] Cross Sell / Upsell not returning resultsMore info – Status Report:
### WordPress Environment ### Home URL: http://106.4c0.myftpupload.com Site URL: http://106.4c0.myftpupload.com WC Version: 3.2.2 Log Directory Writable: ✔ WP Version: 4.8.3 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ✔ Language: en_US ### Server Environment ### Server Info: Apache PHP Version: 5.6.30 PHP Post Max Size: 65 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.45.0 OpenSSL/1.0.1e SUHOSIN Installed: – MySQL Version: 5.6.32 Max Upload Size: 64 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 3.2.2 WC Database Prefix: wp_py0fz2f7h5_ Total Database Size: 167.41MB Database Data Size: 137.71MB Database Index Size: 29.70MB wp_py0fz2f7h5_woocommerce_sessions: Data: 0.01MB + Index: 0.00MB wp_py0fz2f7h5_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB wp_py0fz2f7h5_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB wp_py0fz2f7h5_woocommerce_order_items: Data: 2.52MB + Index: 1.52MB wp_py0fz2f7h5_woocommerce_order_itemmeta: Data: 10.52MB + Index: 9.03MB wp_py0fz2f7h5_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB wp_py0fz2f7h5_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.05MB wp_py0fz2f7h5_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB wp_py0fz2f7h5_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB wp_py0fz2f7h5_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_woocommerce_log: Data: 0.00MB + Index: 0.00MB smackuci_events: Data: 0.00MB + Index: 0.00MB smackuci_history: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_aws_index: Data: 2.52MB + Index: 0.00MB wp_py0fz2f7h5_commentmeta: Data: 0.08MB + Index: 0.11MB wp_py0fz2f7h5_comments: Data: 5.52MB + Index: 4.88MB wp_py0fz2f7h5_filemeta: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_links: Data: 0.02MB + Index: 0.02MB wp_py0fz2f7h5_nextend2_image_storage: Data: 0.02MB + Index: 0.02MB wp_py0fz2f7h5_nextend2_section_storage: Data: 0.02MB + Index: 0.03MB wp_py0fz2f7h5_nextend2_smartslider3_generators: Data: 0.02MB + Index: 0.00MB wp_py0fz2f7h5_nextend2_smartslider3_sliders: Data: 0.02MB + Index: 0.00MB wp_py0fz2f7h5_nextend2_smartslider3_sliders_xref: Data: 0.02MB + Index: 0.00MB wp_py0fz2f7h5_nextend2_smartslider3_slides: Data: 0.06MB + Index: 0.00MB wp_py0fz2f7h5_omega_index_status: Data: 36.64MB + Index: 0.00MB wp_py0fz2f7h5_options: Data: 4.52MB + Index: 0.00MB wp_py0fz2f7h5_pmlca_links: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_pmxe_exports: Data: 0.07MB + Index: 0.00MB wp_py0fz2f7h5_pmxe_google_cats: Data: 0.26MB + Index: 0.00MB wp_py0fz2f7h5_pmxe_posts: Data: 0.07MB + Index: 0.03MB wp_py0fz2f7h5_pmxe_templates: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_pmxi_files: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_pmxi_history: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_pmxi_imports: Data: 0.59MB + Index: 0.00MB wp_py0fz2f7h5_pmxi_posts: Data: 2.46MB + Index: 0.56MB wp_py0fz2f7h5_pmxi_templates: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_postmeta: Data: 55.59MB + Index: 0.00MB wp_py0fz2f7h5_posts: Data: 4.52MB + Index: 2.59MB wp_py0fz2f7h5_redirection_404: Data: 2.52MB + Index: 3.34MB wp_py0fz2f7h5_redirection_groups: Data: 0.02MB + Index: 0.03MB wp_py0fz2f7h5_redirection_items: Data: 0.02MB + Index: 0.08MB wp_py0fz2f7h5_redirection_logs: Data: 0.02MB + Index: 0.08MB wp_py0fz2f7h5_termmeta: Data: 0.08MB + Index: 0.06MB wp_py0fz2f7h5_terms: Data: 0.13MB + Index: 0.13MB wp_py0fz2f7h5_term_relationships: Data: 1.52MB + Index: 0.42MB wp_py0fz2f7h5_term_taxonomy: Data: 0.16MB + Index: 0.16MB wp_py0fz2f7h5_usermeta: Data: 6.52MB + Index: 6.03MB wp_py0fz2f7h5_users: Data: 0.25MB + Index: 0.25MB wp_py0fz2f7h5_woocommerce_shipping_table_rates: Data: 0.02MB + Index: 0.00MB wp_py0fz2f7h5_woocommerce_shipping_zone_shipping_methods: Data: 0.02MB + Index: 0.00MB wp_py0fz2f7h5_woof_query_cache: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_wysija_campaign: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_wysija_campaign_list: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_wysija_custom_field: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_wysija_email: Data: 0.03MB + Index: 0.00MB wp_py0fz2f7h5_wysija_email_user_stat: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_wysija_email_user_url: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_wysija_form: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_wysija_list: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_wysija_queue: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_wysija_url: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_wysija_url_mail: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_wysija_user: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_wysija_user_field: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_wysija_user_history: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_wysija_user_list: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_yith_wcwl: Data: 0.02MB + Index: 0.03MB wp_py0fz2f7h5_yith_wcwl_lists: Data: 0.00MB + Index: 0.00MB wp_py0fz2f7h5_yoast_seo_links: Data: 0.15MB + Index: 0.03MB wp_py0fz2f7h5_yoast_seo_meta: Data: 0.04MB + Index: 0.04MB ### Post Type Counts ### acf-field: 1 acf-field-group: 1 attachment: 1765 customize_changeset: 32 jaw-portfolio: 1 jaw-team: 2 ml-slide: 3 ml-slider: 2 nav_menu_item: 59 page: 28 post: 20 product: 479 product_variation: 3389 revision: 101 sa_slider: 1 shop_coupon: 711 shop_order: 5823 wpcf7_contact_form: 3 wysijap: 1 ### Security ### Secure connection (HTTPS): ❌Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates. Hide errors from visitors: ✔ ### Active Plugins (1) ### WooCommerce: by Automattic – 3.2.2 ### Settings ### API Enabled: ✔ Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) outofstock (outofstock-2) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-3 (rated-3-2) rated-4 (rated-4) rated-5 (rated-5) ### WC Pages ### Shop base: #22098 - /shop/ Cart: #13155 - /cart/ Checkout: #13156 - /checkout/ My account: ❌ Page ID is set but the page does not exist Terms and conditions: ❌ Page not set ### Theme ### Name: Twenty Fifteen Version: 1.8 Author URL: https://ww.wp.xz.cn/ Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ✔ ### Templates ### Overrides: –Forum: Plugins
In reply to: [RICG Responsive Images] Firefox not loading in Larger Images on resizeIt’s only local right now. I know that doesn’t help much :/
Forum: Plugins
In reply to: [RICG Responsive Images] Firefox not loading in Larger Images on resizeFor mobile I’m testing on an iPhone 5 and iPhone 6, using iOS 9.1 with the latest Chrome and Safari. For desktop, I’ve tested on a 24-inch iMac (Early 2009) running Yosemite 10.10.5 with the latest Chrome, Safari and Firefox, and on a 27-inch Retina iMac (Late 2014), also on Yosemite 10.10.5 with the latest Safari, Chrome, and Firefox. And that’s just regular stable vanilla Chrome in all cases, not Canary.
Thanks,
-Nick
Forum: Plugins
In reply to: [RICG Responsive Images] Firefox not loading in Larger Images on resizeJust a bit of an update – it turns out mobile Chrome is also only displaying the 2048×2048 image when I update max_srcset_image_width. It appears to first load in the 1024×1024 image, and then quickly swaps it out to 2048×2048. But with the function disabled, it only loads in the 600×600 image.
The desktop version is working properly.
Unfortunately my site is not live at the moment. But yes, there is a separate template file being used for this post type, and the loop on that page looks like:
<?php $args = array ('post_type' => 'portfolio', 'paged' => $paged); $wp_query = new WP_Query ( $args ); ?> <?php if ( have_posts() ) : ?> <?php /* Start the Loop */ ?> <?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?> <?php $termsArray = get_the_terms($post->ID, "project_type"); $termsString = ""; foreach ($termsArray as $term) { $termsString .= $term->slug.' '; } get_template_part( 'template-parts/content', 'project_list' ); ?> <?php endwhile; ?>I can confirm that pagination is working on this template without the plugin. It’s just that the plugin is not replacing the pagination on this template with the “Load More Posts” link the way that it does on index.php and my taxonomies page.
Thanks,
-Nick
I’m having the same issue.
the_post_thumbnail() is returning a standard img tag with only the standard width, height, src, class, and alt attributes.
Forum: Plugins
In reply to: [RICG Responsive Images] Firefox not loading in Larger Images on resizeWell, I got it to work in Chrome …
I had to replace “1024” in both your and Joe’s functions with 2048 since that is the size of my ‘full’ image, but doing so got it to where I now have a srcset with my 2048w image included, and my custom sizes array is now being used.
However, in Safari all that will display now is the 2048 image even with cache disabled. It seems like it should be working the same as Chrome though, since I’m getting the same srcset and sizes (albeit as data-pfsrcset in Safari).
Firefox still only displays a 1024px image. It is using the correct sizes array though, and srcset now only includes my 2048w image instead of the 300w like it did before.
-Nick