display poll questions after buyer place an order in magento - magento

after buyer completed transaction[or "place an order"], I want to provide an option
for "survey" or "poll" about the site .
So I can know about the buyer's satisfaction about our site.
let me know if you have need any clarifications.
Thanks a lot in advance.

You can add "survey" on success.phtml page.
Go to your theme /app/design/frontend/default/default/template/checkout > success.phtml Add your survey functionality on this page.
This pages displays after successful transaction.
if you have any question feel free to ask.

In success.phtml try following code to display poll.
<?php
$poll = $this->getLayout()->createBlock('poll/activePoll');
$poll->setPollId(2);
$poll->setPollTemplate('poll/active.phtml', 'poll');
$poll->setPollTemplate('poll/result.phtml', 'results');
echo $poll->toHtml();
?>
You can pass desired poll ID in setPollId method.
You can refer full description using following link.
http://inchoo.net/magento/magento-frontend/reusing-magento-poll-on-any-page-or-any-block/

Related

identify cash on delivery is availble or not using zip/postal code check on product view page in magento

I want to add a textfield on "Product- view - page"
so that by entering zip/postal code, customer can check whether "cash on delivery " option is available in their address or not.
I have some 500 zip/pin codes that support cash on delivery.
I think you requirement is fulfilled using the get a quote block in your product-detail page.
Here is what you need to do:
Create a tablerate shipping method named Cash On Delivery and upload your csv with price.
Use the Get a Quote block that is in cart page in default, and place it in product detail page. This can be done from layout i guess.
Now after you get the Get a Quote in your product detail page.Show only zip code field and hide other field.
This could solve your problem,if i got it right.
Hope this will help.

Magento: get all reviews on one page via .phtml

i don't find answer to my specific question:
i need get all reviews via .phtml
this code work perfect:
echo $this->getLayout()->createBlock('review/customer_list')->setTemplate('review/customer/list.phtml')->toHtml();
but if customer is logged in, code shows all his reviews...if customer is logout - it's shows There no reviews (all ok)
i need shows review for all products has review.
help
There are some free extension available to show review on CMS page. like:http://www.magentocommerce.com/magento-connect/all-reviews-3122.html
OR
If you want to add review on some specific page then you can for custom code.
$reviews = Mage::getModel('review/review')->getResourceCollection();
$reviews->addStoreFilter( Mage::app()->getStore()->getId() )
->addStatusFilter( Mage_Review_Model_Review::STATUS_APPROVED )
->setDateOrder()
->addRateVotes()
->load();
Hope will help!
You probably can make use of the Rating Model, it has a getCollection support so it should be easy as this:
$reviews = Mage::getModel('rating/rating')->getCollection();
// Some filtering maybe...
There is also a function called getReviewSummary which gives you anything you want
Dig depper into that and you will find the answer hopefully

Magento: Adding a custom block to "Payment Information" when viewing an order in admin

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.

adding a quick order form in magento

I want to over ride the magento shopping cart options., i.e on each product when the user presses the order now / add to cart button , an html form will open in which the customer inputs name, address , email , contact number and qty, on submission the order will be placed by sending an email to the admin and the customer
i want to establish the same functionality as in: www.crorepati.pk
help will be appreciated.
regards,
Shehzad Rah
perhaps this could help others:
https://www.magentocommerce.com/magento-connect/quick-order-add-to-cart-by-sku.html
from
http://blog.chapagain.com.np/quick-order-add-to-cart-by-sku-magento-extension-free/
with a little know how you could edit this to display it everywhere you want.
If correctly installed you could also call the block directly like this:
<div><?php echo $this->getLayout()->createBlock('core/template')->setTemplate('chapagain_quickorder/block_sidebar.phtml')->toHtml(); ?></div>

Magento admin section

Hai
In my magneto project, admin side invoices, I want to display the product name, sku and
manufactures, is it possible???
I know that when clicking View Link I can show, but I want to show the details in the table in the invoices page
Probably the best place to start is:
/app/design/adminhtml/default/default/tempalte/sales/order/invoice/view/
Everything within the /app/design/adminhtml/ is where you'll want to go to edit any available templates for the backend.
Remember that Magento is full of magic methods. So, often times if you want to output a particular attribute, simply call something like: echo $_item->getManufacturer();
Hope that helps.

Resources