Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Oleg Zhuk
@OlegoO
@lisknove_twitter based on this code https://github.com/VirtoCommerce/vc-platform/blob/master/VirtoCommerce.Module/tools/VirtoCommerce.Module.psm1, please check that 3rd part dll were copied (not copied) to output folder.
@EnterpriseWide could you share your app on githib? So, we will fork and review it
Ben Norman
@EnterpriseWide
@OlegoO Hey there, I have created a Repository at https://github.com/EnterpriseWide/VC. Thanks for the help so far.
zhangpengchen
@zhangpengchen

@OlegoO hey there, I was creating a VirtoCommerce module, but I had a strange with Compress-Module, it will not include an additional dll.

I checked https://github.com/VirtoCommerce/vc-module-elastic-search/ but haven't found out how 'Elasticsearch.Net.dll' was included in the zip file.

is there any tricks
zhangpengchen
@zhangpengchen
Oleg Zhuk
@OlegoO
@zhangpengchen yes
Ben Norman
@EnterpriseWide
@OlegoO Hi there, I got the docker config working. The problem was that I didn't hit the postpone button on the initial startup which changes what the storefront is configured to use
Oleg Zhuk
@OlegoO
@EnterpriseWide Good, thx for the feedback
Ben Norman
@EnterpriseWide
@OlegoO Is there a list of ResponseGroup Values anywhere that I can refer to? Is there an Enum or something?
Marko Hrovatic
@brgrz
guys I don't get it why so aggressive caching, it's practically impossible to clear cache without restarting everything
just deleted couple of skus, reindexed, reset cache, storefront still shows those skus
and all that with "CacheEnabled": "false" in storefront config
Marko Hrovatic
@brgrz
this is crazy - even after killing the .net core host on the server, the storefront still display those SKUs
and paging wrongly calculated, shows empty pages...this is just..so basic, should work without a glitch
Egis
@eMazeika
@brgrz using the latest code, right? Basically, you shouldn’t disable caching is Storefront. Here is what I did on our demo: hide a product, reindex it and refresh the page. Nothing else: https://recordit.co/36Xh1YVtra
Oleg Zhuk
@OlegoO
@brgrz Can you reset browser cache? Maybe cached on the client side.
Marko Hrovatic
@brgrz
@OlegoO @eMazeika I've reset everything and it finally worked. I think it was cached in Storefront app. That's the only explanation.
@OlegoO @eMazeika Now I have different issue, unable to import certain SKUs, importer says something along the lines that they already exist. They did but were deleted, again everything was cleared (Reset Cache in platform admin, disabled Smart caching) but importer still apparently find them somewhere. This is the exception at import
System.OperationCanceledException: The main product can't contains reference to another main product! It can lead to the infinite recursion.
at VirtoCommerce.CatalogModule.Data.Services.ItemServiceImpl.LoadDependencies(CatalogProduct[] products, Boolean processVariations)
at VirtoCommerce.CatalogModule.Data.Services.ItemServiceImpl.LoadDependencies(CatalogProduct[] products, Boolean processVariations)
at VirtoCommerce.CatalogModule.Data.Services.ItemServiceImpl.GetByIds(String[] itemIds, ItemResponseGroup respGroup, String catalogId)
at VirtoCommerce.CacheModule.Data.Decorators.CatalogServicesDecorator.GetByIds(String[] itemIds, ItemResponseGroup respGroup, String catalogId)
at VirtoCommerce.CatalogCsvImportModule.Data.Services.CsvCatalogImporter.MergeFromAlreadyExistProducts(IEnumerable`1 csvProducts, Catalog catalog) in
again you can see that is is using something cached by this line
VirtoCommerce.CacheModule.Data.Decorators.CatalogServicesDecorator.GetByIds(String[] itemIds,
why would you want to use cached data at imports/exports is beyond me; import/export is such a low level and rarely used feature that you should always use live data when doing it
Egis
@eMazeika
@brgrz In general, no restarts should be needed, when working with cache. Try that again to spot the exact sequence what actually helped.
Regarding the import issue, when “The main product can't contain reference to another main product!” was received. This states that:
  1. The import was loading existing product from DB
  2. The loaded product got corrupted in DB as parent product (owning variations) was also marked as a variation of another (or same) product. Such relation isn’t supported in Virto and this product can’t be retrieved from DB
  3. Were there any direct data manipulations performed in DB?
  4. You should try to identify the corrupted product(s) in table Item be checking column MainProductId.
Marko Hrovatic
@brgrz
@eMazeika thanks, I was able to resolve this and it was indeed one SKU with 3 variations that was corrupted; it was the only SKU that also happened to occur in the import file (among thousands of other SKUs) and the import process does not report which SKUs did it have issues with
Egis
@eMazeika
Thanks for your feedback!
Oleg Zhuk
@OlegoO
New Weekly Digest is available. Teaser: Published 3x Breaking Changes. Any feedback, likes, comments are welcome.
https://community.virtocommerce.com/t/weekly-news-digest-25-oct-2019/71
Han ter Braak
@HtrBr_twitter
Hello does anyone have the experience that title data is not being loaded in current version of frontend application?
zhangpengchen
@zhangpengchen

Hey @OlegoO, I would like to have your opinion about a question from an Architecture point of view:

I am considering VirtoCommerce Platform as a Headless Commerce Platform, VirtoCommerce Platform is providing all necessary REST APIs for creating a new Storefront.

If I am creating a new VirtoCommerce Storefront by using (Reactjs + Nodejs https://nextjs.org/) or (Vuejs + Nodejs https://nuxtjs.org/), I would like to have a VirtoCommerce Storefront API gateway to communicate with for retrieving products, create a shopping cart, see my orders and so on.

At this moment seem VirtoCommerce Platform REST APIs are not suitable for this? correct me if I am wrong : )
To make this happen, we have to create a VirtoCommerce Storefront API gateway by copying most of code from https://github.com/VirtoCommerce/vc-storefront-core/tree/master/VirtoCommerce.Storefront/Controllers/Api and add more there?

I see a pain for maintaining/upgrading this VirtoCommerce Storefront gateway/proxy API application (A lot of copying code, wrappers on top of auto-generated C# api clients, smart/stupid caching, and so on).

What would you suggest?

Oleg Zhuk
@OlegoO
@HtrBr_twitter Could you provide more details? Screenshots, Fiddler session to review request and data between front and backend.
Oleg Zhuk
@OlegoO

@zhangpengchen
The right way is - Create a new Storefront module in VirtoCommerce Platform, to provide all necessary REST APIs for creating a storefront to avoid creating an additional application. You can create simplest API and bring the benefits of VC because It's just a new VC module.

Internally, we are discussing to same way for next Storefront Kit, because it will simplify current Kit and allow create SPA. Unfortunately, I can not provide any estimate for it yet, but we did it for the client project.

You should control several challenges:

  1. Security because you should limit access for Native API and Storefront API. No problem, just don't forget to apply right IT configuration, firewall rules, etc..
  2. Latest storefront has been built on .NET Core , so I recommend to use previous version of Storefront. (Should be easy if we are going to VC 3.0 )
  3. CORS + HTTPS
Oleg Zhuk
@OlegoO
@zhangpengchen It's a good topic for discussion in our community, I will use your question and our internal documents to create the initial topic. then we can start discussion between you, other partners and platform team.
zhangpengchen
@zhangpengchen
Thanks @OlegoO
Oleg Zhuk
@OlegoO
Oleg Zhuk
@OlegoO
Eugen Ivanou
@EugenIvanou
hello guys, have your ever tried to run storefront docker image under mac/linux?
Oleg Zhuk
@OlegoO
ngettel
@ngettel
Hello @OlegoO Are you able to have multiple stores in the Admin that all use the same Storefront project or will I need to create individual Storefront projects for each store in the Admin?
Oleg Zhuk
@OlegoO
@ngettel yes, the storefront is 4-multi ) - Multi-Store, Multi-Theme, Multi-Language and Multi-Currency. Look on our demo https://demo.virtocommerce.com/admin with Several stores https://demo.virtocommerce.com and 1 storefront instance.
ngettel
@ngettel
Thank you @OlegoO
ngettel
@ngettel
@OlegoO I have another question about stores in the Admin. Do you need to have a store setup in the Admin if you are going to access the Storefront internally? This will be used by our customer support team only.
Oleg Zhuk
@OlegoO
Yes. You need to have a store setup in the admin. The store is sales-channel and scope which create relations between catalog, prices, end etc. You can limit access by changing the state from Open to Restricted. Also, the support team can use login on behalf. https://virtocommerce.com/blog/virtocommerce-2-8-release-notes
Alireza Salehi
@alireza-salehi
@OlegoO
hi,
based on this: https://dotnet.microsoft.com/platform/support/policy/dotnet-core ,
.net core 2.2 support will end on December 23, 2019 , is there a plan to upgrade to .net core 3.1 LTS?
mvktsk
@mvktsk
Hello @alireza-salehi, according to roadmap https://virtocommerce.com/roadmap we have no plans to change the version of .NET Core for Storefront this year.
Oleg Zhuk
@OlegoO