Woocommerce Gallery

I’m using the Sydney theme to build my site and I want to arrange the Shop page a little differently. What’s the easiest way to do this? I basically just want to show products by category if possible. 

Topic Link: https://wordpress.org/support/topic/woocommerce-shop-page-template/

Admittedly I’m having a hard time reading through the text what you’re seeing at the moment, what you’re expecting to show up, and how you have things configured. 

Would you mind sharing screenshots of how things are configured as well as what you’re expecting to show up? If required, note that you can use a screenshot service like snag.gy to take/host screenshots 🙂


Reply Link: https://wordpress.org/support/topic/adding-different-shipping-costs-togther-at-the-checkout/#post-11432480

Ok Dat, thnx for helping. Great support. 

Reply Link: https://wordpress.org/support/topic/problem-with-structured-data-in-wc/#post-11432488

Seeing as the missing information will require someone to log in, you’ll want to get in touch with a web developer to take a closer look as login information cannot (and shouldn’t) be shared in a public forum like this.

With that said, it’s important to note that tax information is captured at the time the order takes place – it cannot be added retrospectively. This means that you’ll want to make sure that you had tax rates/settings configured at the time the order was placed.

Reply Link: https://wordpress.org/support/topic/missing-tax-amount-in-old-orders/#post-11432489

hi, thanks for your reply. My theme author will fix “copyrightHolder” warning, it is a theme issue. But as you can see my big problem is there aren’t “product” structured data…but I have only breadcrumbs and organization data…And I can’t undertand why

Reply Link: https://wordpress.org/support/topic/some-products-lost-product-structured-data/#post-11432490

When looking at your shop page, I see that the theme you’re using has a hard-coded percentage width for the <li> items that aren’t playing well with your margins. You’ll want to either get in touch with the theme developers or considering switching to a different theme altogether. 

Reply Link: https://wordpress.org/support/topic/last-item-on-product-grid-not-aligning/#post-11432510

It looks like you’re using PayPal Checkout – https://woocommerce.com/products/woocommerce-gateway-paypal-checkout/

This support forum is to support either PayPal Standard (included in WooCommerce core by default) or general issues with WooCommerce. 

I suggest following these steps: 

1. Follow this guide to enable and get the log https://docs.woocommerce.com/document/paypal-express-checkout/#section-15

2. Contact us at WooCommerce.com &gt; My Account &gt; Tickets. You may need to create an account.  We will be able to help you further there.

When clicking the link it’s just taking us to a landing page – I guess one needs to be logged in to see the screenshots?

Either way, the functionality you’re describing isn’t part of the core WooCommerce plugin. The default behaviour is a case of redirecting you to the single product page to select the variations from there. If you’re seeing a popup instead, you’ll want to reach out either to the theme developer OR the support staff at Elementor for more feedback on how to override that for mobile devices only – it’s not something that the core WooCommerce plugin has any direct control over.

Reply Link: https://wordpress.org/support/topic/woocommerce-mobile-choose-and-option-creates-pop-up-instead-of-drop-down-menu/#post-11432522

Hi there,

There’s no native functionality for that WooCommerce although it is possible to write a custom page template to run the product attribute loop. This would mean that, instead of crafting unique shortcodes on a per page basis, you could just select the page template to be used.

Of course, the custom coding required to do that is a bit more in-depth and you’ll want to get in touch with a web developer or one of the customization experts listed at https://woocommerce.com/customizations/.

WordPress automatically regenerate different thumbnail sizes to fit your theme settings. For example, if your product has 5 photos, it will load 5 original image file (original means these images are not automatically regenerated by wordpress) when someone hits your product page. Not only that, it will also load 5 additional photos for your thumbnails below the large image. The 5 additional thumbnail photos are automatically regenerated by wordpress. This leads to a total of 10 http request plus additional downloading times for those thumbnail images. Would it be better to just use the original files for these thumbnails so https request and download times can be decreased?

