• Resolved goldfish94

    (@goldfish94)


    Hello, there is a problem when using the Swatches function in your plugin. If the names of the attributes are wide, then they go beyond the boundaries of the button, could you tell me how to adapt the width of the buttons to the width of the text?

    1

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author RosendoLabs

    (@drosendo)

    Hello,

    You can add a custom css:

    span.swatch.swatch-label {
        width: auto!important;
        padding: 0px 6px;
    }

    Does it fix it?

    Thread Starter goldfish94

    (@goldfish94)

    Thanks, it works!

    I also noticed that the buttons do not work in some themes, for example, switching variations on the homepage in the woodmart theme does not work (this is an ajax function, after clicking on the “select parameters” button, a selection of parameters appears)

    image
    Is it probably difficult to fix this without strong interference in the plugin code? Or what kind of life hacks are there to disable your plugin in specific pages (in this case, me need to disable the plugin on the home page)

    • This reply was modified 3 years, 11 months ago by goldfish94.
    Plugin Author RosendoLabs

    (@drosendo)

    Hello,

    The swatches is made to work only on product page. I did not make any code to work on Ajax loaded prodcuts.

    Is that what you are refering too? SVI will still work well with other swatches plugin if you decide to usem them instead.

    Cheers,
    David

    Thread Starter goldfish94

    (@goldfish94)

    Look, the classes and structure of the buttons are different from the standard theme buttons, your buttons are wrapped in a span tag but the standard buttons are placed in a div,

    2022-05-23-223917

    woodmart standard operating buttons:
    2022-05-23-2240212

    maybe that’s the reason, it’s probably hard to adapt? And will it be paid?

    Thread Starter goldfish94

    (@goldfish94)

    del

    • This reply was modified 3 years, 11 months ago by goldfish94.
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Swatches problem’ is closed to new replies.