简体   繁体   中英

Websphere Commerce shipping charge customization

I'm trying to customize a shipping charge processing in a way that it is applied only if a textbox field was filled.

I´m having a hard time figuring out the right place to put the snippet that solves this problem.

As I understand, I need to extend a class that have the shipping charge value available and it's value has not been applied yet, so I can change it to zero (invalidating that charge) when the field was not filled. I already read a lot of the Calculation Framework and debbuged a lot of the default implementations, but no success yet.

Any tips? Thanks in advance.

Have you read the WCS shipping charge white paper? Also, you might want to ask this question to IBM Software Support. They may put you in contact with the development team and tell you the best way to implement this.

I'm assuming that you aren't trying to set up a free shipping promotion based on a user entered promotion code. I would start with the following article in the WebSphere Commerce InfoCenter and the "Related Tasks" at the bottom of the article. It describes the data that is used to configure the shipping calculations.

http://pic.dhe.ibm.com/infocenter/wchelp/v7r0m0/topic/com.ibm.commerce.calculationframework.doc/refs/rcfshipping_example.htm

If you are still wanting to alter the code then you can take a look at this artice: http://pic.dhe.ibm.com/infocenter/wchelp/v7r0m0/topic/com.ibm.commerce.developer.doc/tasks/tshcustcharge.htm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM