I am working on shipping module where i need to fetch quote subtotal in both area frontend as well as admin order create. I am using MagentoCheckoutModelSession to get the quote subtotal but when i try to check in admin no value return for quote. Also tried MagentoQuoteModelQuote method getBaseSubTotal […]
Magento
so here is the scenerio. I want to display bare html in the product titles. But magento strips any html in the product title as you can see here (https://swadeshiherbal.com/khomba-baby-cologne-herbal-100ml-6.html) . Please help me to find the template file that magento uses to display these titles so that I can […]
The report generated by Magento 2 (backend > reports > sales > coupons) does not show exact values. For eg the following order was placed with discount -10CHF However, on the coupon report on the same store scope does not show the same *All the totals are tax inclusive including […]
I’m trying to simplify HTML and JS for my page, and have problem with regular expression: $replace = [ ..., '~([rnt ])?([a-zA-Z0-9]+)="([a-zA-Z0-9_/\-]+)"([rnt ])?~s' => '$1$2=$3']; $scripts = preg_replace(array_keys($replace), array_values($replace), $scripts); $html = preg_replace($searchh, $replacee, $html); But in case of expression like this: <script>var swatchImageOption4 = document.querySelector('div[data-option-id="4"]'); swatchImageOption4.style.background = "u0023f70d0d no-repeat […]
I am trying to find this error through var/log and disable custom overriding. But this not able to find the issue. Can u Please help me it?
We have Run Below Command for install magento in docker. curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/onelinesetup | bash -s -- magento.test 2.4.5-p1 But given error. Error Screenshot :-
I have a curl script to send sms. Below is the code. $userId = $this->gupShupConfig->getSenderUsername(); $password = $this->gupShupConfig->getSenderPassword(); $smsApiUrl = $this->gupShupConfig->getSmsApiUrl(); $post_fields = array(); $post_fields["method"] = "sendMessage"; $post_fields["send_to"] = $formattedMobileNumber;//"919820XXXXXX"; $post_fields["msg"] = $smsMessage; $post_fields["msg_type"] = "TEXT"; $post_fields["userid"] = $userId; $post_fields["password"] = $password; $post_fields["auth_scheme"] = "PLAIN"; $post_fields["format"] = "JSON"; $curl = […]
Programatically, add a custom field(‘is_vip’) in order. If a customer order value over $150 , the field value will be 1 and in order grid it will show yes.
It shows all products on the search results page even though there’s pagination. But the results are the same for all pages. So the page speed is too slow and sometimes it’s not working. I checked this issue with two databases but it’s working in the old database. I also […]