Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3442674
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:41:52+00:00 2026-05-18T08:41:52+00:00

I have a different price set for products based on customer group. I want

  • 0

I have a different price set for products based on customer group. I want to show both price’s to the customer in case both of them apply in product list, view, related and upsell products.

I turned on template path hints to verify that prices for all views are being rendered from the same template file, which is as follows:

/app/design/frontend/default/my_theme/template/catalog/product

I can see tier pricing correctly in product list, related and upsell products, but NOT for product view.

After debugging for a while I have narrowed down the problematic part of catalog/product/price.phtml file as follows:

<?php
    $_coreHelper = $this->helper('core');
    $_weeeHelper = $this->helper('weee');
    $_taxHelper  = $this->helper('tax');

    $_product = $this->getProduct();
    $_id = $_product->getId();
    echo 'Product Id: ' . $_id;
    $_weeeSeparator = '';
    $_simplePricesTax = ($_taxHelper->displayPriceIncludingTax() || $_taxHelper->displayBothPrices());
    echo 'Simple Price Tax: ' . $_simplePricesTax;
    $_minimalPriceValue = $_product->getMinimalPrice();
    echo 'Minimal Price Value: ' . $_minimalPriceValue;
    //$_minimalPriceValue = 41;
    $_minimalPrice = $_taxHelper->getPrice($_product, $_minimalPriceValue, $_simplePricesTax);
    echo 'Minimal Price: ' . $_minimalPrice;
    //$_minimalPrice = 41;
?>

I have echoed all prices fetched from models above, and only in case of product view page the $_product->getMinimalPrice() above does not return anything, while it appears correctly on list, related and upsell products.

I cannot think of any reason for this. There are a few lines different in catalog.xml but I don’t think they have anything to do with this. Besides, there are a couple of commented lines in the above code, where I have hard-coded the minimalPrice and minimalPriceValue variables. After doing that the price starts appearing in product view also. The Product id for all views including product view is also appearing correctly, so the product IS loaded at that time.

We are using a custom template, and I see that in default we are not having this problem. I am using Magento 1.4.1.1

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:41:53+00:00Added an answer on May 18, 2026 at 8:41 am

    Did you say that what you are trying to do works 100% with a stock theme? If so then you really should look at the differences between your custom theme and the default. Also, you might want to look at any changes the developer made in app/code/community and app/code/local that are customizations for the theme. There could be some conflict.

    But if you can’t find a difference maybe I can give a few hints as to why you might be seeing this behavior. Sometimes the same model (and block) objects have different data in them when you are viewing on the category list page vs the product view page. The reason is that backend queries to the database are different. I did some work with the tiering system before and I remember that when you are looking at the catalog page, the pricing data actually comes from some catalogindex_* tables rather than the catalog_product_entity_* tables. If I remember correctly, there are two tables that it queries, something like catalogindex_price and catalogindex_minimal_price. But then when you are at the product view page the pricing data comes from the standard catalog_product_entity_* and catalog_product_entity_tier_price tables. Anyway, that probably doesn’t solve your problem, but it might get you pointed in the right direction. Good luck.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a product collection called using the following (set to show 6 items):
I have multi-store Magento installation, and different product prices are set in different stores.
I want to return all products from the Product table based on any category
I have different values in different classes. I need to insert them in the
I have different php output in jQuery-based tabs. This output is formed from database
I have different select boxes. I want to select second one with related id.
I have the following models: class Price < ActiveRecord::Base belongs_to :product end class Metric
Suppose that I have an ASP.NET page, where a customer can select a product
I have eCommerce site. I have product page where you can pick up different
I have a Magento store which needs different prices for each site, which restricts

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.