As I asked it in the title, I decided to move my Magento Store to a subdomain. I created a showcase site that is published at my main domain. The thing is my store was published for 2 years and even if I didn’t work on SEO improvments, my website […]
Magento2
I’m getting errors in Left join, below is my code. $motorcyclebookFactory = $this->motorcyclebookFactory->create() ->getCollection() ->addFieldToFilter('product_id', $productCollectionData->getId()); $motorcyclebookFactory->getSelect()->joinLeft( 'rider_detail as wrd', 'wrd.booking_id = main_table.booking_id', ['booking_id', 'booking_series_id'] ); Error is { "code": "500", "message": "SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'product_id' in where clause is ambiguous, query was: SELECT `main_table`.*, `wrd`.`booking_id`, `wrd`.`booking_series_id` […]
Magento 2.4.5 Porto theme What is the easiest way to upgrade Magento 2.4.5 to Magento 2.4.5 p1 which was released on October 11th?
I’m trying to change the logo of my Magento store so I go to Content > Design > Configuration, I click Edit on the Default Store View, I scroll down to Other Settings and open Header… I already have a logo there so I click on the trash icon to […]
I could successfully force showing old prices along with special prices inside a product page without the user first having to pick a variant (such as size) from the dropdown. However catalog pages proved to be tricky: some logic in Magento seems to iterate over the product object and basically […]
app/module/vendor/View/layout <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi: noNamespaceSchemaLocation= "urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="product.info.main"> <block class="SegaProductHeightBlockProductHeight" template="Sega_ProductHeight::height.phtml" cacheable="false"/> </referenceBlock> </body> </page> app/module/vendor/View/template test module/vendor/Block <?php namespace SegaProductHeightBlock; use MagentoCatalogModelProduct; use MagentoFrameworkExceptionLocalizedException; use MagentoFrameworkRegistry; use MagentoFrameworkViewElementTemplate; class ProductHeight extends Template { protected $registry; protected $product; public function __construct( TemplateContext $context, Registry $registry, array $data) […]
Anyone knows what’s going on with Magento. There are a lot of websites getting compromised recently and it doesn’t matter which version you are. Which version is safe for now? and are there any patch versions coming for 2.3 and 2.4?
I have a phtml file. I want to get the product short description by SKU. I can use ObjectManager to do the work. But looks like this is not a proper way to do it. Anyone can help with recommendation to replace ObjectManager method? Thanks! <?= $block->getProductName($item->getProductId()) ?> <?= $item->getProductId() […]
I have this issue with my Magento 2.4.3 where it does not sort by position. I found this code where I need to override, but I am quite new with Magento, is there anyone that can show me or tell me how to override: MagentoCatalogSearchModelResourceModelFulltextCollection The code: protected function _renderFiltersBefore() […]