The website have 12 store views. 6 of them have .html suffix for products while the other 6 doesnt. I am not sure how that happened. I edit the store settings for all of them to have the .html suffix but it is not working even with the magento flush […]
Magento
There seems to be an issue with a module I have called Aheadworks AutoRelatedProducts. Basically, the requirejs section looks like this: map: { '*': { 'awArpGrid': 'Aheadworks_Autorelated/js/aw-arp-grid', 'awArpSlider': 'Aheadworks_Autorelated/js/aw-arp-slider', 'awArpSendClickStatistics': 'Aheadworks_Autorelated/js/aw-arp-send-click-statistics', 'awArpAjax': 'Aheadworks_Autorelated/js/aw-arp-ajax' } }, So for example, the awArpSlider alias does not work when referenced, e.g that is referenced […]
I have that in my backoffice : and I need that: This solution does not work for me : if($key == 1){ $prod->addImageToMediaGallery($imgPath, array('image', 'small_image','thumbnail'), false, false); }else{ $prod->addImageToMediaGallery($imgPath, null, false, false); } $prod->save(); How can I do ? Thank you
Trying to run a Delta migration but I’m getting a Volume Check Failed message, but unlike others I’ve faced, this one has no further info? Does anyone know how to extract something more useful out of this? [2022-04-11 14:49:56][INFO][mode: delta][stage: delta delivering][step: Customer Attributes Step]: started [2022-04-11 14:49:56][INFO][mode: delta][stage: volume […]
I am new to Magento and I have noticed that everytime I run: bin/magento setup:install --base-url=http://localhost:8090 --backend-frontname=admin --db-host=magento_mysql --db-name=webshop --db-user=admin --db-password=test1234 --admin-firstname=admin --admin-lastname=admin --admin-email=info@sample.com --admin-user=admin --admin-password=test123 --language=nl_NL --currency=EUR --timezone=Europe/Amsterdam --use-rewrites=1 --elasticsearch-host=elasticsearch --elasticsearch-port=9200 The config.php and env.php file are being regenerated. What I would like to accomplish is to have a […]
Create a product group and create an attribute into that specific group…it’s quite easy in magento. Ex : public function createAttributeGroup($groupName,$order = 1) { $attributeSetId = $this->product->getDefaultAttributeSetId(); $attributeGroup = $this->attributeGroupInterfaceFactory->create(); $attributeGroup->setAttributeSetId($attributeSetId); $attributeGroup->setAttributeGroupName($groupName); $attributeGroup->setSortOrder($order); $this->attributeGroupRepository->save($attributeGroup); } This is working fine and you will see a new fieldset in the product form […]
What does this code mean in the Magento2 payment page? In particular, what does getCode mean <div class="payment-method" data-bind="css: {'_active': (getCode() == isChecked())}"> <div class="payment-method-title field choice"> <input type="radio" name="payment[method]" class="radio" data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()"/> <label data-bind="attr: {'for': getCode()}" class="label"> </div> </div>
How to get custom collection before start 1 hour and before end 24 hours Magento 2. I am not able to add the correct date condition. Does anyone help me, please? $now = date('Y-m-d H:i:s'); $oneHourBack = date('Y-m-d H:i:s', strtotime('-1 hours', strtotime($now))); $oneDayBack = date('Y-m-d H:i:s', strtotime('-24 hours', strtotime($now))); $customCollection […]