Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Woocommerce Variations – AJAX

$
0
0

Replies: 0

I’m using this code to display the currently selected variation price instead of price range (ex: From 10 – 100 £)

https://pastebin.com/p191n70a

The code works fine, but when it comes up to products with a slightly higher number of variations: 50 – 60, the price doesn’t change and it goes laggy.

This piece of js gets active and everything slows down:

http://www.trendytiles.com/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js

High variation product (64 vars): trendytiles.com/product/ultima-dea/

Small variation product (28 vars): trendytiles.com/product/sedici/

On the second product, there is no delay and the price above is showing.


Viewing all articles
Browse latest Browse all 59525

Trending Articles