Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Page 1 of 2
ship to suggestion and weird issue when ordering with credit card
 
markoshust
Sr. Member
 
Avatar
Total Posts:  129
Joined:  2007-09-05
Cleveland, OH
 

when placing an order, the default selection is “ship to different address”. shouldn’t this be “ship to this address”? majority of people ordering are shipping to the same place they are billing to.

also, i have paypal direct with website payments pro enabled. everything seems to work fine, but when i checkout, i have to check the radio button next to Paypal Direct for it to bring up the ccname, cccardtype, ccnumber, etc. this is a problem because some (stupid) people might not know to click the radio box next to Paypal Direct, and will just be staring at the screen trying to figure out how to pay for an item. trust me, customers are that stupid (if not more stupid). is there any way to make the credit card name, number, etc. automatically appear when going to the Payment Information tab?

 
Magento Community Magento Community
Magento Community
Magento Community
 
EYEMAGINE
Member
 
Avatar
Total Posts:  35
Joined:  2008-02-14
Irvine, CA
 

I don’t think this is the best solution, but I added this line of code to /skin/frontend/default/<theme>/js/opcheckout.js on line 37 inside the initialize function.

$('billing:pickup_or_use_for_shipping_yes').checked=true;

I hope this helps.

Andy

 
Magento Community Magento Community
Magento Community
Magento Community
 
team_in_medias
Sr. Member
 
Avatar
Total Posts:  113
Joined:  2008-05-06
Aachen, Germany
 

In Version 1.1.3, use this:

if ($('billing:use_for_shipping_yes'))
           $(
'billing:use_for_shipping_yes').checked=true;

Thanks for the tip!
Andreas

 
Magento Community Magento Community
Magento Community
Magento Community
 
Lol
Member
 
Avatar
Total Posts:  68
Joined:  2008-06-26
Plymouth, UK
 

Thanks Andreas, I messed this up at first but it works now. The extra code that Andreas suggested has to go in the initialize: function(acordion, urls){...} section near the beginning of the /magento/skin/frontend/default/default/js/opcheckout.js) file.

How does this relate to actual XHTML code? Is it not possible to find where in the code the checked attribute for a radio button is set to “checked” for each stage in the checkout process and then change which is the default radio button that way?

The XHTML output to the browser has to be something like:

input type="radio" name="button_name" value="1" checked="checked"

If I could now also set the single Shipping Method I am using (Free Shipping) to be checked by default in the one-page-checkout I would be a happy bunny.

 
Magento Community Magento Community
Magento Community
Magento Community
 
crius
Guru
 
Avatar
Total Posts:  623
Joined:  2007-10-16
Denmark
 

Hi all

I’m not sure it’s a good idea to force “ship to this address” to be checked as default in all situations. What if the customer already has an account with pre-defined billing and shipping addresses that are different?

Does anyone now how to check if the addresses are defined and equal? Right now, Magento checks it in Mage_Checkout_Block_Onepage_Billing by calling $this->getQuote()->getShippingAddress()->getSameAsBilling(), but this returns false when the addresses are not defined.

 
Magento Community Magento Community
Magento Community
Magento Community
 
bw2008
Member
 
Total Posts:  39
Joined:  2008-06-21
 

Personally, I prefer “Ship to this address” to be the default setting.
The following modification to the isUseBillingAddressForShipping() function in app/code/core/Mage/Checkout/Block/Onepage/Billing.php will set the Ship to this address as the default. It worked for me.

