Inhalte aufrufen

Profilbild

how to empty guest carts


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
14 Antworten zu diesem Thema

#1 vagelis

vagelis

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 90 Beiträge

Geschrieben: 23 January 2018 - 09:03

I've noticed that there are many guest carts from previous days. Is there a way to automate clear them after 1-2 days?



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 23 January 2018 - 12:49

Yes, automatically through "Gastbenutzer löschen" Task at System > Scheduled Tasks to remove the latest guests. You can do it manually too via System > Maintenance > Deleting guest customers.


  • RidgeOi gefällt das

Marcus Gesing

Smartstore AG


#3 vagelis

vagelis

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 90 Beiträge

Geschrieben: 23 January 2018 - 15:38

These tasks are activated, but there are on status "waiting". I've run it manually via System > Maintenance > Deleting guest customers BUT it didn't clear the carts. Any idea why is not running?


  • RidgeOi gefällt das

#4 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 23 January 2018 - 17:02

Open root web.config and uncomment sm:TaskSchedulerBaseUrl setting. Don't forget to set the correct URL value and restart the application.

 

If you experience differences between local and production installation, then please note the prerequisites especially required ASP.NET Full Trust Level.

Marcus Gesing

Smartstore AG


#5 vagelis

vagelis

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 90 Beiträge

Geschrieben: 23 January 2018 - 18:30

I've uncomment this line at web.config  <add key="sm:TaskSchedulerBaseUrl" value="http://www.MyDomainN.../taschscheduler" /> but still mails from queue are not send. I've restarted application but still nothing.

 

Ive checked at log and found this

 

Log level
Error
Logger
SmartStore.Services.Tasks.DefaultTaskScheduler
Short message
Error while calling TaskScheduler endpoint 'http://www.MyDomainNameHere.eu/taschscheduler/Sweep'. HTTP 404, Not Found

 

 

I've tried to change the taschscedure that was on the commented line with taskscheduler that was written on the comment info, with no result.

 

Log level
Error
Logger
SmartStore.Services.Tasks.DefaultTaskScheduler
Short message
Error while calling TaskScheduler endpoint 'http://MyDomainNameHere.eu/taskscheduler/Sweep'. HTTP 404, Not Found
 

#6 vagelis

vagelis

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 90 Beiträge

Geschrieben: 23 January 2018 - 18:32

I run the site at a VPS with IIS 8.4, SQL2014R2, ASP.NET 4.7.1 and full trust



#7 vagelis

vagelis

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 90 Beiträge

Geschrieben: 23 January 2018 - 19:04

I attach a print screen with the error at log



#8 vagelis

vagelis

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 90 Beiträge

Geschrieben: 23 January 2018 - 19:05

here is the print screen

Angehängte Bilder



#9 vagelis

vagelis

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 90 Beiträge

Geschrieben: 23 January 2018 - 19:26

here is the web.config section. Can you clarify which is the correct?

 

 

Angehängte Bilder



#10 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 23 January 2018 - 20:13

That looks not good. The scheduler cannot work if its endpoint is not reachable (HTTP 404).
Do you get a warning if you open System > Warnings? It checks the scheduler endpoint too.
http://www.mystore.com/taskscheduler is correct, by the way.

Marcus Gesing

Smartstore AG


#11 vagelis

vagelis

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 90 Beiträge

Geschrieben: 23 January 2018 - 21:47

Hi Marcus,

 

No there is no warning error. Evrything seems to be ok

Angehängte Bilder



#12 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 23 January 2018 - 22:15

That's weird. I don't know anything that could cause this except wrong host\IIS configuration. The only difference that I see is that the warnings-page checks the scheduler controller by calling a GET endpoint (Noop) while your HTTP 404 failing Sweep and Execute requests are POST endpoints that do not have a GET endpoint.


Marcus Gesing

Smartstore AG


#13 vagelis

vagelis

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 90 Beiträge

Geschrieben: 23 January 2018 - 22:26

there was a warning that Specified store URL does not match this store URL. The problem it seems that I had http://www.mystore.eu and in store address I had http://mystore.eu

 

This probably created the errors of task scheduler, since after change it, all messages from the queue were send.



#14 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 24 January 2018 - 13:17

That's good to hear. You can set multiple host values in the store configuration, e.g. mystore.eu,www.mystore.eu.

Marcus Gesing

Smartstore AG


#15 vagelis

vagelis

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 90 Beiträge

Geschrieben: 24 January 2018 - 14:23

the problem was created from Store URL where I had the http://www.mysite.eu while site was running at http://mysite.eu 

 

When I changed the store url it started to work. Very strange indeed.