Home Forums Plugins WooCommerce Product Variations Swatches Variations Select List

Variations Select List

  • Author
  • #72831

    Grzegorz Paśnik

    Hello, I have a problem with the variants list.
    I would like it to have a built-in search module. I saw that it can be done in a simple way with “Ajax select2”, but when I enter php code into functions.php, nothing changes.
    “function enqueue_select2_jquery () {
    $ assets_path = str_replace (array (‘http:’, ‘https:’), ”, WC () -> plugin_url ()). ‘/ assets /’;
    wp_register_script (‘select2’, $ assets_path. ‘js / select2 / select2.js’, array (‘jquery’), ”, true);
    wp_enqueue_script (‘select2’);
    wp_enqueue_style (‘select2’, $ assets_path. ‘css / select2.css’);
    add nazwa (‘wp_enqueue_scripts’, ‘enqueue_select2_jquery’); ”
    I would also like there to be a photo of the variant or just a color next to the variant name. Is it possible to do something like this? An example if I would like it to look like + additional search engine module.
    (this is not my site)

    Or how to make the “show more” button in the second example from the attachment.

    You must be logged in to view attached files.

You must be logged in to reply to this topic. Click here to login or register