Is there any way to get to know if something has c...
# suitecommerce
l
Is there any way to get to know if something has changed in the shopping cart on SCA site when Scritable Cart is On
m
You wanna do it with scriptable cart? because you can wrap the functions that alter the cart and do a few triggers, like a watcher that notifies you when something happen
l
Yes I wanna do it in scriptable cart, I have something on PageInit() which I do not want to call. Also, I wanna do not want to use warp, I need something which is recommended by SCA extension standards.
f
scriptable cart is not actually recommended by SCA extensions
I would say that if you do not have scriptable cart enabled already then you should try to avoid turning it on
l
Currently I have huge customization using scriptable cart on SCA, I even can't touch that code. I have PageInit and SublistChanged event running on SCA webstore. What exactly I would like to do is I want to avoid triggering pageInit event when nothing has changed on webstore.
m
@Martin or @Flo I am new to SCA, can you go more into depth on why Scriptable Cart is not advised and better development patterns to use? I am currently scripting an editable order extension. Where the user dumps the order items and quantities to the cart. Finishes shopping and when they get to checkout instead of creating a new Sales Order it will update the existing one. I am not entirely sure whether scriptable cart is necessary for this?
f
Hi Marvin. You don´t actually needs scriptable cart for this.
I am not sure why you would use the cart for this if the customer wouldn´t go into the checkout
m
@Marvin scriptable checkout will impact the performance of your website, the customization you just mention maybe was able to be done with a userevent on beforesubmit
f
I would use something like product lists, use a suitescript to add the items to the existing order and that´s it
1000 1
assuming the existing order already have the payment info
m
Thanks for your help I will turn it off in Sandbox and continue developing. Sorry @Lucas for hijacking your question.
l
@Marvin No worries at all.
Thanks for the help @Flo