Woocommerce Cart Addons and Upsells - by RR123

This topic has 12 replies, 2 voices, and was last updated 7 years, 4 months ago ago by Olga Barlow

  • Avatar: RR123
    RR123
    Participant
    December 15, 2016 at 12:12

    Hi there,

    How can we use this plugin in Xstore?

    Woo say that we need to add `<?php if ( function_exists(‘sfn_display_cart_addons’) ) sfn_display_cart_addons($num, $display); ?>
    ` to the theme, but where should we add it? We have a child theme, but I guess it needs adding with the correct php so it gets pulled in before the checkout php in the theme.

    From the plugin itseld:

    Use shortcodes on any page or post

    [display-addons length=5 mode=loop] – Will use your theme’s template
    [display-addons length=4 mode=images_name] – Shows the product image along with the product name
    [display-addons length=8 mode=images_name_price] – Will display product images with name and price

    Use directly in your theme

    <?php if ( function_exists(‘sfn_display_cart_addons’) ) sfn_display_cart_addons($num, $display); ?>
    $num = the maximum number of add-ons to display, and $display can be one of the following: ‘loop’, ‘images’, ‘images_name’, ‘images_name_price’, ‘names’, ‘names_price’

    11 Answers
    Avatar: RR123
    RR123
    Participant
    December 15, 2016 at 12:13

    BTW I added the short code [display-addons length=5 mode=loop] to above the checkout shortcode on the checkout page, but it was a mess of filter and sort buttons and the addons themselves were not there.

    Many thanks,

    R

    Avatar: RR123
    RR123
    Participant
    December 15, 2016 at 13:19

    FYI Just tried the Linked Product cart crossell (standard woo feature) with Cart Addons disabled, but nothing showed at all – the linked products to crossell were ignored.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 15, 2016 at 14:52

    Hello,

    1) First of all tell me, please, if this plugin works fine with default WooCommerce theme?
    2) We don’t have problem with cross-sells on our test installs. You should add linked products (cross-sells) for you product, then add this product to cart and check the cart page after that. Provide me link to the product that has cross-sells. Also, provide temporary admin panel access.

    Regards

    Avatar: RR123
    RR123
    Participant
    December 19, 2016 at 12:46

    Hello there

    Logon details coming shortly!

    1) Yes the plugin does work with the Storefront theme. I guess it needs to be installed in Xstore as per the minimal guide from Woo. It’s a question of where to put the php, child theme, etc?…
    2) The problem with the linked product crossell was a core Woo problem. It does not show hidden items. It has to be viewable in the catalogue. Not your problem!

    Thanks again!

    R.

    Please, contact administrator
    for this information.
    Avatar: RR123
    RR123
    Participant
    December 19, 2016 at 12:47

    login in private!

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 20, 2016 at 16:57

    Hello,

    I have checked the shortcode that you provided and don’t see that it works with default theme.

    The same I see with our theme.

    So, could you tell me your actions step by step, so I’ll be able to reproduce how it should work with default theme and found issue with our theme?

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 20, 2016 at 16:59

    P.S. our filters won’t work for the cart and checkout pages, that’s why I recommend you just to hide them

    .woocommerce-cart .open-filters-btn,
    .woocommerce-checkout .open-filters-btn,
    .woocommerce-cart .view-switcher,
    .woocommerce-checkout .view-switcher,
    .woocommerce-cart .products-per-page,
    .woocommerce-checkout .products-per-page{
        display: none;
    }

    Regards

    Avatar: RR123
    RR123
    Participant
    December 21, 2016 at 13:00

    Hi there,

    Thanks for the CSS ‘heads up’.

    I see why you could not see the issue. If you look again, but at the same product link from other posts (I should have pasted here too, it’s now in the private area). You will see that cart addons plugin specified product does show under Storefront, but not under Xstore.

    I just retested this and it is still all the case. Could you take another look?

    I guess there could be two reasons you couldn’t see it. Firstly, if you offer a hidden item that is actually for sale, it would not be shown as an possible cart addon (crazy, but the plugin works like that). Secondly, the addon itself might have already been in that cart, hence not offered as a cart addon.

    Thanks again,

    R.

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 23, 2016 at 14:41

    Hello,

    I don’t see issue with Cross-Sells and our theme once I have added THE GRAND EXPERIENCE product (screenshot was sent in chat)
    But I also don’t see products from Product Add-ons either with our theme or with default (screenshot was sent in chat)

    Should I choose some specific configuration of that product?

    Regards

    Avatar: RR123
    RR123
    Participant
    December 23, 2016 at 18:47

    Thanks Olga.

    I better look at this again. I just saw you screenshot, that included markup. That made me wonder if I had been mixing up which feature/plugin was showing the cross-sell. I will try again with different items for the linked product vs the cart addons plugin!

    Festive wishes,

    R

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 26, 2016 at 14:16

    Hello,

    Yes, sure.
    In case problem appears with our theme only feel free to contact us and we’ll try to solve the issue.

    Regards

  • Viewing 12 results - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.