Oracle CPQ Cloud (formerly BigMachines) quoting tool and "Set as Primary" quote button into skuid p

Looks like you’d only need to change line 3:

From: OppLineModel = skuid.model.getModel(‘LineItems’),  // this is your Opp Products, not quote Products

To: OppLineModel = skuid.model.getModel(‘OpportunityLineItem’),  // this is your Opp Products, not quote Products