Developer forum

Forum » Ecommerce - Standard features » Change quote state with URL paramter

Change quote state with URL paramter

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

Is it possible to change the Quote status using a URL parameter?

I am talking about front-end.

 

Thank you,
Adrian


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Using the old customer center you can do this:

?CC123=quotes
&QuoteId=quote1
&StateId=state1

123 being the paragraphid

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Thank you very much.

Is this documented somewhere on the doc site? I have tried finding this information but I could not find it.

And the TemplateTags did not return anything that I could use to figure it out.

Thank you,
Adrian

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

I am affraid it might be lacking documentation...

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

I have tried your suggestion but it does not seem to work.
I have found an old piece of code:

function changeQuoteState(quoteID, stateID) {
        location = '<!--@Ecom:CustomerCenter.Quotes.BaseUrl-->' + "&quoteID=" + quoteID + "&stateID=" + stateID;
    }

This code looks similar to your suggestion but even with changed casing, it't not working.

I have investigated the settings of the Quote Flow and I see that we have some fields for defining the flow (the change of states):

But if I try to check any of the boxes, they get unchecked upon saving.

The DW version is 9.14.1

Adrian

 

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Just to clarify, here is how the options are stored:

Seems like a bug?

Adrian

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Adrian,

It sure is. I have registered this as bug #12607
The bug has been fixed and is awaiting approval from QA, so it should be out ASAP.

Sorry for the inconvenience.

/Morten

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Adrian

The bugfix #12607 now ready for download in hotfix version 9.15.4 https://doc.dynamicweb.dk/downloads/dynamicweb-9

Kind Regards
Care Support
Kristian Kirkholt

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Kristian,

Thank you.
Is there any way I can merge it into a DW 9.13 or 9.14 release?

Thank you,
Adrian

 

You must be logged in to post in the forum