Does anybody knows what hooks I need to look at if I want to add additional field into woocommerce new attributes page?
I have slug, but I'd like to add icon field where you'll be able to add icon name, and that will be outputted next to the attribute? And that input field should be below the slug input.
I found the woocommerce_attribute_taxonomies function, but I'm not sure how to edit it properly without changing the plugin directly.
After looking at woo's webhooks I couldn't find anything that would help. But I did notice that when editing the attribute I wished to add a field to there was this in the url: /wp-admin/edit-tags.php?taxonomy=pa_brand&post_type=product. Every time an attribute is created Woo creates this as a custom tax. This means you can use this tax to create custom metaboxes.
Either by using this tutorial https://pippinsplugins.com/adding-custom-meta-fields-to-taxonomies/ or a dev toolkit such as CMB2 : https://github.com/WebDevStudios/CMB2
Hope this helps someone!
Related
I have this section when I'm adding product in my website.
I want to add a new field. e.g. I want to add "Bathroom" field name and a textbox for input.
I'm checking if there's a settings to add a field on the section. These are the settings for other infos but I think there's no settings to add a field for the accommodation section when adding a product.
What can I do?
P.S: I'm using a casa theme (wordpress)
I have simple solution for you if you don't have any option to add another field. Then Install "Advanced custom fields (ACF)" plugin add a custom field and assign that field to post type = Product . Then call that variable to product page or where ever you want to output that variable value.
Cheers!
How I can add input type to attribute. For example I want to add option to input custom size for product. Maybe I add image and hope this will be helpful.Thank your for help!!
http://s14.postimg.org/cl6an48k1/Ughjgntitled.png
Have you tried Advanced Custom Fields Plugin?
You're able to add images, textboxes, inputs and a great deal more by attaching them to the Products post type.
Their documentation is fantastic – worth a look if you're going to customise products
http://advancedcustomfields.com/
I have a question with adding a product to the cart via a url. Right now I can use http://example.com/cart/?add-to-cart=49 and it will add the item to the cart. I'm using a plugin that adds a custom text input to each product. The plugin is WooCommerce Extra Product Options on codecanyon.
I need to add a parameter to my add to cart url where I can add an item to the cart but also pass a value to that custom input through the url as well. Ideally my url would look something like http://example.com/cart/?add-to-cart=49&textbox=myvalue. I'm really not sure the best way to approach this. I'm not against not using that plugin either if there is a better way to make this work. Thanks for your help.
I want to add two custom field on my magento site cart page. Something like bellow screenshot.
I want to add this two field on the Cart page and this field input i want to display in the Order and Invoice. I have Also use FME extra field extension but its use for the checkout page only.
So please suggest me if any good extension or good link using which i can set this functionality.
Please help to out from this problem
Hi #Jalpesh how are you?, how familiar you are with the Magento code because to get what you want need to extend a little code and use some Observer to add this info to Order and then to Invoice...
You can start using this extension, Magemaven OrderComment.
I hope this can help.
Best,
GrinGo.
I need a help to apply a validation on custom option, that is dependent on another custom option value.
Here is the image, which describes what I actually want :
Please suggest, I am using Custom Options, Not Configurable Products
For this type of products, Configurable products type is the best option. First create the attribtues as shown then create the configurable products. Actually this can be set while you create those attributes like blouse size, length and customization. Go to the admin panel. Catalog->Attributes->Manage Attributes. Here search for your attribute that are using for those COnfigurable products. Then after edit those attributes and then you can see a field like "Required Values"-> Make this as Yes. Attaching a screenshot for ur reference.
Edit the other attributes as you required. Then make an ReIndex management and clear the cache. Refresh the frontend...Hope this helps.. :)