javascript - Strategy for assigning a unique price for all customers based on a condition in MongoDB -



javascript - Strategy for assigning a unique price for all customers based on a condition in MongoDB -

i working on web store application each client assigned unique markup value products each client has his/her own custom pricing. 2 attributes in products collection invoiceprice , memberprice. memberprice = invoiceprice x markup value.

is there efficient way me give each client custom memberprice without having create custom products collection each client contains custom memberprice?

note 1 - using datatables bundle nowadays product list client , doesn't allow me modify info (such memberprice calculation) 1 time info sent datatable.

note 2 - create memberprice calculation , modification on client side using javascript, expose invoiceprice , custom markup client, not secure.

note 3 - building app using meteor.

well easiest way dynamically compute cost when it's presented datatables bundle won't allow that.

one alternative create client-side collection gets filled products , pricing user , render datatables package. clever client able modify his/her pricing console. you'd have validate cost used @ checkout on server.

to create client-side collection:

mylocalcollection = new collection(null);

javascript mongodb meteor

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -