In my code i can apply 50% discount on cart but i want this discount to apply only when product from a specific category is added. MagentoQuoteModelQuote $quote, MagentoQuoteApiDataShippingAssignmentInterface $shippingAssignment, MagentoQuoteModelQuoteAddressTotal $total ) { parent::collect($quote, $shippingAssignment, $total); //$address = $shippingAssignment->getShipping()->getAddress(); $label = 'RolusTech Discount'; $discountAmount = 0; $appliedCartDiscount = 0; […]
Magento
According to the docs, all functions that are not mutations should be included in the SQL syntax. I have a MySQL integration in MBI, but when I try to test some basic SQL functions such as JSON_EXTRACT() in the SQL terminal, the query errors out. For example: SELECT '{"a":1, "b":"stringdata"}'::json […]
I cannot find it di.xml. Any ideas? I want to add a custom css class to specific TopMenu items. I don’t know how to extend this.
I’m new one here. I have no experience with magento developing. I want to change my product swatch from list view to grid or grid view to list view. I have also attached a picture of my product page. Is there anyone available for my help. Please
Hello guys i get my data from db with API i want to show data in frontend , i can do this this is function, that return an array of data. public function getComputerAttr($customerId) { $computerData = $this->computerFactory->create()->getData(); $computers = []; foreach ($computerData as $computer){ if( $computer['entity_id'] == $customerId) { […]
working with Magento 2.4.4 I have customer groups General and B2B. For B2B customer group I would like to display: “You are logged in in the B2B area” after customer logged in. How could I possibly solve this? Does anyone has an idea how I could visualize for customers in […]
I am trying to group the option using optgroup for ui-select component in magento2 grid, but facing some issue. It is working fine with the [label,value] options not with optgroup. What i am trying to achieve? Need to show the dropdown with optgroup in grid filter Below is the optgroup […]
How can I get all orders using Resy API with status as Pre Orders? I tried using Get Orders but not sure which status will reflect that.