woocommerce composite products - surcharge some item - wordpress

I'm looking for answers for many many days and hours... And for the moment, in Woothemes I have no feedback to my question.
I begin with WordPress and Woocommerce.
The plugin Composite products is absolutely what I needed, except for one thing :
My composite products have a fixed price. My components are like a restaurant's menu (it's for a fast-food) that people can custom.
But my problem is that for a few products, i have to surcharge. I have to add 2 or 3 euros to my Composite product's price, and when the product with surcharge is selected, price has to be shown in this product page, and of course has to be calculated in my cart.
I think there is an issue with wordpress filters and actions, but it's not yet completely clear in my brain !!!
I tried to write a PHP code for the cart, it works
but I think that ergonomically it's not a good solution, people has to see directly the new price in product page when he makes his selection.

Related

Show a product price based on product ID in WordPress

This might be a stupid question, but have searched quite a lot and have still not found a way for this.
I use Wordpress, WooCommerce and Elementor on my webshop.
I update my prices about once a month. A lot of places I have a price written as texteditor or headline, and want to change that to be price coming from system.
I have tried some different ways, but so far I could not manage to make it work.
Any ideas?
I have tried use product lists, I can get the price based on product ID, but cannot style it.
I have tried with CSS shortcode, but could not make it work.
There is Product Price fields in Wordpress, but cannot make them work.

How to get woocommerce stock quantity from another woocommerce shop

I have two woocommerce shops,
one of them have a lot of products and one of them is new.
both shop products are the same and the new one have some different products too.
now I want my new shop, get stock quantity and prices from the old shop and sync it automatically every one hour. because I don't have enough time to manage both.
is there any easy way to do this?
I don't know php coding as expert but I can edit some php codes if there is any clear guide.
Thanks

Add multiple cross sell products to cart from product page

I'm surprised im asking this as i would assume it is fairly easy to do but i've been trying and playing with plugins for days and not able to get the result i need.
I am trying to add multiple cross sell options to a woocommerce product so that a user can select multiple add-on products and add them to the cart with the main product from the product page.
Fore example: If the main product is a toy car, the add-on options might be batteries, extra remote control, etc. The customer could check the items they want and all would be separately added to the cart (by separately i mean so the customer could later decide to remove the toy car from the cart, but the batteries and extra remote would still remain in the cart until they were also removed).
I have tried various things including: product variations (core), product bundles (woo and yith), product addons (woo and yith), composite products (woo and yith). None can do all of the above.
If anyone can suggest a way to do it with either core or a plugin i would be VERY grateful!
Thanks for reading :)
It's been a while and I assume you already found the answer, but in case you haven't, you may add (manually) all the products that matches the product in the cart. You can do so in the product's page (admin panel) in "linked products", where "Cross-Sells" are the ones that will show in the cart.
The only thing is that by default, WooCommerce allows only 2 products to be linked. You may override that limit by inserting in your theme's "functions.php" file, the following line.
add_filter( 'woocommerce_cross_sells_columns', 'change_cross_sells_columns' );
function change_cross_sells_columns( $columns ) {
return 6;
}
In the example above, "6" is the limit. You may use any number, but you should use it wisely, as too many products shown in the cart will only confuse customers.
I hope this helps.

How to work out a WooCommerce Recent Products Page that is sortable like other product pages

Site is:
http://fretmill.com/
Page is:
http://fretmill.com/new-arrivals/
This is using the shortcode:
[recent_products per_page="-1" columns="3"]
Which was modified with a filter to limit the recent products to the last 15 days.
My site users would like to be able to filter the "new arrival" products by attributes similar to other product categories - by price, attributes, etc.
I'm not tied to the shortcode - I basically just need a page in my site that lists products added in the last 15 days which is sortable just like all of the other product pages. So a general product query limited to the last 15 days might work. I'm just not sure how to do that in WooCommerce, although as I'm typing it seems like it should be fairly simple - essentially just like a blog page listing the last 15 days of posts, but querying products instead? As long as it works with the various WooCommerce layered navigation widgets so users can sort by attributes etc.

woocommerce add extra product product page

I'm pretty new to woocommerce so if i'm asking something stupid....please forgive me.
At the moment I'm building a webhop. The product are toys. Some toys also have a manual which can be purchased seperatly.
On the single-product-page I can see my product and I can add it to my cart. But this is only the product itself without the manual for that product. On the same single-product-page I want that vistors can add the manual for the product to the cart also.
I played with variables, grouped etc, but it's not the same as what I want.
Can this be done easily?
Regards,
Roland

Resources