Comments (25)
Which method of import are you using? Dataflow? ImportExport? Third Party?
Also, which version of Magento and of the extension are you using?
My guess is that the group isn't being set because the value for NOT_LOGGED_IN is 0. Maybe the import script treats that as a non-value and skips it.
from groupscatalog2.
method is importExport, Magento 1.7 .0.2, Netzarbeiter_Groupskatalog2 0.1.6 (beta)
from groupscatalog2.
Please update GroupsCatalog2 to the latest version (0.2.4) and try again.
from groupscatalog2.
Any update on the issue?
from groupscatalog2.
the import does not work properly, so we changed the default group settings to not logged in to start with our shop.
from groupscatalog2.
Have you updated the extension to the latest version (0.2.4)?
from groupscatalog2.
yes of course, as you wrote in your last email.
from groupscatalog2.
Thanks for the update, I'll have to debug why the customer group id 0 (NOT_LOGGED_IN) causes trouble during the ImportExport module processing.
from groupscatalog2.
Just for information - I've just tried importing and having the same issue.
If my product in the csv contains these in the groupscatalog2_groups:
NOT LOGGED IN
General
Wholesale
Retailer
I end up with these selected in the product:
[ USE DEFAULT ]
General
Wholesale
Retailer
Magento Version: 1.7.0.1
GroupsCatalog2 version: 0.2.5
Thanks
Steve
from groupscatalog2.
Thanks for the update! This issue is next on my free-stuff todo list. I've got to look into it, hopefully within the next couple of weeks I'll find a little time.
from groupscatalog2.
I haven't forgotten about this, I'm just super busy with preparation of an upcoming conference. After that is done I'll have time to look into the CSV import.
from groupscatalog2.
I have make a workaround, the import core set NOT LOGGED IN at id=-2
when validate customer groups ids at Customergroups.php in Model/Entity/Attribute/Backend
I have add a simple change of id from -2 to 0
// validate all customer groups ids are valid
foreach ($data as $key => $groupId) {
if(-2 == $data[$key] ) {$data[$key] = 0;}
if (!in_array($groupId, $customerGroupIds)) {
unset($data[$key]);
}
}
from groupscatalog2.
Thank you for your comment @harkanik.
Its very strange the NOT LOGGED IN
group is assigned the value -2
, which actually is used for the setting [ USE DEFAULT ]
.
Both entries, [ USE DEFAULT ]
with the ID -2
and NOT LOGGED IN
with the ID 0
, should be present in the available options.
Which import mechanism do you use please?
from groupscatalog2.
@Vinai If I try to upload via the Import/Export module, the NOT LOGGED IN group is assigned with the -2 value.
Along with this I do have an additional question. I'm using a Multi Store setup (one in Dutch and one in French) who share products. So the description changes. If I upload via a CSV file (import/export module), having groups assigned to the base entity (NOT LOGGED IN, General, Retailer) and leave the groups blank for the other store view, the system should take over the options from the Original entity (like it does perfectly for the images etc), but yet the Groupscatalog2_groups field being empty, it is being uploaded with the value 0 (since the change proposed by harkanik) or -2 (without harkanik's change).
from groupscatalog2.
Thanks for the update @Lennerd320i - I really have to takle this one soon!
from groupscatalog2.
I finnally had csv import working. Along with the @harkanik workaround, I had to work around the why of another problem. In the CSV file, line 1 being the one with column tags "sku,_store,groupscatalog2_groups" don't put anything on line 101, 201, 301, 401 and so on. if you have a product that overlap those lines in the csv, insert lines with only ",," from the end of the last product description until the next starting one at line 102, 202, 302 and so on.
This was an issue on the 0.2.8 vers. as well as the last master commit 0.3.5
from groupscatalog2.
Thanks for the info @henleyt . That bug you describe is related to the way the core code processes the import in bunches. It happens independently of my extension.
from groupscatalog2.
This seemed to me so because I haven't witnessed the same behavior with the import of the main catalog CSV which contains every other product info including group pricing. So it may be an issue with 3 colums csv, or more than 10 rows informations per sku. I understand it's probably core related. May be valuable to your customers still. Thanks for your work!
from groupscatalog2.
Did you reindex the groupscatalog indexes after installation?
I don't know Magmi, do they emit the regular product save events? And the
indexer triggers?
Which version of Magento and the extension are you using?
from groupscatalog2.
Vinai - I did not reindex after each update, which appears to be required. I deleted my previous comments on this issue after figuring that out. I'm surprised you hadn't heard of Magmi, seems to be pretty popular among people doing mass product updates/inserts. FWIW it appears to be compatible with your plugin as it is currently working on those products.
from groupscatalog2.
I've heard of MAGMI, I just never worked on a project using it.
After an initial reindex after installation, it is not required to reindex if the products where created through the Magento admin interface. Since it seems you will have to reindex after each update via MAGMI, that means they don't trigger the indexer events.
Is this issue resolved for you now? Or is there still something open?
from groupscatalog2.
MAGMI does have a plugin which lets you reindex, so I will try that and see if it works.
Currently, any time I make a change in the extension settings a re-index was required, but I can confirm that is needed for even non-MAGMI products.. So far the extension seems to be working for me, but I will keep you updated if there are any cases like this in the future.
Thanks for your quick response, it is much appreciated.
from groupscatalog2.
I have an issue with standard ImportExport function in Magento 1.7 .0.2, Netzarbeiter_GroupsCatalog2 v0.3.5. I am using Import CSV to update the product name(s) of stock items which already exist and have been assigned values in the "Show to Groups" selection area. When I use a really simple CSV import with just sku, name the name is correctly updated, but the value in "Show to Groups" is reset to [Use Default]. After each import, I re-index ALL files and flush the cache.
I can overcome this bug by including the field groupscatalog2_groups and the categories each product had already been assigned in the import CSV.
What I would expect is that if groupscatalog2_groups (or any) field is left out of the imported CSV file, that property of the sku is not changed. Put positively, if an import CSV includes the sku (required) and another field, ONLY that field should be impacted by the import. At the moment, any such import resets the "Show to Groups" setting.
from groupscatalog2.
Thanks for your report and the really good description of the issue.
I'm currently quite busy, but hope to be able to change the behavior accordingly during one of the next few months.
from groupscatalog2.
Relying to the initial issue of this thread that the customer group NOT LOGGED IN (ID=0) ist turned into USE_DEFAULT (-2) is because you're checking in Netzarbeiter_GroupsCatalog2_Model_Entity_Attribute_Backend_Customergroups line 43 if $data is set. if you have only the NOT LOGGED IN group set data is interpreted as false (0) and therefore it is overwritten with -2.
Overriding this model and checking for explicit false helped me to fix this issue.
from groupscatalog2.
Related Issues (20)
- How to use in magento 2.0? HOT 1
- Support for Module "magento-hackathon/AsyncIndex" HOT 3
- group catalog categories not re-indexing HOT 4
- Show to ALL option
- Display Products via parent child relationship HOT 2
- Is extension compatible with Magneto 2? HOT 1
- After uninstallation empty "General" tab in catalog edit (backend)
- Wont reindex and keeps untickingstore views
- Error with a configurable product in the cart. HOT 2
- Problem with dataflow Export
- Advance Search
- Catalog empty while reindexing HOT 2
- GroupsCatalog Categories won't reindex HOT 3
- Site 500 on install.
- SQL issue HOT 1
- Magento 2 HOT 2
- Uninstall issue HOT 2
- Reindex taking a long time
- When HIDE_GROUPS_ATTRIBUTE isn't set, should fall back to USE_DEFAULT instead HOT 2
- Magento 2 compatibility
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from groupscatalog2.