• Resolved Alexandre Gauvin

    (@pictogram)


    Hi,

    As you can see at https://alexgauvin.com/capricesdelectables.com/produit/lasagne-au-saumon/, at the bottom of the page (Produits similaires), I’m trying to have 4 related products that are related by common tags.

    At best, I would like to have them in 1 row, 4 responsive columns. When I set Number to 4 I get 4 products in 1 column. When I enabled the slider the only Number that will change anything is 0 which completely hide the products. Otherwise, there’s always 3 product with 1 hidden in the slider.

    Could you please tell me how to set this correctly ?
    Thanks

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Vagelis

    (@eboxnet)

    Hello, thanks for trying/using Woo Related Products.
    Please take a look on this one:
    https://wordpress.org/support/topic/number-of-columns-9/
    Let me know if you still need help and i will get back to you tomorrow.

    Thank you.

    Thread Starter Alexandre Gauvin

    (@pictogram)

    Thanks Eboxnet,

    It’s not working.

    I’ve added this to custom.css

    .woocommerce.single-product ul.products li.product,.woocommerce-page.single-product ul.products li.product,.woocommerce.single-product .upsells.products li.product,.woocommerce-page.single-product .upsells.products li.product {
        width:22.05%
    }

    I’ve added this shortcode where I want it to be
    [woo-related number='4']

    And these in Woo related settings page
    Product to display : 4
    Related by : product_tag (that is actually working)
    Slider: Disabled

    You can have a look at https://alexgauvin.com/capricesdelectables.com/produit/lasagne-au-saumon/, just below AUTRES MENUS DE LA SEMAINE

    Thanks

    Plugin Contributor Vagelis

    (@eboxnet)

    Hello again, the plugin wont change your theme columns.

    Let me tell you how this works :
    Products to display setting value will be used by the plugin to display related products within your theme,so if your theme uses 3 columns for woocommerce and you set the value of products to display to 5 you ll get something like this:

    * * *
    * *

    Now in the case of shortcode if you use [woo-related number=’3′] the number attribute of shortcode will override the products to display value from settings page and you ll get:

    * * *

    Now to change your themes columns you could use the gist code from the link i gave you but not just the CSS you ll need to use the filters as well. ( the PHP part of this is more important than the CSS part )

    Hope its clear enough,
    let me know if you need any more info.

    Thread Starter Alexandre Gauvin

    (@pictogram)

    Thanks again,

    I tried adding the code to function.php. It won’t work.
    I’ve added another module just below yours. It displays products nicely with 4 columns. The problem with this one is it doesn’t filter with tags.

    Yours does, and is working correctly. There’s just a styling problem. Where can I style the output.

    I could use the slider, but I would like to have it display 4 products at a time, not 3.

    Thanks

    Plugin Contributor Vagelis

    (@eboxnet)

    Hello,
    that’s because the other plugin uses custom styling but Woo Related uses your theme’s woocommerce styling.

    Would it be possible to get an account on the website you build ?

    Thread Starter Alexandre Gauvin

    (@pictogram)

    Hi,

    Thanks for your support.
    Yes I ca give you an access. Where should I send you that ?

    Plugin Contributor Vagelis

    (@eboxnet)

    Hello, np.
    send it to info@(myusername).com and i will get into it tomorrow or Monday morning.

    Thanks

    Plugin Contributor Vagelis

    (@eboxnet)

    I ll mark this as solved as i edited your child theme and styled plugin’s as you needed it to be.

    Thanks for using Woo Related Products.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Specify column number’ is closed to new replies.