New answers tagged

1

Use this in the end floor( $finalNumber / 100 ) * 100 Works for me perfectly. Thank you


0

You can override the price phtml using your custom theme file and get product price over there and compare your price using if condition if price is greater then your given price show your custom text otherwise default functionality.


0

Something like this as a base https://github.com/DominicWatts/CallForPrice But instead of looking at call for price attribute check price is over 20000 Or alternatively set any over 20000 as call for price Either on cron / console or via admin grid bulk actions


0

You guys can use this extension. https://marketplace.magento.com/extrembler-overridecurrencysymbol.html Which is paid. Thanks


1

You need to override vendor/magento/module-catalog/view/base/web/js/price-utils.js and change the value of precision on line 38: from var precision = isNaN(format.requiredPrecision = Math.abs(format.requiredPrecision)) ? 2 : format.requiredPrecision, to var precision = 0, Or using number_format or round funciton of php like this: $price = 100.00; ...


0

Regular price is always greater than other prices. If your regular price in 100 for 1 qty of the product than the group price will be like 90 for 1 qty of product. If your other price is greater than the regular price, It the wrong concept for eCommerce.


0

This is the only solution that worked for me <block type="cms/block" name="my_static_cms_block"> <action method="setBlockId"><block_id>my_static_cms_block</block_id></action> <action method="setCacheLifetime"><s>-1</s></action> </block>


0

If the question is for Magento 2, there is known issue: https://github.com/magento/inventory/pull/2200


0

You can use the Catalog Price Rules: Don't forget to run reindex and clean cache. Another way is to use a cart price rules without coupon for specific customers, but in that case discount will be visible only on the cart page and checkout, but not visible in catalog.


0

In your module structure create a layout file catalog_product_view_type_configurable.xml, in my case the file path is app/code/{{CompanyName}}/{{ModuleName}}/view/frontend/layout/catalog_product_view_type_configurable.xml. <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...


0

In order to format the price, from a field in UI form, it is necessary to extend the component Magento_Ui/js/form/element/abstract that has actions on the elements of a UI form - in our case we overwrite the setInitialValue method from Magento_Ui/js/form/element/abstract in our component. To format the price, we will use another component in our ...


Top 50 recent answers are included