13

You've probably have solved this problem already, but for other people looking for resolution - you need to set store scope first. Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);


7

I've done this for importing group prices with SOAPv2 for Magento CE 1.7.0.2 some time ago and wrote a a (german) blogpost about this (Google translate might help). I added the important parts with an english explanation here and hope this helps you getting started. Basically you need to rewrite the catalog/product_api_v2 model and extend the ...


5

Price - This is the regular price for a product Group Price - This is the price a group (e.g whole sale) (This will be displayed instead of price) Special price - This is a Promotional price, which can be given a start and end date (This will be displayed below price and price will be crossed out) Tier price - This is quantity based discounts. By 2 for X ...


4

Hi You need change product object to $_product as product page then you did not load afterLoad function <?php $login = Mage::getSingleton( 'customer/session' )->isLoggedIn(); //Check if User is Logged In if($login) { $groupPrices = $_product->getData('group_price'); $Groupprice= $...


3

I have the same issue after upgrade to 1.9.3.2. I think it's a core bug that is related to the new group price attribute is_percent. Here is a hotfix that I use: EDITED: app/design/adminhtml/default/default/template/catalog/product/edit/price/group.phtml: if (data.readOnly == '1') { // EDIT: added 'is_percent' to disabled fields ['...


3

You can load the group prices using the backend model of the group_price attribute. The following code loads and outputs all group prices: $groupPrices = $ProductObject->getData('group_price'); if (is_null($groupPrices)) { $attribute = $ProductObject->getResource()->getAttribute('group_price'); if ($attribute){ $attribute->...


3

you are calling $product->save() without calling $product->load(). This results in loss of data (or wrong data). You should never call save on an item from a collection. You should call load before doing that. Also, calling save in a loop results in huge performance issues. save is very resource consuming. If this is a "one time only script" I ...


2

Found it... removing the website specific definition solved it. Apparently you cannot combine a customer group price for "All Websites" with customer group prices for specific websites.


2

Modify your theme's catalog/product/price.phtml template. In your case, that is the rwd theme. I would advise you to do this on a separate theme and apply the changes there, but it might be too complicated on your case... Anyhow, just keep a backup of the original template file. So you can revert it back if you break something. Open the template file app\...


2

If you want to show all group price then you need to call group_price attribute resource model $attribute = $ProductObject->getResource()->getAttribute('group_price') of that particular product and using afterLoad() ($attribute->getBackend()->afterLoad($ProductObject)) You will get group prices value in array of a particular product which ...


2

In Lesti_FPC's system.xml file change the "0" to "1" in below section to activate it. <customer_groups> <label>Customer Group Caching</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_yesno</source_model> <sort_order>70</sort_order&...


2

First, remove the group_price attribute from your product fixture and assign a proper price that is higher than the group price, e.g. eav: catalog_product: - entity_id: 1 […] price: 29.99 Second, use the correct table alias for your group price fixture, e.g. tables: […] catalog/product_attribute_group_price: ...


2

This one seems to do the trick pretty well: $from = $_POST['from_group']; $to = $_POST['to_group']; $collection = Mage::getModel('catalog/product')->getCollection() ->addAttributeToSelect('*') ; foreach($collection as $product) { $groupPrices = $product->getData('group_price'); if (is_null($groupPrices)) { $attribute = $...


2

As far as I know, you can't simply update group price data using saveAttribute because it has a custom backend model, catalog/product_attribute_backend_groupprice. When you load and save a product object, group price's custom resource mode does the work to load and save the data accordingly. If you look at ...


2

It's not possible to have customer group prices, special prices or tier prices per associated product with configurable products. Magento completely ignores prices of associated products in the configurable product type. You can specify a price difference for each associated product within a configurable product, but the base price with its modifications is ...


1

Cheaper prices (as it can conceptually be group_price, per customer_group) should be joined when calling addMinimalPrice() public function addMinimalPrice() { return $this->addPriceData(); } And so... public function addPriceData($customerGroupId = null, $websiteId = null) { $this->_productLimitationFilters['use_price_index'] = true; if ...


1

Looks like I found what was wrong. 'Disable automatic group change based on vat id' checkbox MUST be checked on customer's profile, or else I guess Magento will choose a group by itself in the moment the customer puts an item on his cart.


1

I have found the problem. If a product already has "Tier Prices" defined, updating customer group prices somehow causes that error I reported above. So, this is how I have solved it and it's working: // Parse group prices $groupPrices = array(); foreach ($productInfo->Prices as $groupPrice) { $groupPrices[] = array( 'website_id' => 0, ...


1

Here $product is the product Object. Group Price:- $roleId = Mage::getSingleton('customer/session')->getCustomerGroupId(); $grp_price = $product->getData('group_price'); $customer_groupprice = $grp_price[$roleId]['price']; Here the current customer Group ID $roleId. $customer_groupprice is the customer Group Price. Tier Price:- $roleId = Mage::...


1

Group price you have set up will display to the customers who belong to "Dealer" customer group. Most likely you are visiting product page not logged in or you are not assigned to "Dealer".


1

There has been changed the use of group prices in Magento 2 and higher. They are integrated with tier prices and now you can set tier price per customer group (see the screenshot) http://i.stack.imgur.com/b2NAh.png


1

Go to the Associated Products tab of the configurable product, and add price adjustment per simple product. Example: http://cdn.aschroder.com/wp-content/uploads/2010/07/associated-products.png


1

It seems flat catalog is enabled in your website: Inside System->Index Management->Product Prices ->Reindex Data also set mode as Update on save


1

I fixed it like this: require_once("./app/Mage.php"); Mage::app(); Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); function productCallback($args) { $product = Mage::getModel('catalog/product'); echo $product->getSku() . ': ' . $product->getGroupPrice() . "<br/>"; $groupPrices = $product->getData('...


1

You can speed up saving group_price attribute like this: $prices = $product->getData('group_price'); above code return array, next step is to modify this array and last inject as parameter to below: $product->setGroupPrice($prices) ->getResource() ->getAttribute('group_price') ->getBackend() -&...


1

The duplicateAction() is in Mage_Adminhtml_Catalog_ProductController which calls the duplicate() method of Mage_Catalog_Model_Product. In the duplicate() method, the data is set on the new product. There's an event which you can use to hook in, retrieve the group price of the current product and set it to the new product: Mage::dispatchEvent( '...


1

This question also exists on stackoverflow: "Adding a From and a To date for tier prices in admin module". The conclusion is "this is not possible by default within, magento" and the solution is creating a custom module which listens to the sales_quote_add_item and modifies the price/applied promotions of an item added to the cart, if the current date is ...


1

you should never call save without calling load first on a product instance. A save without a load (on a product from a collection for example) will lead to loss of data. If you only want to update a single attribute value for a product do this: Mage::getSingleton('catalog/product_action')->updateAttributes( array($attributeId), array('...


1

<?php class Rahul_GroupPrice_Model_Api extends Mage_Api_Model_Resource_Abstract { public function setGroupPrice() { $collection = Mage::getModel('catalog/product')->getCollection(); foreach ($collection as $product) { $productObj = new Mage_Catalog_Model_Product(); $productObj->load($product['entity_id'])...


1

NO there is no way. Group price is not a simple attribute. It's value is saved as a serialized array that cannot be used in promo rules.


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