This topic has 12 replies, 2 voices, and was last updated 7 years, 10 months ago ago by Olga Barlow
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 priceUse 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’
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
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.
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
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.
login in private!
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
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
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.
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
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
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
Tagged: best selling, cart addons, e-commerce, online shopping, themes, upsells, woocommerce
You must be logged in to reply to this topic.Log in/Sign up