I am currently using this code to serve a scale dimension for thumbnails:
add_filter( ‘woocommerce_get_image_size_gallery_thumbnail’, function( $size ) {
return array(
‘width’ =&gt; 111,
‘height’ =&gt; 111,
‘crop’ =&gt; 0,
} );

How do I make the thumbnails to load from the same file source as the large image to avoid duplicated downloads?

Thank you.

Topic Link: https://wordpress.org/support/topic/page-speed-single-product-image-thumbnail-gallery/


I am not able to write a fully workable work but I have some general directions:  

1. First of all, you need to convert SKUs into product IDs: https://docs.woocommerce.com/wc-apidocs/function-wc_get_product_id_by_sku.html

2. After that, you can use the following code to save upsell and cross_sell products: 

$product = wc_get_product( $productId );
if ( $product ) {
  $product-&gt;set_upsell_ids( array (1, 2, 3) );
  $product-&gt;set_cross_sell_ids( array (4, 5, 6) );



Reply Link: https://wordpress.org/support/topic/how-to-add-upsells-cross-sells-to-a-product-via-php/#post-11432617

Hi there,

This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

I can also recommend the following places for more development-oriented questions:

WooCommerce Slack Community: https://woocommerce.com/community-slack/

Hi Ben,

I’m not immediately aware of any payment methods that add that detail to the order meta. With that said, would you mind elaborating a bit more on how you foresee the type of card being an indicator of age? Surely someone can borrow a card or even get a prepaid online credit card to bypass age verification?

Reply Link: https://wordpress.org/support/topic/checking-credit-or-debit-card-used/#post-11432649

Hello RK,
thank for the replay.
I’ll join the fb and slack groups!

Anyway, I developed my code looking Coingate and OpenNode WC Gateway plugins, the code is very very similar.

Those plugins are working, my code not.

I think, the order status should update when the payment_callback function is executed, but I need help because is not working.

Reply Link: https://wordpress.org/support/topic/after-payment-order-status-still-waiting-for-payment/#post-11432677

If I understand correctly, you’d like to order the products alphabetically according to their category while in admin – correct?

If that’s indeed correct, you’ll want to make use of additional 3rd party plugins to add that filter option. Based on a cursory search, the following plugin should help with that: https://wordpress.org/plugins/woocommerce-jetpack/. For more information on that specific feature, have a look at the following guide: https://booster.io/features/woocommerce-admin-orders-list/

Reply Link: https://wordpress.org/support/topic/sorting-product-categories/#post-11432685

Hey, i just added the feature where a customer gets free shipping when shopping for a certain amount. It seems to work, however right now it just shows up as a choice in shipping settings when reaching that amount. How do I make it so that it’s either default when shopping over that amount, or alternatively replacing the choice of paying for it when reaching the amount?

Topic Link: https://wordpress.org/support/topic/free-shipping-when-exceeding-an-amount/

Hi there!

To remove the WooCommerce redirect for the “Lost Password” link, you’ll want to remove the “Lost Password” endpoint setting as found under **WooCommerce &gt; Settings &gt; Advanced &gt; Account endpoints**. By simply leaving that blank, the user will be forced to use the default WordPress login password reset form 🙂

Reply Link: https://wordpress.org/support/topic/how-to-disable-woocommerce-password-recovery-and-use-wordpress-default/#post-11432433

clayray wrote:

Thanks for your help Shane!
My hosting company pointed out that some of the WP database tables were grayed out in PHPAdmin because they didn’t have Primary keys or Autoincrement enabled.
When the whole site was moved to a different host a couple of months ago something must have gone wrong with the SQL import, resulting in corrupted tables.
This is what was causing the problems, and I’ve managed to repair all the tables, as far as I can tell.
The cart appears to be working again!
Thanks again… I should have checked the WP log file right at the start, it would have saved us all some time!

Reply Link: https://wordpress.org/support/topic/woocommerce-add-to-cart-and-update-cart-not-working/#post-11432697

Hi there,

This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

I can also recommend the following places for more development-oriented questions:

WooCommerce Slack Community: https://woocommerce.com/community-slack/
Advanced WooCommerce group on Facebook: https://www.facebook.com/groups/advanced.woocommerce/

With that said, you’re overriding the same variable twice. You’ll want to make sure that $args = array( is unique 🙂

Reply Link: https://wordpress.org/support/topic/save-data-from-2-custom-fields-in-database/#post-11432708

Hi there,

When looking at the page in question, I see that the CSS from your theme is causing some interesting layouts. With this in mind, are you still experiencing the same issue after deactivating all of your plugins (except WooCommerce) and switching to the default [Twenty Nineteen](https://wordpress.org/themes/twentynineteen/) theme?

Reply Link: https://wordpress.org/support/topic/woo-commerce-page-formatting-issue-macbook-pro/#post-11432713

Hi! There,
My website is https://arizonatoys.in. Everything was going fine, But suddenly all products has vanished from my website admin panel. but still all product showing in database also showing in Media, But in All Products tab it’s not showing. I cant understand what’s going on. Please help me with this. this is running e-commerce website, and I can;t afford loss.  

Topic Link: https://wordpress.org/support/topic/products-has-vanished-automatically/

The external products should not be imported into the Woocommerce backend. The idea is something like this:
– We get the product details via API and show them in our shop, on category pages as well as on product detail pages. (This is easy and not our problem.)
– When a user wants to buy such an API product it should be added to the cart while fetching price and other details from that API, not from the Woocommerce backend.
– It should be possible to buy products from our shop (products in our backend) as well as products from that external source (not in our backend) as a single purchase.

Reply Link: https://wordpress.org/support/topic/integrate-external-products-using-an-api/#post-11432805

I’ve tried testing this snippet, I hope that helps. 

In fact, you need two parts: 

1. Support your own attribute for the [products] shortcode.
2. Modify the query to use your $query_args. 

// https://developer.wordpress.org/reference/hooks/shortcode_atts_shortcode/
// Add the code to support your own attribute
add_filter(&#039;shortcode_atts_products&#039;, &#039;htdat_shortcode_atts_products&#039;, 10, 4);
function htdat_shortcode_atts_products( $out, $pairs, $atts, $shortcode ){
  if ( isset ($atts[ &#039;customers_best_selling&#039; ]) &amp;&amp; $atts [ &#039;customers_best_selling&#039; ] ) {
        $out[ &#039;customers_best_selling&#039; ] = true; 
  } else {
        $out[ &#039;customers_best_selling&#039; ] = false;     
  return $out;

// Modify the query args 
// See another example https://docs.woocommerce.com/document/woocommerce-shortcodes/#section-11
add_filter( &#039;woocommerce_shortcode_products_query&#039;, &#039;htdat_woocommerce_shortcode_products_query&#039;, 10, 2 );
function htdat_woocommerce_shortcode_products_query( $query_args, $attributes ) {

  if ( $attributes[ &#039;customers_best_selling&#039; ] ) {
      // write your own $query_args here 
      // Example: $query_args[ &#039;post__in&#039; ] = array (1027, 959);
  return $query_args;

I hope that gives you some ideas.  

Reply Link: https://wordpress.org/support/topic/adding-a-special-product-attribute-to-the-products-shortcode/#post-11432835

I have a trouble with checkout updating: firstly i’m selecting country “Russia”, select “Пункт самовывоза: ” shipping method and select http://prntscr.com/nc7ssq , http://prntscr.com/nc7t58 any pickup point. After this I need reload a checkout to show new pickup point (using jQuery(document.body).trigger("update_checkout");). But it’s not happening. 
But… If I change country from Russia to any other, and to Russia again – new pickup point will show.

To save point i use WC()-&gt;session-&gt;set

Topic Link: https://wordpress.org/support/topic/checkout-updating/

I added the memory line in the wp-config file, and memory in woocommerce now shows 256; however, I still can’t see the page. I checked the error log and there’s nothing there. 

Reply Link: https://wordpress.org/support/topic/product-not-appearing/#post-11433186

@slash1andy Hi, Thanks for answering. but i want to put custom text in dashboard on my account page. Please see this screenshot. not login or register page.

Reply Link: https://wordpress.org/support/topic/how-to-add-custom-text-below-user-id-in-my-account-page/#post-11433223

Dat Hoang wrote:


It seems that you’re trying to duplicate “Add to Cart” button from this line https://github.com/woocommerce/woocommerce/blob/0f731d9c3f9a7e75ac5d8ebd9e6ea646165494c1/includes/wc-template-hooks.php#L175

add_action( &#039;woocommerce_single_product_summary&#039;, &#039;woocommerce_template_single_add_to_cart&#039;, 30 ); 

If so, you would do something like this for your code:  

add_action( &#039;woocommerce_after_single_product_summary&#039;, &#039;woocommerce_template_single_add_to_cart&#039;, 14 ); 

Otherwise, if you still want to use your code, you should call the woocommerce_template_single_add_to_cart function directly: 

function repeat_paypal(){
        echo &#039;Purchase now:&#039;;
add_action( &#039;woocommerce_after_single_product_summary&#039;, &#039;repeat_paypal&#039;, 14);

Your code did not work because there is no add_action for woocommerce_template_single_add_to_cart.

Reply Link: https://wordpress.org/support/topic/repeat-paypal-express-button-on-product-page-2/#post-11432428

Dani Ionescu wrote:

Hello Shane,

The logs was already enabled. The path with directory has rights 755 (644 files www-data). But as you can see from the image bellow no “paypal-2019-04-16-a59fc3ff03467280e48de86788b720d7.log” inside! 🙁 .


kellymetal wrote:

Hi there!

To clarify, under the General settings of the coupon, is your coupon set to “Percentage discount” or “Fixed Cart discount”?

If a coupon is set to “Percentage discount”, then it will still apply the coupon to the Cart but the percentage will not be applied to items that are on sale. On the other hand, with “Fixed Cart discount”, the coupon will not be able to be used if there are Sale items in the Cart. The description in the documentation here is a bit clearer (for the “Exclude sale items” description):

Exclude sale items – Tick the box if you don’t want this coupon to apply to products on sale. Per-cart coupons do not work if a sale item is added afterward.

I hope this helps! Please let me know if you have any questions.

Reply Link: https://wordpress.org/support/topic/per-cart-coupon-not-applying/#post-11433560

kellymetal wrote:

Hi there!

You could add related products to the sidebar by using the Related Products shortcode which comes with WooCommerce and placing it in a Text Widget in the sidebar.

We have documentation about the shortcode available here:

There’s a guide for using shortcodes in widgets here:

You may need to style it a bit with CSS to get it displaying the way you want with your theme.

I hope that helps! Have a wonderful day!

Reply Link: https://wordpress.org/support/topic/add-related-products-to-sidebar/#post-11433616

Hi there,

The WooCommerce Store Notice uses a cookie to track that it has been dismissed. By default, the notice should stay hidden until cookies have been cleared on that particular device. If you are seeing it reappear every time the browser is closed and reopened, then please double check to make sure your browser is allowing cookies.

As you’ve noticed, there is no built-in setting to “Hide the notice for ‘X’ hours once dismissed”, and I do not see any plugin solutions either.

It would be great to have you add this to the WooCommerce Ideas Board, which is where developers go to look for future plugin features and improvements:

I hope that helps! Have a wonderful day!

Reply Link: https://wordpress.org/support/topic/hide-store-notice-for-x-hours-after-dismissed/#post-11433675

Hi there,

I’ve just checked on my test site with the latest versions of WooCommerce and Storefront, but the product price filter appears to be working as expected.

Please make sure you click the “Filter” button after adjusting the price range.

If it is still not working, then you may be seeing a conflict with either your theme or another active plugin on the site. Please try temporarily disabling all plugins except for WooCommerce, and switch back to the default Storefront theme:

After that, check to see if the issue is gone. If that resolves the issue, then re-enable the theme first, and then plugins one at a time until you find the one that’s causing the conflict.

You can read more about conflict testing in our Self Service Guide here:

I hope that helps! Have a wonderful day!

Reply Link: https://wordpress.org/support/topic/price-filter-not-filtering-2/#post-11433721