Modify 'order view' total credit card in one page checkout based on selected currency - magento

In Magento 1.8.1, if I am changing the base currency then at the final step of the checkout i.e., order review section, we come across a row "Your credit card will be charged for".
I wanted to change the amount shown beside this in the selected currency instead of the base currency of the store! This is the core functionality of Magento but I want to change it.
I think it requires me to override the core code but I don't know how to achieve this.

Check this out - http://inchoo.net/magento/how-to-add-currency-selector-to-magentos-header/
Hope this works.

Related

Magento 1.9 Custom Math Pricing / Simple Product Issue with Price

I've installed an extension, Custom Math Pricing by Mico Solutions, and I am experiencing 2 issues with my site now.
Issue 1: When I customize the product, the price is updated correctly on the product page, however, when the product is sent to the cart, a portion of the price is missing (length x price per foot). I checked in the database to look for the price and could only find records of the wrong price so the price is only showing for the product page. The portion of the calculation that is missing from the price includes an attribute which is set as a variable rather than custom options. The custom options calculate perfectly.
Issue 2: When I customize a simple product and add it to the cart, I cannot go back to that product page and customize it a second time, the price remains fixed on the "base" price. Let's say the product has a base price of $10.00. When I customize it, the price stays at $10.00 but is different in the cart. I have to delete my browser cache and cookies in order to customize it again and by doing that, my cart is emptied.
So my question is, where in the code can I find the pricing that is being sent to the sales_flat_quote table in the database. Additionally, how can I debug or correct the issue of customizing a product a 2nd time?
It seems like you've got an issue with conflicting extensions. Your best bet is to go to the Admin modules section (Admin > System > Configuration > Advanced > Advanced) and disable anything else that appears to deal with product pricing. Reset the cache and index and try again. I am somewhat familiar with this extension and it's not compatible with configurable products... make sure your products are simple product types when adding products.

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.

How to add extra price to cart total in magento checkout shipping method step

I have a custom field in shipping method step in checkout page. I want to add the custom field value with total amount of cart value. So that, custom field value will show with the total amount.
How can i do this?
yes you can do with the custom extension
as it is working in one of my application to add extre fees on checkout process
just follow step as on
http://excellencemagentoblog.com/magento-add-fee-discount-order-total
and it will sure help you to solve your issue.
Above link only for knowledge purpose, i am not associate with any more with above link

Magento: Shopping cart price rule gets applied, but discount not subtracted from subtotal

