BIGCOMMERCE - Add required field based on quantity - wordpress

I am designing a T-shirt store for a client and need to be able to add custom fields to a BigCommerce product based on the user requesting more than one product (tshirt)
So - if the user has 2 products - they would be asked to complete fields for reverse name and size. Is this possible?

There aren't conditional options out of the box in Bigcommerce. You'd have to have unrequired fields that were hidden unless multiple quantities were selected (using javascript to accomplish the hide/show).
Alternatively, you can limit the item so only one can be added to the cart at a time. This could be a negative customer experience though.

Related

Wordpress Woocommerce: Add custom condition in product query based on custom filter

I am working on a woocommerce project with little bit knowledge on wordpress. Now, I have got a requirement which is shared below:
1. Show date calendar on product listing page top of list not in sidebar. I am saving product availiblity based on date ranges in separate table. This table has product id, date start and date end.
2. Show sizes dropdown on product listing on top of list. Sizes filter is already showing in sidebard but client wants it on top. So, I wil disable it in sidebar.
3. When customer will select date and size, product list should be filter accordingly.
I have read wordpress documentation where wc_query has option to use either "EXISTS or NOT Exists" through ws_meta_query. But I am not able to understand, how can I put filter on product query using either "EXISTS or NOT EXISTS" with my custom raw query?
Can someone please guide me how can I implement whole requirement along with how can I EXISTS using raw sql query with product query?
Thanks in Advance
For first 2 points, you'll need woocommerce_before_shop_loop action to display your custom filters.
and for 3rd point, you'll need pre_get_posts action to control your queries.

Is it possible to field map wpforms data to woocommerce products and add the items to cart?

I am using wpforms elite (with webhooks) in hopes to simplify the order process for woocommerce customers.
When a user submits the form at this url, http://implantlogic.wpengine.com/device-selection/ I hope to have products added to the cart based on users selections.
For example, if the user selects tooth one on the tooth selection page of the form, this product will need to be added to the cart with all fields populated http://implantlogic.wpengine.com/product/tooth-1/ and this applies to other things the user selects on the form as well which would trigger simple field mapping or the addition of simple products to the cart.
Right now I just need to know if this is possible or if I should seek other methods to solve this issue and create the same experience.

What's the best the approach to add an extra attribute field in Drupal Commerce?

I'm using Drupal Commerce and i have a product type called "Painting" this product type does not have an attribute fields, I'm using inline_entity_form module so i can show the product add form within the node add form for my product display content type.
The product in the site is the painting itself, it may come with a frame or without a frame (the user can choose) and the price will change based on the user's choice, how can i add such field without using attributes fields? as attributes fields requires that the site admin to add many products and put them in one product display, i just want to keep it simple to the site admin, to make him add the product in the same way he adds a node.
Thank you.
This sounds like you just need two variations:
Product one, without frame
Product two, with frame
Each variation has it's own price and title.
You can get by without using an attribute field. Drupal Commerce renders a dropdown when there are no attributes and allows user's to pick from the product variation titles. Since you are using Inline Entity Form this should be seamless for the site admin.

How to allow uploading of photos while placing an order using Woocommerce

I'm new to WordPress, and want to use Woocommerce for my online shop. However, I am creating things using photos supplied by the customer for certain products. Other products can be sold as is.
That means if the customer orders an item in this category, he needs to upload the photo to be used to create that item while placing his order. This photo must be linked to the order, and must not be visible to the other customers, but only to me when I view his order.
Is there any existing WordPress theme that caters for this, and if not, how do I modify Woocommerce to cater for this?
More than one customer can order the same product, and each customer must be able to upload his photo to be used for that product for that order. Each client's photo must only be linked to that specific order for that specific customer for that specific date.
You can use Woothemes's Product Add-ons plugin. It allows you to add custom fields to your product including file-inputs. These fields will be displayed on the front-end & user can fill their values/upload files which will be included with their orders. And as an admin, only you will be able to see the values/files in the order-details section.
You required to add image with each product, which should not be display to your customer, only to you while some order placed by customer:
In this case you required to add custom field over there in Product Custom Post type.
You can refer to this link for creating Custom Field
http://wp-types.com/learn/create-an-ecommerce-wordpress-site/create-custom-fields-and-taxonomies/

How do I remove woocommerce products after time?

Im currently building a webshop using woocommerce (icondesignliving)
and the customer wants the products to be automatically removed after time. Or after a certain date, Is it possible to do this, if yes, how?
You can use a plugin called Post Expirator.
When you add or edit a product there will be a Post Expirator box on the right hand side, which will allow you to choose if the product can be hidden after a certain date. Choose what date it will hidden on and what is to happen to the product (draft, delete, set it to private, or change category):

Resources