I'm developing a plugin for a website with Shopware and whenever I have the jQuery code appended with the other .js files, clicking on the cart button would start loading forever and never actually display the popup. I initially thought it could be the jquery code breaking it but it seems the code content itself has no effect on whether that will happen. In Firefox's Javascript console, I had this show up "TypeError: jQuery.controller is undefined" whenever I'd click on the cart. So, I'm not really sure what I'm doing wrong.
I'm trying to set up a custom dropdown "select" box with a custom arrow but the problem I'm facing here is that whatever customization I try do to the box, the default dropdown arrow is still there and wouldn't be replaced by whatever I try to set it to.
So, in this plugin I have 4 items' IDs that are added to the database and then the info for each one should be fetched. 4 images with the respective item's name are then displayed in the plugin and upon clicking an item's image or its name, the rest of the item's info should be displayed. I'm not entirely too sure how to approach this for the plugin. My idea is to make a function (e.g. "getItemInfo($itemID)") that will return an Article object with the loaded details and then have all needed item info in "data-DETAILNAME=", which will then later be loaded upon clicking. Now, the problem I'm facing is that I'm not too familiar with how to load this data from Shopware, so I'll really appreciate, if someone is able to help me here.
Thank You!!!
I didn't find the right solution from the Internet.