I want to put an additional sku in the product page. I have this code: <?php $product = $block->getCurrentProduct(); $sku = $product->getData('sku'); if (trim($sku) !== "") : ?> <div class="product-info-sku"> <?php echo $sku; ?> </div> <?php endif; ?> but I got this error Fatal error: Uncaught Error: Call to a […]
Magento
I have a site built with Magento 2.3. In checkout cart, I want to hide the button that proceed to checkout if the quantity of a product pass the maximum quantity. How can I do this? Thank you!
I’m getting this error when I do: "bin/magento setup:static-content:deploy -f" but the website works fine, what does it mean? In File.php line 151: The contents from the "/var/www/magento/pub/static/frontend/Mytheme/custom/en_US/jquery/jstree/themes/classic/style.css" file can't be read. Warning!file_get_contents(/var/www/magento/pub/static/frontend/Mytheme/custom/en_US/jquery/jstree/themes/classic/style.css): failed to open stream: No such file or directory
I accidentally assigned product images as store view during csv import Like as base_image,small_image,thumbnail_image,swatch_image with store_view_code value. How can i unassing all image data from the store scope to use default value?
I am facing this issue, while creating the configurable products. SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?))' at line 3, query was: SELECT `l`.`product_id`, […]
I want to create a price rule, but instead of creating it from within the admin, I want to do it in either Setup/Patch/Data or do another way in backend. How can I accomplish this?
We had a module that created 3 specific cronjobs. This module was located in the app/code folder and we recently removed the entire module by removing the folder and then run the upgrade command. But now when we check magerun2 sys:cron:list we still see that these 3 cronjobs exist. They […]
I made a simple custom CRUD module. My table have 4 columns: id, name, action, schedule. Action is a select where I can select a controller. Schedule is a text field where I can store for example: * * * * *. This means that every row I add in […]
I’ve made a copy of a Magento folder to set up another domain, swapped the old domain name both in the database (web secure url) and in the filesystem (env.php), and pretty much everywhere I could find it (did a recursive case-insensitive grep for the subdomain name and a search […]