I am duplicating a product, disabling the old one and want to set the url of the new product to replace the old product. $duplicateParent = $this->productCopier->copy($oldproduct); $oldproduct->setUrlKey($existingUrlKey . '-old'); $oldproduct->setSku($existingSku . '-old'); $oldproduct->setVisibility(1); $duplicateParent->setUrlKey($existingUrlKey); $oldproduct->save(); $duplicateParent->save(); It’s throwing an error because the URL exists already, even though I’ve changed […]
Magento2
I am trying to run project, so I run composer update. I got error like this. what is this? How can I fix it?
I am using Magento 2.4.6, and using the multi-site function, One of the sites, I like to display as a catalog, does not need a shopping cart (My Cart). I know that hiding prices can hide the add to cart button on the product page, but I need to know […]
I use magento2.4.6, and the catalog/Categories in the background cannot display the pictures I uploaded And the following error is displayed: jquery.js:4050 jQuery.Deferred exception: Cannot read properties of undefined (reading 'clientWidth') TypeError: Cannot read properties of undefined (reading 'clientWidth') at UiClass.setLayoutStyles (https://www.instar.ro/static/adminhtml/Magento/backend/en_US/Magento_Ui/js/grid/masonry.js:133:58) at UiClass.initComponent (https://www.instar.ro/static/adminhtml/Magento/backend/en_US/Magento_Ui/js/grid/masonry.js:104:18) at setNested (https://www.instar.ro/static/adminhtml/Magento/backend/en_US/mage/utils/objects.js:44:25) at Object.nested […]
I am using the following condition and its print one value, if(self.options.nearestlocationsBlock) { var firstStore = _.first(locations.items); var newContent = '<div class="store"> <div class="zipcode">'+firstStore.address+','+firstStore.city+','+firstStore.state+','+firstStore.zip+'</div></div>'; self.storeListIdentifier.html(newContent); } I want to print the next three values, how to do that? eg: I am print first value, i want to print next three […]
Created some new subcategories but when I set up the links, I get a 404 error even if its working on backend. e.g. this link doesn’t work https://www.jadeed.store/categories/personal-care/electric-massager.html But the version I had to implement based on a filter? That worked but it was a makeshift solution https://www.jadeed.store/categories/personal-care.html?cat=267_electric-massager Problem is […]
I am getting an error while regenerating the static content. In Admin dashboard links are not working. Can delete the var folder and pub/static folder and regenerate content? Or How can I fix this problem? I am getting this problem after installing Stripe plugin.