How to add product variation to a link? - wordpress

I'm trying to make it so that when I share a link of a product with a quantity attribute the person who opens it sees it with the exact quantity. Is there a plugin for that? (woocommerce)

maybe your question is not clear, if I understand correctly you need to do something like this:
https://yourdomain.com/?add-to-cart=[the product id]&quantity=[quantity to add to cart]
For example:
https://yourdomain.com/?add-to-cart=72&quantity=3

Related

I need to hide shipping class from shop page

Anyone could help me with shipping classes?
I need to hide them from shop page, but to show on product page.
I'm using "Show Shipping Class in Product Page" plugin to show it in product page, but its automatically shown in the shop as well. I need to hide it from the shop view.
https://wordpress.org/support/topic/display-shipping-class-at-single-product-page/
So, maybe you should post your question at the wordpress community. It seems like other people have a similar problem.
For your next question you should try to be more specific; e.g. use specific tags like wordpress php, phrase your question more specific, try to give us more information about the problem so it will be easier for us to help you.
https://stackoverflow.com/help/how-to-ask

Remove "product" slug from Woocommerce Link

I have one issue that cant resolve myself, so need your help. I have Woocommerce store where i sell my personal things. Somehow i removed "product-category" slug from URL, and now i want to do the same for product too.
For example for category i have:
example.net/digital-products/sound-kits/808-kits/
and want to do the same for product, and remove "product" slug from URL
Currently is like this:
http://example.net/digital-products/product/808-touchdown-v1/
and want to be like this:
http://example.net/digital-products/sound-kits/808-kits/808-touchdown-v1
Is possible this?
Go to the Permalink Settings page, and under Product Permalinks (at the bottom of the page), enter /sound-kits/ in the Custom base field. Then just save your changes.

woocommerce add additional fields which will update price as well

I have attached a screenshot. please have a look.
Screenshot
If you have viewed the screenshot there is a book now button, Above that button, I want a select list something like this-
Flight:
option 1 : $15,
option 2 : $30
If I select any one of them it will update price as well as it will also update in the cart too.
This is the reference link. I want something like the reference link.
Please help.
For the easiest way you can use this plugin: Plugin Link

Two Quantity Selectors in Woocommerce Add to Cart

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.

Category People in Wordpress

I have a question. I would like to get an url like this : http://www.xyz.com/people/steffi
Does anyone have an idea ?
And finally, I would like to range people's name like this : A B ..... Z
Thanks in advance.
you can adjust that in the permalinks settings.
try %category%/%post_name%
look here for more in depth info. http://codex.wordpress.org/Using_Permalinks
I'm pretty sure it's a custom content (or post) type. A good plugin to control custom post types is CMS Press. You could set up a custom post type of people, and then have categories for each letter of the alphabet. When you put in new posts, just add them to the specific category (letter) that you want.

Resources