4

I have tested your code and modified it use below : public function modifyall(Varien_Event_Observer $observer) { $products = $observer->getCollection(); foreach( $products as $product ) { $originalprice = $product->getPrice(); $customprice = $originalprice+ 100; $product->setPrice($...


3

Create events.xml file at app/code/YourNamespace/YourModule/etc/frontend <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"> <event name="checkout_cart_product_add_after"> <observer name="custompricemodule" instance="...


3

Yes, it is possible, this blog post (German) uses exactly this as a simplified example for dynamic pricing: http://www.avs-webentwicklung.de/nc/blog/artikel/magento-umsetzung-von-flexiblen-preisen.html Summary: Add an input field "price" to the form on the product page. Create a custom module with an observer for catalog_product_get_final_price: <...


2

You can use this module http://www.magentocommerce.com/magento-connect/et-currency-manager.html it will give you the option to cut zero decimals


2

This will require to rewrite app\design\adminhtml\default\default\template\sales\order\create\items\grid.phtml file. Once you rewrite this file to your module. find below code in the file. <?php $_isCustomPrice = $this->usedCustomPriceForItem($_item) ?> <?php if($_tier = $this->getTierHtml($_item)): ?> <div id="item_tier_block_<?php ...


2

Your code did not for simple products too (because it not include data from special price, tear price, required options, catalog price rules). Magento using price index mechanism to pre-calculate price for a product. See catalog_product_index_price table. The field min_price contains the minimal possible price for product and layered navigation use this ...


1

You even don't need coding. Depending on the range of chooseable prices, you can just use custom options with a price.


1

Use this code for price with currency to display. $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $priceHelper = $objectManager->create('Magento\Framework\Pricing\Helper\Data'); $finalPrice = $priceHelper->currency($product->getCustomPrice(), true, false);


1

I was getting frustrated, so I just did a general search of the code for ['amount'] and this is what I found inside of app/code/local/Company/Giftcard/Model/Observer.php: public function checkoutCartProductAddAfter(Varien_Event_Observer $observer) { // set custom price for the quote item $item = $observer->getQuoteItem(); $product = $item-&...


1

You are correct that getFinalPrice is the correct place, however I think you may be missing some calls to 'set it' correctly. Have a look at this github file: https://github.com/ProxiBlue/GiftPromo/blob/master/app/code/community/ProxiBlue/GiftPromo/Model/Product/Type/Gift/Simple/Price.php This is from a GiftPromo module I wrote aeons ago. It basically ...


1

I've dig into the core and found a lot of unclear things, so I made this helpful but very dirty hack: public function updateItemCustomPrice($item, $price) { $item->setCustomPrice($price) ->setOriginalCustomPrice($price) ->setBaseTaxCalculationPrice($price) ->setTaxCalculationPrice($price) ->getProduct()->...


1

How many store do you have right now? If you have multi store. Please check once have you set the price for that store which store product you are seeing at frontend. Also Please do indexing from magento admin panel.


1

You can use catalog_product_type_prepare_full_options event if you want to set custom option In this event you can easily get $product object by using $product = $observer->getEvent()->getProduct(); set your custom option by $infoOptions[] = array( 'label' => "YOUR_LABEL", 'value' => "...


1

That's a default feature of Magento, just add a custom option with an input type of Select, Drop-down or Radio-Buttons. Then add two items: 2 channel would be zero price and 3 channel would be the additional 39.99


1

You could use create a "Price Block" product attribute (dropdown type) and assign each product a value. You then need to add the Price Block column to the product grid in the admin. You can do this by rewriting the Mage_Adminhtml_Block_Catalog_Product_Grid with something like protected function _prepareCollection() { parent::_prepareCollection(); $...


1

You can use a csv file with two columns, sku and price, that can be scanned pretty easily in magento and this will automatically update all corresponding sku-price pairs. check out this


1

I believe this is not possible per default, but should be possible by creating an own option. At least it's possible to implement custom pricing for a custom option (which will override that one of specified in the product settings)


1

I've partly solved this, although it's still incomplete and has been sidelined (I'll try to return to it and update this answer). The rules are applied within the process() function of Mage_SalesRule_Model_Validator. This function is called for every quote item in the cart, and applies the collection of sales rules to the item. process() has access to the ...


Only top voted, non community-wiki answers of a minimum length are eligible