Developer forum

Forum » Ecommerce - Standard features » Editing addresses

Editing addresses

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

What's the magic behind editing addresses in the frontend of the Customer Center? I set up the customer center to allow a user to edit addresses. This takes me to the same page with a query string like this appended: ?CC576=Orders&addr=1&ObjectID=390&Action=ManageAddresses

However, instead of seeing an edit address screen, I see a product image. That looks like an issue with the setup of templates. But I can't find where the templates are assigned or where and settings are configured. The manual isn't all that helpful: All that http://manual.dynamicweb-cms.com/Default.aspx?ID=7516 says is that it can be done. Google and a forum search don't give much help either.

Any thoughts?

 

Thanks,

Imar


Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Further to this: even when I do know the location of the templates, what can I do to debug this issue? It doesn't seem t load the address edit screens at all, but something else. However, I have no idea what it loads (I don't know where the product image comes from) and have no clue where to start debugging in order to find that out.

Imar

 
Morten Bengtson
Reply
This post has been marked as an answer

You need to link to a page with the "Extranet/Intranet (Extended)" module. I guess this could be placed on the same page as the one where you have Customer Center set up, but I haven't tried that.

Anyway, I just tested this by setting up a separate page with the "Extranet/Intranet (Extended)" module and using the standard templates, which works as expected. I have only changed "Details - User" to use the view_profile_addresses.html template and selected "Allow editing", but you would need to ensure that templates are selected for "Manage addresses" as well.

See module settings in the attached screenshot.

user_addresses.png
Votes for this answer: 1
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi Morten,

Thanks, that looks promising. Could it be that Dynamicweb can also infer the first page with the Extranet module on it and that it's picking up the wrong one in my case? On the Solution Set (http://solutionset.dynamicweb.dk) the Edit Addresses links to the same page (the Customer Center) but that page has no Extranet module on a paragrah, only the Customer Center module. So, it seems there's still some other magic going on...

Thanks!

Imar

 
Morten Bengtson
Reply

The magic is in the order list template. It constains the following:

<!--@If Defined(Server:Request.addr)-->
<div class="customer_wr">
    <!--@Global:Paragraph.Content(1481)-->
</div>
<!--@EndIf(Server:Request.addr)-->

...

<a href="<!--@Global:Request.Url-->&amp;addr=1&amp;ObjectID=<!--@Global:Extranet.UserID-->&amp;Action=ManageAddresses"    class="btn btn-default btn-small"><!--@Translate(myaddresses, "My Addresses")--></a>

So, they just include a paragraph with the extranet module from another page when a specific query string parameter is present ("addr").

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Aha, so it's not magic but a hack ;-)

Thanks for clearing that up...

Imar

 
Merethe Nielsen
Reply

About multiple addresses for extranet: http://manual.dynamicweb-cms.com/Default.aspx?ID=7516

/Merethe

 

You must be logged in to post in the forum