Developer forum

Forum » Feature requests » Add Active flag to payment and shipping providers

Add Active flag to payment and shipping providers

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Can an Active flag be added to the Payment and Shipping providers like we have on Address Validation providers so we can easily switch providers on and off? That'll make it a lot easier to manage them; currently we either need to delete and recreate them later, or assign them to some bogus country.

Thanks!


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

TFS#60054 and TFS#60055

Votes for this answer: 1
 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Imar

The above now implemented in Dynamicweb 9.7+ versions

http://doc.dynamicweb.com/releases-and-downloads/releases

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Excellent, thanks. There's one potential breaking change though. It seems that after the upgrade all payments are activated by default, but all the shippings are deactivated. I tracked it down to this SQL statement in the ecom xml updates file:

ALTER TABLE [EcomShippings] ADD [ShippingActive] BIT NOT NULL DEFAULT 1

When this runs, it adds the new column and sets its value to true by default. However, EcomShippings *already had that column* (and it allows nulls) so the above is never executed. I found a database on DW 9.3 that already had it, and it may go back to even before that version.

This means that if you upgrade now, all your shippings are deactivated initially. It would be good to have another update statement in the ecom xml updates file like this:

UPDATE EcomShippings SET ShippingActive = 1 WHERE ShippingActive IS NULL

to ensure all the existing ones are activated.

Thanks!

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

HI Imar,

New TFS 69579 has been created to fix the bug, thanks for observing.

BR, Oleg QA

 

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Great, thanks Oleg!

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Imar

The problem regarding #69579 "Issue with adding Active flag to shipping providers" has now been resolved in Dynamicweb version 9.7.2

To upgrade please choose this version from download here:

http://doc.dynamicweb.com/releases-and-downloads/releases

Let me know if you need any more help regarding this

Kind Regards
Dynamicweb Support
Kristian Kirkholt