I'm working on a website in Magento 1.9.2. Directly underneath the price on the product pages are links displayed to the reviews and the review-form for that specific product (f.i. 5 review(s) / Add Your Review) When there aren't any reviews available yet there should be a link being displayed 'Be the first to review this product'. Unfortunally this link is not being displayed. The link does show in the tab however.
How can I get the 'Be the first to review this product' link being displayed beneath the price when there aren't any reviews available yet?
Change getReviewsSummaryHtml function last argument to true in catalog/product/view.phtml in your theme.
Code will be as follows:
<?php echo $this->getReviewsSummaryHtml($_product, 'default', true)?>
Related
I have set a speciale price for a product in the backend but when I go to the product page the price appears and then off again. Also in the cart it's not display.
See link what I mean : Link
After seeing your code, find this on line 177:
<?php echo $priceProperties; ?>
And replace with this :
echo Mage::getModel('catalogrule/rule')->calcProductPriceRule($_product,$_product->getPrice());
I believe your theme doesn't take into account the discount. This would be a bug with the theme development.
This is untested (as I don't have full access to your theme) code so let me know if you have any trouble.
In my site i am using configurable product and Price is showing at two different place in Product page. One is near product and one is at bottom of all details and i am giving label as "new subtotal". And the both price is changing based on what attribute i am selecting but what i want is to change price at one place only at bottom "New subtotal" label and i want to keep top price is fix even changing the attribute. I tried by doing some changes in view.phtml file to get price using getPrice() but it giving me the fix price at both places. Can anyone please help me.
If you are using magento default code in view.phtml then there will be code <?php echo $this->getTierPriceHtml() ?> which display price with html.
In stead of above, just use $_product->getPrice() to display price without default magento html.
Hop this will help.
I am displaying upsell product in product view page in grid format. Now problem is by using code
<?php echo $this->getReviewsSummaryHtml($_link, 'short') ?>
it displays me 2 links under product image.
first is number of reviews in 'x' review(s) format and
second link is 'add your review'.
I want to remove 'add your review' link, how to do that?
I've just added 'short' to getReviewsSummaryHtml($_link,) ?> in upsell.phtml file and it just shows 'x' reviews(s) without 'add your review' link, how you wanted it to work. Magento 1.8.0.0
I am working with Magento version 1.7.0.2. I have been trying to figure out the best way to add some additional payment information to the "Payment Information" section when viewing an order in the admin. For example I'd like to add the expiration date of the credit card that was processed (similar to how it would appear for a saved CC method).
I do not wish to override Mage/Payment/Block/Info/Cc.php because then the changes would appear in other undesired places as well (like in sales emails for example).
Thanks for taking the time to read my question!
In magento you have 2 templates for payment info
Display in sales email/frontend
/app/design/frontend/base/default/template/payment/info/default.phtml
Display in admin area
/app/design/adminhtml/default/default/template/payment/info/default.phtml
To my knowledge #2 only display on the order detail page in admin, but if not then you could do something like..
<?php if ($this->isAdmin() && 'sales_order' == Mage::app()->getRequest()->getControllerName()): ?>
//display expiration date of the credit card
// call function in Mage/Payment/Block/Info/Cc.php
....
<?php endif; ?>
To implement isAdmin() see Magento Request - Frontend or Backend?
I ended up building a simple extension that creates a new tab on the order page in the admin to display this additional information. I had difficulty getting the info to appear on the main tab for the orders page. So I just created the new tab with the info.
We have a Magento site running version 1.4.1.1 that we have modified to be a catalog (no price) type store at http://geyer-rental.com.
We have engaged the wishlist functionality.
Issue.
The wishlist view.phtml and the sidebar only show the last three items added although the RSS feed and the wishlist data in admin >> customers show the complete list.
In a test example the item link in sidebar shows that there are 6 items in the wishlist only the last three added show.
Any suggestions on how to show all wishlist items would be deeply appreciated.
TIA
Buck
I guess the simplest way is in the wishlist.phtml template, before any items are shown, do the following:
<?php $this->getWishlistItems()->setPageSize(6); ?>
I had this same problem, but fixed by changing the option Display Wishlist Summary to Display Item quantities.