I am trying to create a "Contact Lenses" Online store using WP and Woocommerce.As you know Woocomerce generate one default quantity display for each product as:
but in my case I need to have TWO Quantity Selectors for each product , one for Right Eye and second for Left eye as:
can you please help me to figure this out how to have two selectors and eventually add the sum of these two into the Cart or display both quantities in the Cart?
Thanks
Why dont you use the built in variation functionality? This way you can then have as many "quantity" fields as you like.
You could setup 2 variations of the product called Right OD and Left OS and have a drop down with the quantities.
This will be by far the best solution for your scenario.
Related
I'm developing an e-commerce using Wordpress and I'm having a problem with product variations. I have about 40 photographic works
and each of them has different options:
print support
frame color
dimension
Currently only if a user selects all the choices the image is updated and a price is displayed based on the choices.
I would like a user to see the updated image and price even by selecting one or two of the options.
Is it possible to create a product variation by setting only one or two variations?
Here is a sample product that I would like to change already from the first or second choice of the user. (at the moment the image and the price are updated only by setting all three variations).
product link -> https://www.italiansummer.it/product/addaura/
Thanks in advance for any help
Try using the gravatar form plugin.
My shop page look like this https://ibb.co/bBfEdF
It is showing like this here because some products have long product name & some have short. In the same way some products are having price mentioned and some are without price.
I have tried so many thing but couldn’t figure it out to set it automatically in same pattern, when I am making changes in the CSS files the changes are modifying other pages too, so I need to resolve this by without affecting other pages.
Can I set product names to be displayed always in one single line, weather the name is too short or long.
Either can I fix the box size for each row so that it look like similar for each product along with name.
Its one of Woocommerce flaws. The fast solution is to give the product titles a similar word count
I am currently working on a project based on drupal + drupal commerce module.
I made a products node (Product Display) using the product reference and inline entity form - Multiple Values.
Now the problem is, I want to list products in a "div" rather than listing them through select box.
To be more clear:
It does list out multiple products, but shows only 1 product at a time. I have to select a product from the drop-down list.
As you can see here:
http://i.stack.imgur.com/EO8if.jpg
Please note: Table panel and bottle box are products.
What I want is:
All the products should be listed without the need of a drop-down select box selection.
Thanks & Regards
Is there a reason why you have used only one node of type "product display" for two diferent products "Table Panel" and "Bottle Box"?
If you create one node for each product its easier do display them as a list.
In my understanding, I wasn't doing it in the right way. I found out the way. I can make product displays and then render them as a VIEW. And style it accordingly. Again many thanks for your input, it really helped me to think, why am I doing this way.
Thanks nimbfire.
using last versions of wordpress, woocommerce and cheope (theme).
the question: how to
add some extra fields in variations form (text and image field types)
show them on frontend so that their values change accordingly on changing of attributes-select values.
e.g.: the site sells candles and uses variable products, for each kind of candle has several dimensions (with specific different prices), each of which has different duration.
The duration is an important element that I want the user to be informed about.
The same to show the available colors all together.
Unluckily in the standard variation form there is no field where I can insert these or other features.
some help please?
updated 07-August-2013
I succeeded in adding to variations form a new field displayed on back-end, as you can see here, by inserting the code you can find here (please see the comments too) in the function.php file of the theme.
Now, what I’m not able to do is get this field to display with each proper value on front-end (please take a look to the last comment in the above linked page).
Any tip or trick?
thanks
1)Add product attribute and check checkbox Used for variations and Visible on the product page
2)go to variations and add new and fill all fields price and stock must add on them
Your producr display variations and their data
When I program:
$woocommerce->cart->add_to_cart( $group_product_id, 1);
with $group_product_id being the product post ID (e.g. 300), the shopping cart shows a quantity of 2 not 1.
When I directly enter the URL (e.g.http://www.mystore.com/shop/stuff?add_to_cart=300), the shopping cart shows a quantity of 1 (the correct expected behavior).
Any suggestions would be really helpful.
Thank you.
P.S. Bonus question: is there any way to program adding multiple items to the cart (not grouped or variations) before taking the user to the cart page?
Grouped products cannot be added to cart directly. Group product is actually a group of simple products. So $group_product_id should be the id of any of the simple products which constitute the grouped product.
The first two parameters you must use on $woocommerce->cart->add_to_cart, are, $product->id and/or quantity to add. The post id has nothing to do here.
You can yes add multiple products at once using ajax calls, but is not so simple to describe on a comment, will depend on your configuration, your theme, etc, but yes, it´s posible, in fact i recently did something like that. The point is to use syncronized ajax calls that actualy call the add_to_cart function. You can use jquery for triggering many add to cart buttons at same time.