Woocommerce - Get global attribute data - woocommerce

On my woocommerce site, I currently have a set of 'attuributes' aligned with each product.
Currently I call them 'Seller' and 'Contact Details'
What I'm hoping to do is display this information on any emails that the customer receives, below where the order information normally displays.
This information will be different for each product, but titled the same, as I've added these two things as global attributes
What code would I have to add to my custom email to display this information?
Thanks.

Related

Sell a posts extra input fields - WordPress

I've been searching, trying to find a plugin that can help me set a price for each of my posts extra input fields.
So, I have a property post type that has the default title, content and featured image fields. Then I have extra fields such as attachment, video. What I need is to initially deny access to each of those extra fields (individually) and only when the user buys the necessary access, will one or all of those fields become available. This must be done when the user is adding a new post and use WooCommerce for the payment.
A visual example:
Plugins I've tried:
- myCRED (only allows the sale of a whole post and not individual fields)
- Fields Monetization (uses packages, not allowing individual field pricing)
- Restrict Content (only allows the sale of complete posts)
If you guys know about any plugins that can achieve this, even if it requires some tweaking, it would be greatly appreciated.

Woocommerce Remove Fields from the View-Order page

I'm using woocommerce version 2.4.6 if that's helpful at all. I'm trying to modify the view-order page of a specific order. The web address would be something like:
http://www.edventurelearning.com/my-account/view-order/244/
The page lists the status of the order, the order details, customer details, and then the billing address. I'd like to remove the billing address section since I don't collect the data and all the payments are done through paypal.
I'm having trouble figuring out how to get rid of the Billing Address field from showing up on the page. (I've already removed the field from the checkout process). view-order.php is the file that creates the page and I can modify it but the code that creates all the order detail sections is lumped into:
do_action( 'woocommerce_view_order', $order_id );
I've found the woocommerce_view_order function which is called by woocommerce_order_details_table which is called by wc_get_template. At that point I get lost and I figure there has to be an easier way to modify what is displayed. All I need to do is remove the Billing Address section.
Thanks for any help.
I posted this in the woocommerce forums and one answer was:
An easier way is to hide it using custom css. I can't see your view order page as I'm not a customer and haven't bought anything, but on my site I would use:
.woocommerce-view-order .woocommerce header.title,
.woocommerce-view-order .woocommerce address
{display:none}
Not very subtle but at least there is no need to maintain a custom version of the relevant template.
That post can be seen here:
Wordpress Forum

BIGCOMMERCE - Add required field based on quantity

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.

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/

WooCommerce: Override product info before adding to cart

I've found the following example (WooCommerce: Add product to cart with price override?) which lets the user add a product to the cart. However, it hard codes the prices directly on the cart itself.
Is there a way to make adjustments to a product instance i.e. costs, append additional user input, etc. and then add the product to the cart?
Thank you very much for everyones help.
Edit:
Having another crack at explaining, as doublesharp has pointed out it's not quite clear.
Joe clicks on a product, he then chooses various options on the product form which then calculates a custom cost after the 'add to cart' button is clicked but before it is added to the cart.
These options need to be completely custom as the calculations involved are outside of scope of a woocommerce 'variable product'. What I'm trying to achieve is the customer being able to add multiple instances of the same product with various costs and info associated with it.
With regards to the first part of your question where you want to add multiple instances of a product with various costs, you can have a look at the following plugins to achieve that objective
Dynamic Pricing
Pricing Deals for WooCommerce
As for the second part of your question where you want to append additional user input to the cart. This can be done using the following steps
Create a custom session and add the custom data to this session.
Add the data from the custom session to the WooCommerce session.
Extract custom data from WooCommerce session and insert it into cart
object.
Display custom data in Cart and Checkout page.
Add custom data as metadata to the order items.
Remove the associated custom data if an item is removed from the
cart.
For a more detailed on the above steps you have a look at the following link,
How to Add Custom Data to WooCommerce Order

Resources