Wp All Export-total orders for each variation - php

I’m using Wp All Export, and I have a problem. I want to export woocommerce orders and purchased items for each variation, but the problem is that I can’t export total orders for each variation.
For example, I have 2 separate orders for one product with the same variations like color, size, etc.
(“2x sample Tshirt, Blue, XL” and “3x sample Tshirt, Blue, XL”)
I can’t export total ordered items quantity (in this example “5 sample Tshirt”)
Can I use a PHP function to get total ordered items? How?
*Already, I have the quantity of ordered items for each separate order in excel table.
I would really appreciate if you can help me.

you should try https://wordpress.org/plugins/woo-order-export-lite/
they support "summary report by product"

Related

Magento Shipping costs using category and weight

I'm working with magento 1.9.3 and need to change the shipping costs calculation based on table rate to use weight and category vs destination in the same table rate.
I have some products need to add extra cost based on category vs destination and the rest of products use the normal weight vs destination shipping cost calculation.
Before start coding i would like to have a different approach to find an easy and clean solution to this.
By now this is the idea
Add a new condition_name to the CSV named package_weight_category with category id as condition value
Modify the getRate method to find in the DDBB using the categories of the products in the cart and condition_name = 'package_weight_category'
If anything is found save the cost
Subtract the weight of the products of the categories found to the total weight
If weight >0 find the cost of the updated weight and add it to the cost
Return the calculated cost
My questions are
Is this solution functional?
It's possible pass the info of the categories and quantity of the products to the Mage_Shipping_Model_Rate_Request object?
Any better solution or different approach to solve this?
Thanks in advance just for reading

Woocommerce Order Export

I'm using
WooCommerce Simply Order Export (Plugin)
in Woocommerce Website. Using this Plugin when I export orders which are under specific Order Statuses(e.g. Processing, Completed etc), Plugin give me an option to select date range and no. of columns(e.g. Product Name, Product Quantity, Variation etc.), But the Problem is:
If Order-1 contains 1 product with some quantity(e.g. Fanta (Quantity = 4)), Similarly Order-2 contains the same product(e.g. Fanta (Quantity = 2))
So I need to update the Plugin in which I create a button to export Accumulated Quantity of Products(Sum of same item across all Orders), I need 2 Columns in Exported CSV(Product Name, Accumulated Quantity), Kindly help me in this updation.
TIA
A plugin that you can use (with the functionality you need) is this one:
Product Sales Report for WooCommerce
If you want to get a custom report, you can use the WC_Admin_Report() class and the get_order_report_data() to build your custom query.

Cannot Export Import Products on Backend Magento

I've tried to export products + category from X magento to Y magento with this https://www.siteground.com/tutorials/magento/import-products.htm
FYI, the exported files are correct, even XML or CSV type.
But, i found error when i importing it. it says i found 84 rows, but it's only Imported 1 records, when i check the Manage Products, none of products is imported. I tried on CSV and XML files, the result are same.
The magento version of both are similar, any possibilities to debug it?
In your import process 84 records means there is 84 lines in your csv file not 84 products!
I guess you're using just one sku for all of your products and that's why you have just one imported product. It's good to know that
magento uses sku as ID to identify products, so you need to assign an unique sku to every single product.
Update:
To insert new products by CSV Import check this columns in your csv file.
Required Product Attributes for New Products (written as they should appear in the CSV file column):
sku
Stock Keeping Unit - a unique value to identify the product. No two items can share the same SKU in Pixafy.
_attribute_set
Unless you have already set up Attribute Sets, set this to "Default"
_type
What type of product is this? Your options are: simple, configurable, virtual, and downloadable. Grouped or bundle products can not be imported at this time and must be created in the Control Panel.
name
The product's name- such as "Magic Wand". This should not be longer than 60 characters
description
The long description with detailed information regarding the product.
short_description
The shorter description that appears to the right of the Product Image on the Product page
price
The amount you are charging your customers for this product before sales or discounts.
status
Is the product Enabled or Disabled? Enabled is 1, Disabled, 2
visibility
How will the customer be able to view this item?
Visible in Catalog and Search = 4
Visible in Catalog =2
Visible in Search = 3
Not visible individually = 1
tax_class_id
Tax Class ID as set up under Set Up > Tax > Product Tax Classes. By default, Taxable Goods are 2
weight
Enter a numerical value for the weight of this product. This will be used by any calculated shipping methods.
_product_websites
At this time, your only option is base
Update 2:
To learn how to add product images to your csv file, read this post:
Update Magento products with multiple images

Want to add a checkbox to product page on woocommerce/measurement calculator plugin

I want to add a checkbox to products in certain categories in my online shop, but when the checkbox is ticked it will need to add 'x' amount to the total of the product.
To complicate things further, the product is total is calculated by (area x product price) after the user has inputted their required Length and Width, the checkbox will need to use the area value and then multiply the area by 2.5 and then add that sub-total to the grand total of the product. It's an add-on to the product. If you catch my drift?
Here's a link to a sample product page. The products are carpets, so when you to tick the checkbox, the carpets will have a stain protection applied and will be charged for.
Is there any snippet of code that could help me here?
So it was a relatively easy solution. It was just a case of turning the product into a variable product and using attributes to make a "yes or no" drop-down box, with one of the options having an increased price. This makes the price change before the area is calculated, unlike the 'product add-ons' plugin, which adds on after.
I can't believe it took me two weeks to find the answer to this.

Magento: Adding different text before both MSRP price and Group price 1.7.0.2

The new theme I've downloaded on our magento store displays only prices without any text descriptions before them. I need to display both the MSRP and the price a certain customer group (wholesale) gets. I've searched and only found answers for how to add text before the MSRP price.
I basically need product pricing to display as such, MSRP: $XX.XX, Wholesale: $XX.XX.
You can add your code in:
app/design/frontend/[your_package]/[your_theme]/template/catalog/product/price.phtml

Categories