I am creating mobileApp using APIs i used my custom API to return products and used the the function that return price according to the currencycode given below is the code public function getPriceByCurrency($price) { $rate = $this->_currencyFactory->create()->load($this->apiHelper- >getStoreBaseCurrency($this->_storeId))->getAnyRate($this->_currencyCode); $itemAmount = number_format(($price * $rate), 2); return $itemAmount; } However it […]
Magento
I have a product in which final price is determined by a choice of a set width option plus a choice of set a height option. Is there a way to do this with attributes?
I’m new to Magento and working on an integration where I’ve created a custom API which is creating a product, if not available and then creating an order. But I’m facing this error “Product that you are trying to add is not available.” while creating an order programmatically just after […]
I’m creating a new PWA Studio setup using Adode Commerce Cloud 2.4.6. Am I able to set up and use Content Staging objects and campaigns?
Recently, I made the Magento settings update regarding the “Add Store Code to URLs.” I have set this option to “No,” which has successfully removed the store code from the URLs. However, I have encountered a new issue. Customers are still able to access the old URLs, which now result […]
I want to add the custom field i.e. po_number in the braintree credit card method in the payment page. Here is the code which I have added for field. <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="checkout.root"> <arguments> <argument name="jsLayout" xsi:type="array"> <item name="components" xsi:type="array"> <item name="checkout" xsi:type="array"> <item name="children" […]
i want to create a module or script which will run via cron once in a day and it will check those product which qty greater than 0 but stock status is out of stock and made it inStock please what is the best code i will write.
is there any way to download the patch APSB23-35 and manually apply it ? I have several older Magento2 installations, and update them is a time consuming task – so i was wondering if there is a “hotfix” so i can manyally deploy it. Thanks
How on Earth am I meant to move orders from Magento 1.9.4 to Magento 2.4.5-p1? Someone suggested the ‘Improved Import & Export for Magento 2‘: https://firebearstudio.com/the-improved-import.html I’ve reached out to them regarding exporting the orders first from Magento 1.9.4 and they explained that they have an extension for that for […]