Skip to Content
avatar image
Former Member

Add 2 cuf fields in Shopping Cart form Catalog & calculate percentage

Hi

My requirement is I transfer my catalog item with a price to srm shopping cart, I want to dispaly 2 extra cuf fileds in the shopping cart. These 2 filelds will be a percentage value of my catalog price per a specific supplier in a specific state.

I want to show these 3 lines

Item form catalog price $ 90

cuf field 1 will be 10% of 90=$9

cuf field 2 will be 5% of 90 = $4.50

then show total price 90 + 9+ 4.5 =$103.50

cuf field 1 is % per supplier

cuf field 2 is % per state

I am looking at possibly using srm price conditions and looking for a badi like BADI BBP_CUF_BADI_2 that can add the 2 cuf filed lines and calculate my total in my srm shopping cart.

MDM 2 and SRM 5

cheers

alex

this is similar to calculating 2 taxes that are different in different staes...

Edited by: Alex Waiyaki on Aug 26, 2010 6:21 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Aug 26, 2010 at 06:26 PM

    Hi Alex

    Have 2 custom fields added to your SC Layout. Transfer the price in the SC item from catalog (Say $90). Then using BBP_DOC_CHANGE_BADI, calculate the value @ 10% for Cuf field 1 and populate it there in the Cuf field 1. Similarly calucate value @ 5% and populate it there in Cuf Field 2.

    This should solve your problem . Do right back with more detials if this does not help you

    Regards

    Virender Singh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Balachandar P

      Bala

      I have decided to use a Badi plus some custom deleopment to achive my requirement.

      Get price and other info form catalog selection and through development / z-table calculate burden and markup and populate this back into SRM_MDM catalog so i can use the OCI mapping of (NEW_ITEM-CUST_FIELD1) that will be transferd back into S.Cart.

      cheers