Hello all,
I'm setting a website with seblod and j2store.
I had a problem : I added an edit button on my item view, with option "2" > link to form.
On my frontend view, I clic on my "edit" button, let say on article with ID 2.
I set this article to be a product of j2store, so it get a "product_source_id" in my database, and the origianl article ID is save in another row, named "j2store_product_id".
So my exemple article id is 2, but as it's the 1st product i set in j2store, it will get "product_source_id" = 1.
Now what happens with the EDIT button on the item view > it will open correct article, with ID 2, but the j2store field will open article with ID 1, which is the "j2store product_source_id", and not the article ID (which should be 2).
So i have a form with my own fields for article ID 2, and with the j2store field, that displays form for article with ID 1. All on the same form.
I found my way in "plugins\cck_field\j2store" > j2store.php
I replaced :
$product->load(array('product_source_id' =>$articleId));
with
$product->load(array('j2store_product_id' =>$articleId));
But I think it need to be fixed in source files, because it will be erased on each upload.
Does anyone noticed this ?
Cheers.
EDIT : I think i missed something, I'll put it on resolved for now. After removing all contents, and start again, it seems it works nicely.