Edited cart plugin to prepare for searching algoritm