How to get the price of a catalog item in a catalog UI policy?

vidhya_mouli
Giga Sage

I have a catalog item which has a variable "outside". If this field is yes, I want to add a shipping charge of 100$ to the catalog price. How do I do this?

 

I tried entering the following code in the Catalog UI Policies script. But it did not work.

        var price = g_form.getValue("price");
        price += 100;
        g_form.setValue("price", price);
2 REPLIES 2

Prince Arora
Tera Sage
Tera Sage

@vidhya_mouli 

 

You can make the variable type a select box with options, such as "Yes" and "No." You can specify the price associated with each choice, as shown in the screenshot below. When you select "Yes," it will automatically populate with a value of $100.

 

PrinceArora_0-1698845872677.png

 

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.

 

@vidhya_mouli 

 

Did you check this?

 

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.