public function isUseBillingAddressForShipping()
{
        
if (($this->getQuote()->getIsVirtual()) || (!$this->getQuote()->getShippingAddress()->getSameAsBilling()))
        
{
            
return true;
        
else {
            
return false;
        
}
}

Original code:

public function isUseBillingAddressForShipping()
{
        
if (($this->getQuote()->getIsVirtual()) || !$this->getQuote()->getShippingAddress()->getSameAsBilling()) 
        
{
            
return false;
        
}
        
return true;
}

Ideally, we should be able to set this somewhere in the Admin Panel, instead of changing the code.

 
Magento Community Magento Community
Magento Community
Magento Community
 
AngelEyes
Member
 
Total Posts:  74
Joined:  2008-02-25
 

Do you guys know if there is a way to disable shipping to an alternative address completely? My client has plenty of fraudulent purchases due to cloned cards being used shipping to a different address tot he cardholders.

Thanks,

Adam

 
Magento Community Magento Community
Magento Community
Magento Community
 
HumanBeing
Jr. Member
 
Total Posts:  21
Joined:  2008-11-19
 
AngelEyes - 16 September 2008 02:01 AM

Do you guys know if there is a way to disable shipping to an alternative address completely?

I’ve been looking for the same thing.  Did you ever find a way?

 
Magento Community Magento Community
Magento Community
Magento Community
 
ThomasL
Jr. Member
 
Total Posts:  7
Joined:  2008-12-15
Wiesbaden, Germany
 

Thanks guys. This version works for me too. But I really don’t like to change something in Billing.php. After my next update it is gone and I have to search again.

So if anyone finds another solution I would be happy to here it. I would prefer if somebody can implement it in the administration area.

Greetings,
Thomas

 
Magento Community Magento Community
Magento Community
Magento Community
 
jsx7
Jr. Member
 
Total Posts:  9
Joined:  2008-08-11
 
ThomasL - 30 January 2009 07:23 AM

Thanks guys. This version works for me too. But I really don’t like to change something in Billing.php. After my next update it is gone and I have to search again.

So if anyone finds another solution I would be happy to here it. I would prefer if somebody can implement it in the administration area.

Greetings,
Thomas

You can create your custom block class e.g.

class My_Checkout_Block_Onepage_Billing extends Mage_Checkout_Block_Onepage_Billing
as more detailed described here: http://www.magentocommerce.com/boards/viewthread/3698/P15/

then change in your theme layout file checkout.xml

<block type="checkout/onepage_billing" name="checkout.onepage.billing" as="billing" template="checkout/onepage/billing.phtml"/>

to

<block type="my_checkout/onepage_billing" name="checkout.onepage.billing" as="billing" template="checkout/onepage/billing.phtml"/>
 
Magento Community Magento Community
Magento Community
Magento Community
 
cdils
Jr. Member
 
Total Posts:  7
Joined:  2009-05-13
 

Thanks bw2008 for the clear instructions. Solved the problem in a snap!

 
Magento Community Magento Community
Magento Community
Magento Community
 
tictac3
Jr. Member
 
Total Posts:  2
Joined:  2009-08-24
 

Excellent. Thanks for sharing.
rachat consommation specialiste simulation credit immobilier - demander un rachat de crédit, faites une simulation rachat de credit en ligne.rachat consommation specialiste simulation credit immobilier

 
Magento Community Magento Community
Magento Community
Magento Community
 
Obie
Jr. Member
 
Total Posts:  6
Joined:  2009-09-15
 

I would also like to remove the “ship to different address” option completely. Did anyone found out how to do that?

Best,
Obie

 
Magento Community Magento Community
Magento Community
Magento Community
 
Olof
Sr. Member
 
Total Posts:  152
Joined:  2008-10-17
 

I’m looking for a way to enforce shipping to the billing address for the first order.

This is pretty standard in order to reduce fraud from most of the big operators.

Rich

 
Magento Community Magento Community
Magento Community
Magento Community
 
RepoUK
Jr. Member
 
Total Posts:  24
Joined:  2008-06-02
 

bw2008’s solution worked for me - cheers smile

Very surprised that this fix is required though; and yes, there should be options to a) turn this off; and , b) disable it for first order.

 
Magento Community Magento Community
Magento Community
Magento Community
 
batteryedge
Jr. Member
 
Total Posts:  2
Joined:  2009-07-16
 

jsx7- where would you add that custom block class?

thanks

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 1 of 2