I have created a shopping cart price rule in my Magento store (version 1.4.1.1), and it seems to get applied without issue on the frontend, but the discount isn't actually reflected in the subtotal or final total. The original item price is $45.00, and the discount should be $35.00, making the final price $10.00. Here are some screenshots of the setup. (Sorry, because I'm a new user it won't let me post images directly in this posting.)
http://imgur.com/a/hdYDb
Main rule page
Actions page
Cart showing that promotional code was applied
Reviewing order (last step before submitting order)
This particular item has some custom options set, which set the pricing for four individual options. The price for the product is $0.00, and then each option has it's own price (I didn't set this part up, so I'm not sure if I'm missing something from here too). Here's a screenshot of the product custom options page: http://imgur.com/uO9HG
Any thoughts? I'm fairly new to Magento, so it's possible I'm just missing something obvious. Thanks in advance for any help or guidance!
I actually JUST figured out what was going wrong, or at least, I figured out a solution, though not sure exactly why this was affecting the shopping cart price rules. You're right that I wasn't even able to get a simple price rule to work - it simply wasn't working no matter how I changed the rule. Anyway, while working on another issue, I realized that I was missing the Subtotal/Grand Total box on the front-end of the shopping cart (I installed a clean copy of version 1.4.1.1 on my localhost, which is when I noticed it was missing from my live site). When I re-enabled the Subtotal/Grand Total box, the rules started working again. (I suppose now that Magento has a place on the front-end to show the discount, it actually applies it, whereas before it would just do nothing.)
So, to re-enable the subtotal/grand total box, in the back end, I went to System > Configuration > Advanced > Enable the Mage_Tax module. Again, not sure why it was disabled in the first place, and I'm not sure if this affects anything else on the site, but it's been up for awhile now and I haven't noticed anything awry. Here's a screen capture of it working: http://i.stack.imgur.com/kjl6S.png
I think the problem comes from using SKUs with your custom options combined with restricting your price rule to the product SKU. Magento combines them using a hyphen - place a test order to see if this is the problem.
The SKU in a test order I made comes out something like this;
[ORIGINAL_PRODUCT_SKU]-[CUSTOM_OPTION_SKU]
At least, that's the result I'm getting from version 1.5.0.1
The quickest solution I could find was to match the rule on the product url key rather than SKU. It isn't the most intuitive solution, but since you wouldn't change the URL on the product (I hope), it will work where SKU's with custom options fail.
In version 1.4, the URL key should be available to choose instead of SKU already. So you can just select url key instead of sku and insert your product's correct url key in your shopping cart price rule. Just replace "SKU is ..." with "URL key is ..." inserting the correct url key for your product.
In version 1.5 I had to enable "Use for Promo Rule Conditions" on the url_key attribute like this;
Log in to Magento admin area
Navigate to Catalog > Attributes > Manage Attributes
Locate the Atrtibute Code "url_key" and click to edit it
Change "Use for Promo Rule Conditions" to Yes
Save the changes
you may need to reindex the Product Flat Data index at this point
Then I could use it in my price rule.
Had this same exact problem on CE 1.9 running PHP7, applying the Inchoo "PHP 7 compatibility extension for Magento 1" solved the issue!
https://github.com/Inchoo/Inchoo_PHP7

Magento - Have different set of fields and labels for cart and checkout (order review) screens

In the Magento default theme's cart page we see the following totals box towards the right mid of the screen:
My Problem is to show the Tax and Grand Total Including tax fields to appear in the cart, because the tax is calculated once we know the shipping address. So, we want to show it only in the Checkout Screen under Order Review. However, when overriding the template/ file mentioned above, also modifies the Order Review field in checkout, so that it looks like this:
and onepage checkout order review screen like
which means that these fields are being controlled from one set of file(s). However, I want these two (totals box in cart AND order review in checkout) to be different.
By turning on the template path hints I know that the child templates for each of subtotal, tax, total... are being called from:
Cart: /checkout/cart.phtml
Checkout (One page): /checkout/onepage/review/info.phtml
Both of these have this common line, which I believe does the trick
$this->getChildHtml('totals')
Can someone help me in knowing how does getChildHtml looks up the 'totals' file. I am confused because there is a totals.phtml in checkout/onepage/review folder, while both of them are actually using template files in /tax/checkout
I am using Magento 1.4.1.1 and background to this question is a previous question
From your previous question you already know the output comes from the file template/tax/checkout/grandtotal.phtml. It's decision to show a 1 or 3 totals lines is based on this snippet:
<?php if ($this->includeTax() && $this->getTotalExclTax()>=0):?>
I would suggest changing it to...
<?php if ($this->includeTax() && $this->getTotalExclTax()!=$this->getTotal()):?>
Here, when the address is unknown and tax is zero, the two grand totals are equal and so only one is shown.
This is doubly beneficial, when an address is supplied by the "Shipping and Tax Estimate" form then the cart can still go back to the 3-line output automatically which is smooth.
You have several options
You can sniff the location of the user with GeoIp and set at least the country in quote billing address so you'll get the tax estimates to display. For example to get the UK estimates you can do (if quote exists) <?php $this->getQuote()->getBillingAddress()->setCountryId('UK');?> or <?php $this->getQuote()->getShippingAddress()->setCountryId('UK');?>
You can change the template file to be different in cart and in checkout by modifying the checkout.xml layout file and make your conditions in separate files

Resources