Hi, using SCA code, on PDP, can we set different p...
# suitecommerce
s
Hi, using SCA code, on PDP, can we set different price (from a different price level in NS) and then that new price is used throughout our WebStore? Thanks
Found that quite a few View.ts files are using the getPrice() method (from Item.Model.ts) and then passing the returned price to their templates. Making changes in the getPrice() method will change the price in some places on webstore but not in all of them.
s
I am bit confused. What exactly are you trying to do? Firstly, if you want customers to have different prices on your web store, then price lists are the best way to do this. It's very easy to assign customers to price lists and will ensure consistency throughout the site and business as a whole. Once it is known which price level to use for a customer, it will automatically be applied throughout the web store. You can set a default price list for your web store as a whole, which is then overridden by what the customer is assigned. Easy. Secondly, messing with how the frontend price code will just change how prices are displayed. It won't have any effect on what prices the customer is charged, so this is a Very Bad Idea. Just because the frontend code says something is one price will have no effect when it comes to adding an item to the cart at that price as it has to be validated in the backend. Some price manipulation can be done with Scriptable Cart but, again, I think the best way to do what I think you want to do is to use price lists.
s
Hi @Steve Goldberg...Thanks Actually what I am trying to do is that on Webstore, when some specific items are added to cart, I want to change only their price level. In NetSuite > Sales Order record, on item sublist, we can change the price level for each individual item. In Webstore, through SCA code, is there a way to set different price level for each item in cart?
message has been deleted
s
I see. That is not something I know how to do