Woocommerce Upsells CSV - Why Does It Work Only Sometimes? - php

Just took over data for a large - 150000 product eccommerce site. WordPress w/Woocommerce ans plugins called CSV Import Suite and Better Product Add-ons allow me to upload CSV files with product data. Most things work great but upsells seem to only work sometimes.
Basically, the site uses SKUs and to set up an upsell I provide something like the following:
sku,upsell_skus
123,456|543|345
This would link the product with SKU 123 to products 456, 543 and 345. I would need entries for all 4 products to have thumbnails appear with upsell links on the site.
Anyways. For some reason when I upload the CSVs I get very random results. In other words, sometimes the upsell links show up and sometimes they don't. I thought this might be some kind of caching issue - but in addition to clearing and least the browser and server caches - new upsells often appear right after upload without doing anything.
I have noticed that when I send larger CSVs the results seem to be less great. Small batches seem to take - but this could be coincidental. Also, for some products the upsell_skus list can be 40 or more - although size of list doesn't appear to be a factor in results.
Does anyone have any knowledge or experience dealing with these issues? Thanks.

You can use the built-in product CSV importer instead of a plugin to update the products. The Woocommerce Product CSV Import Schema states that multiple items should be comma separated. In a comma separated CSV file I've done this using a quoted string with either the id or sku to be updated. If referencing an existing product ID, prefix the id with id:. If referencing a SKU, no prefix is needed. e.g. id:100, SKU101. I haven't tested it with a large dataset, but I've never had problems using this method.
This is the format for the standard importer csv file
SKU, Upsells
123,"456,543,345"

Related

Woocommerce product visibility issue

I'm having an issue with woocommerce I'm not sure how to fix.
I imported a CSV of 800+ products into a test site, when I go into Products > All Products, the number next to all reads (890) but Published (393).
I've tried looking around various articles and can't seem to find how I view these unpublished products and can't see them anywhere in the site.
I've pasted a screenshot of what it's showing, any help is appreciated.
Did you provide any IDs for the products while importing the products? We should not provide the IDs for the products.
WordPress assigns Post IDs to everything that is a Post. So, Posts, Pages, Products, Images, Attachments, etc all get their own ID. It starts at 1, and then goes up. If you see a gap it might mean that you uploaded images in between, or made new blog posts. OR imported 100 products, deleted 100 products, etc.
Basically, it’s perfectly normal to have IDs that are random. IDs are not used in anything except for the database to find what that is. You do not want to assign IDs on import either. Because you don’t know what IDs are already taken and so you might have a problem that way. Best to leave IDs blank when making new products.

Magento 2 category saving error related to category product assignment

this is what happening with the store i´m building: I have 280k products to import, i´m doing it in with 7 csv files every file contains 40k of data except the last one.
My problem is the following:
I import the first 40k of data with all the attributes i need, then when the import process is complete i can´t save the categories where the products are assigned.
A thing i want to do is just to create one url for my product bcause when i upload a product for both categories,
i.e: category-parent,category-parent/category-child the system creates two url for both categories like this: category-parent/my-product and category-parent/category-child/my-product, what i want is this: category-parent/category-child/my-product
Even if i choose to enable canonical url for categories, it keeps creating three urls:
.One for category-parent
.Another for category-parent/category-child
for 40k products the url-rewrites reaches to 119.
right now i´m deleting everything from the store to re import the products and see what´s happening with this issue.
All the help i can get will be much appreciated, thanks for your time.

Programatically creating Configurable products in Magento 1.8.1

