Okay
  Public Ticket #802602
Price not displaying using Woocommerce Product Variation Swatches
Closed

Comments

  • Tarquin started the conversation

    Hi there,

    Please see attached correspondence with the Extension developers where this is concluded to be a theme issue.

  • [deleted] replied

    Hi Tarquin,

    Is it possible for you to send us your FTP credentials and the page URL with this issue.

    Please note that when attaching credentials do not forgot to check the "PRIVATE REPLY" button, so your credentials will be visible only to me.

  •   Tarquin replied privately
  •   [deleted] replied privately
  •   Tarquin replied privately
  • [deleted] replied

    Hi Tarquin,

    After checking for an hour theme files I finally saw that the code you have added in child theme > functions.php is causing price not to show:


    (view large version)

    If you remove that code the price will show. 

    Contact the developer who have added that code in child-theme and apply any fix to that.

  • Tarquin replied

    Thanks for this!

    This code was added because we do not wish to display variable price ranges (eg $3125 - $6750). If I remove this then how can one display the base starting price only on variable products?


  • [deleted] replied

    Hi Tarquin,

    The code can be fixed only for those products, for example you may modify the output:

    if ( $product->min_variation_price >= 3125 && $product->min_variation_price <= 6750 ) {
        // Do something here
    }

    The code that shows empty price should be removed:

    $price = ''; 

    On line 21.

  • Tarquin replied

    Thanks! Would this be specific and need to be duplicated for each variable product?

  • [deleted] replied

    Hi Tarquin,

    This is general code and will be applied to all products that have minimum price of 3125 and 6750.

  •   Tarquin replied privately
  • [deleted] replied

    Hi Tarquin,

    I do not understand where is the problem here?

    Is it possible to describe me the step by step procedure.

    This is not even a part of our support scope, however I am helping you to fix this probably.

  • Tarquin replied

    We do not want the price range to display. Annotated in red in the attached.

  • Tarquin replied

    Thanks for the help. The plug-in support referred me to your support as the issue is a theme related conflict.

  • [deleted] replied

    Hi Tarquin,

    The code you added to the child theme was the issue, not our theme code.

    If you want to hide the variable price add this CSS:

    .product-type-variable [itemprop="offers"] {
        display: none;
    }

    To apply Custom CSS, on WP admin panel menu click Custom CSS link (as shown here).

    Hopefully this will work for you the way you expect.

  • Tarquin replied

    Thanks Arlind, I placed this in the custom CSS and it works 100% for the products pages!

    Is there a way of doing the same on the catalogue shop view? See attached showing variable prices.

    It would be great to have "From (Price)" or just the starting price displayed here.

    I appreciate your help in this! Thanks!



  •  1,558
    Laborator replied

    Hi Tarquin,

    Add the following code in the Custom CSS:

    .laborator-woocommerce .items .product.product-type-variable .white-block .price span {
      display: none;
    }
    
    
    .laborator-woocommerce .items .product.product-type-variable .white-block .price span.amount:first-child {
      display: inline-block;
    }
    
    .laborator-woocommerce .items .product.product-type-variable .white-block span.price {
        visibility: hidden;
    }
    
    .laborator-woocommerce .items .product.product-type-variable .white-block span.amount {
        visibility: visible !important;
    }
    

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  • Tarquin replied

    Thanks a mill! This solved it, thanks.

  •  1,558
    Laborator replied

    Glad to hear that :)

    If you like our theme, it would help us a lot if you could give us five star rating on themeforest from your Downloads tab, (if you don't know how, just open this link).

    A huge thank you from Laborator in advance!

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •  2
    Céline replied

    Hello! 

    I also would like to remove the price range. However, by using the following CSS code, I am removing all the prices from all product pages. In other words, I don't have anymore a price on a product page ... how to resolve this issue? 

    Thanks in advance

    .product-type-variable [itemprop="offers"] {
        display: none;
    }
  •  1,558
    Laborator replied

    Hi Celine,

    Kindly open a new ticket and post your request so it will be helpful for the other users to take advantage of searching them on the forum, and we’re glad to help you in your new thread.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group