Home Forums WoodMart support forum Swatch Problem

Swatch Problem

Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #257167

    hooman
    Participant

    hi
    swatch with image on all products its ok. but in 3 products i have problem. swatch only-text.
    please help me

    #257168

    hooman
    Participant

    this link for home page:

    #257187

    Hello,

    Please make sure they are not custom attributes and the global attributes you have added to the products have the images as per this instruction: https://xtemos.com/docs/woodmart/variable-products-swatches/

    Best Regards

    #269481

    hooman
    Participant

    Hello. I checked several times. Everything is correct. But there is a problem. Please check.

    Attachments:
    You must be logged in to view attached files.
    #269625

    Hello,

    All the attributes and attribute items slugs should be only in Latin letters. https://gyazo.com/8d78a34f2b3fee7a6f6cd023ed50dfd4

    Make sure all the attribute items have image color and enabled swatches. https://gyazo.com/6b66c1b2e2e55c591dbf6ab2c65e2827

    Please check this instruction: https://xtemos.com/docs/woodmart/variable-products-swatches/

    Best Regards

    #271595

    hooman
    Participant

    Hi
    I change all slugs to Latin. But there is a problem yet. Please check.

    #271659

    Hello,

    You need to recreate all the attributes and items that did not have Latin slug ttps://gyazo.com/2427d34798696d254da62c8ee1a5b6d8

    Best Regards

    #277418

    hooman
    Participant

    Hi,
    I can’t rebuild items that did not have Latin slug because when we rebuild, all the products will have problems. Is there any way I can manually change the database?

    #277589

    Hello,

    I am afraid it is not possible. You can search the tables of Woocommerce in DB and try, however, the most effective way is to recreate the attributes.

    Best Regards

    #294124

    hooman
    Participant

    Hi

    #294447

    Hello,

    Make sure you have configured the attributes to be as the swatches on the product where you see the drop-downs.

    If one product works well and another do not it means you have configured the attributes in a different way. If the function does not work properly it would not work on all the products.

    The credentials you provided earlier are not valid now I cannot check and to show you.

    Best Regards

    #298411

    hooman
    Participant

    Hello
    I checked several times. There is no problem with non-Latin letters and there is no problem with product management. For example, compare the two. There is no difference in the settings, but one of them is broken:

    #298426

    hooman
    Participant

    I think the problem is not on my side. Because everything is ok in the product list section.

    Attachments:
    You must be logged in to view attached files.
    #298485

    Hello,

    Please provide your site admin access to the private area.

    Please confirm the permit for us to deactivate the plugins not related to the theme and switch to the parent theme for the while of checking what may take up to 15 minutes. Please make the full backup of your site.

    Best Regards

    #299399

    hooman
    Participant

    Hello
    I have disabled all unnecessary plugins. I also changed the WordPress admin language to English.

    #299434

    Hello,

    You will have to delete all the attributes that have Arabic let’s in slug. Attribute slug must be in Latin letters only. https://xtemos.com/forums/topic/swatch-problem/

    Best Regards

    #299468

    hooman
    Participant

    Hello
    Do you mean I have to delete an attribute and then rebuild it? Or just change the attribute’s slug to Latin?
    I can not delete the attribute because many products inherit from that feature.

    #299470

    hooman
    Participant

    I found the bug.
    The problem is not the non-Latin letters. The problem occurs when the variables are more than 30. All products with less than 30 variables are okay. But there is a problem with products that have more than 20 variables.

    This problem was also reported last year:
    https://xtemos.com/forums/topic/use-images-from-product-variations-limits/

    Problem fixed with add the following PHP code snippet to the child theme functions.php:

    function custom_wc_ajax_variation_threshold( $qty, $product ) {
        return 150;
    }
    
    add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 );

    I expected you to send me the correct answer as soon as this problem has been reported before. But unfortunately it took me a long time to fix the problem.
    Thanks anyway

    #299505

    Hello,

    We are glad you have solved the issue.

    Best Regards

Viewing 19 posts - 1 through 19 (of 19 total)