Want To Add Extra Images Per Product Variation? Download This Free Plugin

Installment amounts do not appear on the screen.

Hugo Baptista

Estou com outro problema, com a opção de variações ativas, a função de parcelamento não funciona como deveria, apenas repete o valor do preço pois deve exibir o texto “Até 6x de R$ 183,30 sem juros”

Alex - Support Engineer

Hi Hugo,

Thanks for reaching out to us.

We have looked at your screen recording.
Please kindly follow these steps to identify the issue :

Step-1:  Deactivate our plugin Variation Swatches For WooCommerce.
Step-2: Check to see if the problem persists.

Please let us know once you’ve done those steps.

Thank you

Hugo Baptista

I performed the suggested test.
Yes when I deactivate the PRO application it works correctly when activating the problem returns.

Alex - Support Engineer

Hi Hugo,

We are checking the issue. We will get back to you soon.

Thanks.

Alex - Support Engineer

Hi Hugo,

Screenshot: https://prnt.sc/uSG_CjoX96Pa

Our investigation found that this problem was not caused by our plugin. Because our variation swatches work on the default woo-commerce loop and you have used elementor for product query, something has gone into conflict.

However, we have fixed this problem on your site. Kindly check the website now and let us know.

Note: Before check please clear your all cache and do a hard reload. (Cmd+Shift+R on a Mac; Ctrl+Shift+R on a Windows computer)

Thank you.

Hugo Baptista

Good afternoon, in fact, this is not what should appear, as I showed in the video, the site has the purchase in installments, the customer can pay up to 6 interest-free installments and there it shows, but when activating the Pro plugin it just repeats the entire amount and not showed the installment below as it should be shown. For example, the piece that costs 600.00 can also be paid in up to 6 x100.00. The customer chooses the payment method. What was done was to remove that line where the installment plan was showing the entire amount again. I need this line working with the installment plan I will show a print with the example. This practice of splitting the purchase is very common here in Brazil.

https://prnt.sc/i3J5nbtbPvua

Alex - Support Engineer

Hey Hugo

Could you please create a product with an installment price on the dashboard so that we can investigate the issue?

Please provide us the product link once you’ve done this.

Thank you for your patience with GetWooPlugins.

 

Hugo Baptista

The products are all ready to be paid in installments, woocommerce has a plugin called “WooCommerce Parcelas” that does this installment.

Alex - Support Engineer

Thanks for your confirmation. Kindly allow us some hours to look into this matter.

We will get back to you soon.

Hugo Baptista

Good afternoon, did you manage to solve it?

I need to put the correct information for the customers.

Alex - Support Engineer

Hi Hugo,

I have checked your site. As you said after deactivating our PRO plugin it works correctly when activating the problem returns. I have not seen any difference there.

Could you please record me reproducing your issue using a tool like this? https://www.useloom.com
It helps me to figure out the issue quickly and squash it immediately.

Thanks.

Hugo Baptista

Good afternoon, as you said in previous answers, you made some changes on the site to not show the installment and now even activating it does not even appear the installment. I need you to go back to the original configuration of what you changed to test.

Alex - Support Engineer

Hi,

I have removed my code from customizer > additional CSS. Now you will see your original configuration of installment.

Thanks.

 

Alex - Support Engineer

Hi Hugo,

Sorry for the inconvenience.

I have checked your screen recording as well as your website and noticed this conflict issue.

Will you help us to replicate the error on our end?

Could you please create a staging site for us so that we can further investigate this problem for fixing it? Or you can ask your hosting provider for creating a staging site .

Thanks in advance for your co-operation and patience.

Hugo Baptista

The products are already with the installment included, in the image you can notice that when it is not in stock it appears correctly but when it has stock with the variation it no longer shows the installment.

Alex - Support Engineer

Hi there,

Could you tell me the plugin name that you are using for the installment price?

Hakik Zaman

Hi Hugo,

They have added a class .price and we use it to change the price on the archive page.

The plugin you are using WooCommerce Parcelas is also using .price class to display the price.

So, it was the conflict. To minimize the issue, I have added the below snippet using the Code Snippets plugin, check this screenshot:

add_filter('fswp_installments_calc_output', function( $installments_html, $prefix, $installments, $formatted_installments_price, $suffix ){

global $product;

$price = $product->get_price_including_tax();

if ($price <= $min_value)
{
$installments_html = '';
} elseif ($price > $min_value)
{
$installments_price = $price / $installments;
$formatted_installments_price = wc_price($price / $installments);

if ($installments_price < $min_value)
{
while ($installments > 2 && $installments_price < $min_value)
{
$installments--;
$installments_price = $price / $installments;
$formatted_installments_price = wc_price($price / $installments);
}

if ($installments_price >= $min_value)
{
$installments_html = "<div class='fswp_installments_price $class'>";
$installments_html .= "<p class='fswp_calc'>" . sprintf(__('<span class="fswp_installment_prefix">%s %sx de</span> ', 'wc-parcelas'), $prefix, $installments) . $formatted_installments_price . " <span class='fswp_installment_suffix'>" . $suffix . "</span></p>";
$installments_html .= "</div>";
} else
{
$installments_html = '';
}
} else
{
$installments_html = "<div class='fswp_installments_price $class'>";
$installments_html .= "<p class='fswp_calc'>" . sprintf(__('<span class="fswp_installment_prefix">%s %sx de </span>', 'wc-parcelas'), $prefix, $installments) . $formatted_installments_price . " <span class='fswp_installment_suffix'>" . $suffix . "</span></p>";
$installments_html .= "</div>";
}
}
echo $installments_html;
}, 10, 5);

So, Please check now and don’t forget to clear the caches like- browser cache, caching plugin cache, and server-side cache [if you have any].

Thank You

Hugo Baptista

Hello, I checked the site https://www.ruthfigueiredo.com.br/ and it was ok there, my question is, in all the sites that I create I will have to include this code or the plugin will come with the update with the code already entered?

Hakik Zaman

Hi Hugo,

Please contact the WooCommerce Parcelas Plugin author and ask him/her to change the class name .price.

Basically, they should take this step because they entered an extra price which is not a default behavior of WooCommece.

The solution we provided is out of our support scope. Still, we wanted to help. So, if the WooCommerce Parcelas plugin author doesn’t respond, you have to add the above snippet to each site to minimize the conflict.

BTW, If you found my support helpful, could you please leave your valuable review here: https://wordpress.org/support/plugin/woo-variation-swatches/reviews/?filter=5

Your rating keeps us inspired.

Thank You

Hugo Baptista

Could you tell me where I can insert this code to work correctly?

Hakik Zaman

Hi Hugo,

Did you contact the plugin author? Please contact him/her.

As I said before in my previous reply, I have added the code using Code Snippets Plugin.

Thank You