I have a Magento 1.8.1.0 website where I've imported around 3500 Simple Products using the SOAP API.
I need to be able to create Configurable Products which groups Simple Products based on an SKU pattern, but don't know how to do this programatically. Due to the number of products I can't do this manually because of how long it would take.
The website sells swimwear and the Simple Products are the Size and Colour options. I've added a lot of custom attributes to store details of colour and size, to the Default attribute group.
The Simple Products may look like this:
SKU: XX3736 (32)
SKU: XX3736 (34)
SKU: XX3736 (36)
SKU: XX3736 (38)
Numbers in brackets represent the Size. I've added an attribute which has common part of the SKU - in the above example XX3736 on all 4 Simple Products - so they can be identified as the same product.
Some questions:
How to programatically create the Configurable Products? I've read various posts such as http://blog.omnisubsole.com/2009/07/01/configurable-products-in-magento/ but this seems old (from 2009) and very complicated.
When creating the Simple Products, the product Name is the same in each instance, e.g. on the example above all 4 products are called "Speedo Fastskin 3". Is that correct or do the name need to differ so they can be identified with their Size? If it's wrong how could this be displayed on the front-end?
When I was importing the Simple Products I added things like the Description text to each one. But the products are set to "Not Visible Individually". Is it really necessary to import this data for each Simple Product? I know Magento requires certain fields but it seems strange to import data that's not actually shown anywhere.
Thanks in advance.
Also, it's disappointing that the API doesn't (seem to) support an easy method to do this? Does anyone know if there are plans to have this in later versions? Seems very odd that it's relatively easy to import the Simple Products but so hard to create Configurables from them!
Answered my own question but in the end this is what worked, with some modifications: http://www.codetweet.com/magento/create-configurable-product-magento-programmatically/

Magento - How to manage inventory for two site with same category

In this article, I use site as physical website, website as the Magento website level.
Which mean when talk about two sites, that is two totally separate websites, and two websites mean two websites within one Magento.
In my scenario, I have two sites/websites.
The first one is the products we CAN produce. The customers check the website and place order, then we produce them. So it's not necessary for us to manage inventory on this site/website.
The second one is the products we have live stock, we will send them out as soon as when the customers place order. So we need to control inventory on this site/website.
We can regard the products on the second site are some leftover of the first site. So the two sites/website share same category/catalog structure. same customer data, same checkout process and maybe same or different transportation methods. But they do have different prices, special price and tier prices.
Since some products may be obsolete(which will only be shown on the second site), and some may be new launch(which will only be shown on the first site), there might be light different between the category structure.
My questions are:
I want the two sites have exactly the same category structure, but when there are no any products within certain category, the category will not be shown on the front-end. Is this possible? If so, how?
I checked many articles. Magento only control inventory either on global level or on product level. I do find some extensions can manage inventory on website level, but these extensions are used based on the scenario that the manufactory have different warehouses on various locations. This is not my case, things are simpler in my scenario, I will control inventory in the second site/website and do not manage inventory on the first one at all. Is there any solution for this? Do I have to create two physical separate sites?
If we only have few products, this question will not bother me. I will create two separate sites and input these products separately. Since we have over tens of thousands products, I have to import those products by CSV file. I would like the two sites/websites share the same import process, which mean when importing, the first site/website will ignore the is_in_stock and qty fields and import other informations like description and specifications, but the second site/website will import all necessary fields include is_in_stock and qty and manage inventory accordingly.
BTW: Of course I should add different price fields for this two sites/websites in this CSV file, and when importing, they will read different fields accordingly. I do know there will be some customization for this, but this is beyond the topic of this article.
My question is do I have to create separate SITES for this scenario? If I have to create to separate SITES, how can I share same category between them? How can I realize the one CSV import will effect both sites/websites, is there any extension I can use for this?
Any suggestion will be highly appreciated!

Magento: Generating Thousands of Products and Configurable Attributes

I've looked all over Google and here at SO and I just can't find a solution.
I have a store that sells custom computers. Customers are able to select a model and then configure all aspects of the computer.
I was directed to the SCP Extension for managing my Configurable Products: "With SCP you can set a price for each combination of attribute values, e.g. Standard, Intel, 4GB RAM = $500." And that works marvelously.
However, as I've started creating my products, I didn't anticipate having to create literally thousands and thousands of Simple Products for every single, minute customization... AND THEN creating the Configurable Product. Seriously... THOUSANDS! It would probably take me 2 solid weeks of full-time simple product creation.
Having said that, is there a way to create am Excel or Numbers document and then simulate all possible variations? I believe it's called a Matrix.
I mean, how else does anyone put together a shop that sells more than 20 T-Shirts with two configurable attributes (Size, Color)?
You're doing it wrong! :-)
Whereas the components themselves are the inventory items, and you have a large and arbitrarily-variable combination of those inventory items to create a purchasable product, you will benefit from using the Bundle product type. It allows you to present groups of products together and to set required and optional components.
For frontend example, see: http://demo.magentocommerce.com/my-computer.html
For backend, see: http://demo-admin.magentocommerce.com/index.php/admin/catalog_product/edit/id/165/
Added my comment as answer.
Did you see this extension mageworx.com/advanced-product-options-magento-extension.html?

Categories