]]>We use the “WPC Force Sells” extension to necessarily add product B to the cart for the purchase of another product A.
Previously it was not possible to click on “Add to cart” as long as one of the 2 options for product B was not added to the cart (the button remained grayed out).
However, now it is possible to click on it, except that product B is not added to the basket (if product A is not selected). As a result, several customers contact us to tell us that product B does not appear in their basket even though they clicked on the button.
How to “block” the add to cart box until product A is added + display a warning message “select an option for product A”?
Hello, I think I might have purchased the wrong plugin, as I don’t seem to be getting the functionality I was hoping for with “WPC Force Sells 6.0.3.” Could it be that I am using it incorrectly?
I hope you can help me with a challenge I am facing and can’t find a solution to.
The issue is with a product that has many variations and needs to be included in other products/sold together, while also reducing the inventory of the items being sold.
This particular product can only be purchased in 10ml bottles, and its variations are as follows:
Nicotine: 0mg, 3mg, 6mg, 9mg, 12mg, 15mg, 18mg.
Base: 50/50 and 70/30.
I choose to sell it in larger quantities and combine the above variations to create the product.
Size: 10ml, 30ml, 50ml, 100ml. (For example, when selling 100ml, the inventory should be reduced by 10x10ml bottles).
Currently, when I sell it, the product is set up as shown here:
testwoo.com/rosengren74/product/blaze-red/
When a customer purchases 50ml, 6mg, 50/50, with flavor, they receive “2x10ml 12mg + 2x10ml 0mg”, with the remaining 10ml representing the flavor.
However, the inventory is not properly reduced because the product “50ml, 6mg, 50/50” does not exist as a separate entity; it is created by combining different variations, as described above.
It is not essential for the customer to see the complete composition of the product; the key is to deduct the 10ml bottles from my inventory correctly. Can you suggest a solution to this problem?
Perhaps with a plugin like “WPC Force Sells,” but I haven’t been able to make it work either.
Hi There,
I have downloaded WPC Force Sells today, as I have baskets ready made but need to be able to customise products within the Gift Basket.
However, after downloading WPC and activating it, straight away the search options for my products to “Force Sell” in the Force Sell Tab are grey’d out.
I have tried:
– simple product, variable, grouped, smart grouped
– deactivating the plugin and reactivating.
– trying a different browser
– uninstalling and reinstalling
Is there any settings I need to enable/disable that make my search products grey’d out?
Any help would be greatly appreciated.
Thank you
Kind regards,
Worked flawlessy until about 2 weeks ago. Now the linked product is not showing up on the order or invoice.
The customer cart view shows both main product and linked product, but after purchase, the linked product does not show on the order or the invoice causing issues with inventory and packaging.
I have tried deleting and reinstalling the plugin but same issue persists.
]]>When I add product to cart, force sell item is adding to cart , but when I switch language, force sell item disappears.
]]>I use force sell to group products together.
It is not working at this moment since it always shows no stock, even though I have defined 60 in stock and to check the stock.
Any idea how to fix this?
Thanks,
Humphrey
]]>Hi,
I’m using a plugin for measurement price and stock (I set a product that equals 1 m2 and then the plugin calculates the price, stock, weight…)
I want to add extra fees for some product so I use the force sells plugin. Problem is when I use the sync quantity option, it calculates on the quantity set by the measurement plugin, which is a decimal quantity. So I have a force sell product with a 0.5 quantity for example.
Any idea how to block that on only have full quantities (1, 2, 3 etc) ?
Thank you very much for the help.
Chloé
]]>Hello
Although we are not using this plugin to force sell subscription products, it is causing the subscription products to fail at the time of renewal. The following is the error message that we could dig out from the logs:
11-17-2022 @ 20:55:41 - scheduled action 27387 (subscription payment) failed to finish processing due to the following error: Uncaught Error: Call to a member function get_id() on bool in /home/customer/www/optotutor.com/public_html/wp-content/plugins/wpc-force-sells/wpc-force-sells.php:696
Stack trace:
#0 /home/customer/www/optotutor.com/public_html/wp-includes/class-wp-hook.php(308): WPCleverWoofs->new_order_item(5712, Object(WC_Order_Item_Product), 6261)
#1 /home/customer/www/optotutor.com/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#2 /home/customer/www/optotutor.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#3 /home/customer/www/optotutor.com/public_html/wp-content/plugins/woocommerce/includes/wc-order-item-functions.php(39): do_action('woocommerce_new...', 5712, Object(WC_Order_Item_Product), 6261)
#4 /home/customer/www/optotutor.com/public_html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/wcs-order-functions.php(256): wc_add_order_item(6261, Array)
#5 /home/customer/www/optotutor.com/public_html/wp-content/plugins/w
11-17-2022 @ 20:55:41 - action args: subscription_id: 6122
The plugin is only used to force sell two simple products when one or the other is selected.
Regards
Kamalesh.
The quantities of Items added by Force Sell are not the same as the “main” Item if the Main Item is currently on sale. They always stay at 1.
]]>Hi!
Is there any filter or action I can use to remove the two prices (additional and total) from single product page?
Now I am hiding both with CSS, but I would prefer if possible to remove them completely.
Thanks!
]]>PHP Fatal error: Uncaught Error: Call to a member function save() on bool in /home/wp_site_1627320122/wp-content/plugins/wpc-force-sells/wpc-force-sells.php:792
function new_order_item( $item_id, $item, $order_id ) {
$order = wc_get_order( $order_id );
$quantity = $item->get_quantity();
if ( ( 'line_item' === $item->get_type() ) && ! wc_get_order_item_meta( $item_id, '_woofs_ids', true ) && ! wc_get_order_item_meta( $item_id, '_woofs_parent_id', true ) ) {
$product = $item->get_product();
$product_id = $product->get_id();
if ( $product && ( $woofs_ids = get_post_meta( $product_id, 'woofs_ids', true ) ) ) {
if ( $woofs_items = self::get_items( $woofs_ids, $product_id ) ) {
foreach ( $woofs_items as $woofs_item ) {
$woofs_item_id = $woofs_item['id'];
$woofs_item_price = $woofs_item['price'];
$woofs_item_qty = $woofs_item['qty'];
$woofs_item_product = wc_get_product( $woofs_item_id );
if ( ! $woofs_item_product ) {
continue;
}
if ( get_post_meta( $product_id, 'woofs_separately', true ) !== 'on' ) {
$woofs_product_price = $woofs_item_product->get_price();
$woofs_item_new_price = self::new_price( $woofs_product_price, $woofs_item_price );
$woofs_item_product->set_price( $woofs_item_new_price );
}
// add force sells products
$woofs_order_item_id = $order->add_product( $woofs_item_product, $woofs_item_qty * $quantity );
if ( ! $woofs_order_item_id ) {
continue;
}
$woofs_order_items = $order->get_items( 'line_item' );
$woofs_order_item = $woofs_order_items[ $woofs_order_item_id ];
if ( get_post_meta( $product_id, 'woofs_separately', true ) !== 'on' ) {
$woofs_order_item->add_meta_data( '_woofs_parent_id', $product_id, true );
}
$woofs_order_item->save();
}
}
}
$order->save();
}
}
]]>
Hi, i cannot add any subscription product. Do I need the premium version of the plugin?
]]>Is there a way to Bulk Edit Force Sells?
I’d want to assign product Ids in a grid and quantity
]]>Is there a way to add Force Sells to Variant products instead of Simple Products?
I want to be able to use the Select list to select a variant (using other plugins) and then the Variant adds all the Force Sells to the cart.
I can’t find any plugins that do this.
Grouped Products don’t work because they display as a table list and also don’t have Quantities.
Force Sells, Chained, WPC Force, Linked etc all only work on Simple Products.
]]>I sell weighted blankets. For each blanket sold the customer needs to select two fabrics (one for the top and one for the reverse side of the blanket). I would like to have the user be taken to two different pages (one for top fabrics and another page for bottom fabrics) in order to make their selection. The blankets are sold in 5 different sizes (each size is a separate product) but they should all use the same fabric pages.
Is this something that your plugin can help with? If you have any questions let me know. To see the way it currently works visit redbarnblankets.com/shop and select one of the sizes, you will see that currently I am using attributes and that there is a disconnect between the combo boxes and the popup form which displays the fabrics. This is what I would like to eliminate.
Thanks in Advance
– Karlton, Owner – Red Barn Blankets LLC
Hi,
not sure it depends on my theme or if the option Change price YES should show the global price with all product on product page and in the catalog page.
I use Hello theme + Elementor + Jetwoo builder
And the price is only the main product price in the catalog grid widget.
Is there a hook I could use so the price is the same global price on the shop catalog than in the product page ?
Or is it a premium option ?
thx
Hello Team,
I get the following error on some products call “sample cards”:
2022-03-15T20:22:18+00:00 CRITICAL Uncaught Error: Call to a member function get_id() on bool in /home/gastrcbq/www.gastrotopcard.com/wp-content/plugins/wpc-force-sells/wpc-force-sells.php:753
Stack trace:
#0 /home/gastrcbq/www.gastrotopcard.com/wp-includes/class-wp-hook.php(303): WPCleverWoofs->woofs_new_order_item()
#1 /home/gastrcbq/www.gastrotopcard.com/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#2 /home/gastrcbq/www.gastrotopcard.com/wp-includes/plugin.php(470): WP_Hook->do_action()
#3 /home/gastrcbq/www.gastrotopcard.com/wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-item-type-data-store.php(60): do_action()
#4 /home/gastrcbq/www.gastrotopcard.com/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(169): Abstract_WC_Order_Item_Type_Data_Store->create()
#5 /home/gastrcbq/www.gastrotopcard.com/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php(218): WC_Data_Store->create()
#6 /home/gastrcbq/www.gastrotopcard.com/wp-content/plugins/woocommerce/includes/abstracts/abstra in /home/gastrcbq/www.gastrotopcard.com/wp-content/plugins/wpc-force-sells/wpc-force-sells.php in Zeile 753
]]>
Please find more information about how this plugin works here:https://doc.wpclever.net/woofs/
Video Tutorial link: https://www.youtube.com/watch?v=Q58-AnWYN3g
]]>Hi !
I recently bought the force sells plugin and I would like to add only one force-sold item by product, and add it at a certain priced (free in my case).
I used this code for the first part, it works great but for personal needs, I sometimes add meta-data to a product and the plugin considers the product to be different from the one without meta-data, is that normal ?
// only add one force sell item per product no matter how many of the original product are added
function my_wc_force_sell_add_to_cart_product( $product ){
$product['quantity'] = 1;
return $product;
}
add_filter( 'wc_force_sell_add_to_cart_product', 'my_wc_force_sell_add_to_cart_product' );
// when a synced force sell product is updated always set it to 1
function my_wc_force_sell_update_quantity( $quantity, $product ){
return 1;
}
add_filter( 'wc_force_sell_update_quantity', 'my_wc_force_sell_update_quantity' );
Is there a special hook to set the price I want for an item added by the plugin ?
Thank you for your help !
]]>Hi,
Can I automatically disable/deactivate the linked products from code? In some circumstances, I want that the linked products not be added to the cart. Do you have a hook or can you provide another way to do this?
Thank you very much.
hi re
how to make so that a forced product on several products is unique in the final basket ?!
thanks !
regards
Hello,
I use the plugin to link two subscriptions between them (inseparable !)
in the checkout there is a bug with a recurring total on the second subscription (array / 0 €)
are you aware of this bug? thank you!
]]>Hello,
does the free plugin work with subscriptions?
I cannot link two subscriptions to each other?
thank you
Thomas
Hello,
I was very happy to discover this plugin since it seems to do ALMOST what I need.
I need to force sell a variable product, but not to synronize the quantities since I only want to force sell 1 unit. For example, if someone buys 10 of the main product, it should not add 10 units of the force sell product also, just 1 unit.
Is this possible? I tried changing the setting for “Cart content count” but does not seem to change anything.
Thank you!
]]>Hi,
I am trying to force sell multiple variations of the same variable product with the variable product itself but when I try to add the product on cart it gives me a memory exhaustion error. I guess this is because it starts an infinite loop by trying to force sell a variation with itself.
So, the scenario I am interesting is this. I want to force sell small-medium-large variations of the same t-shirt but also have them as a single variable product with different stocks per variation. I do not want to add each variation as a simple product. I want to force sell variations of the same product together and not variations of ‘var prod 2’ with ‘var prod 1’ which works as expected.
Any snippet, hook or idea on how to implement this?
Thanks in advance for any help or thoughts on the matter,
Chris
]]>Is it possible to allow the customer to change the quantity of the force-selling item(s) in the product page, so not changing it in the cart, but right there on the product page?
]]>Hi,
whenever I select 2 of my 3 rental products. (2 weken and 4 weken) The force sell get automatically removed. I get this message:
”Sorry, there were rental products in your cart which are unavailable or have changed and have been removed.”
This results in the force sell product to be removed from the cart.
I am not able to discover why this might be.
]]>Hi there,
WPC Force Sells for WooCommerce apparently caused a problem with the display of variable product prices after WooCommerce and WordPress had been updated to the latest version.
The displayed price is 0.00.
Is this error known and is there an update to fix this problem?
Regards
GardenerDD
Dear Support
How can I display the total price not only on the product details page but also on the shop page (where I see all the thumbnails)?
Best regards
Fred
If the main product is removed from the basket, the linked product is also removed. But when we try to restore the deleted product, only the main product appears in the cart, the linked product is not restored. Do you know how we can solve this problem?
]]>