Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
ship to suggestion and weird issue when ordering with credit card
 
markoshust
Jr. Member
 
Total Posts:  20
Joined:  2007-09-05
 

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
 
andy101010
Jr. Member
 
Total Posts:  16
Joined:  2008-02-14
 

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
 
Andreas von Studnitz
Jr. Member
 
Avatar
Total Posts:  29
Joined:  2008-05-07
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

 Signature 

team in medias GmbH
Aachen, Hamburg

 
Magento Community Magento Community
Magento Community
Magento Community
 
Lol
Member
 
Avatar
Total Posts:  46
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
 
Anders Rasmussen
Sr. Member
 
Avatar
Total Posts:  167
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.

 Signature 

Anders Rasmussen
Crius (in Danish)

 
Magento Community Magento Community
Magento Community
Magento Community
 
bw2008
Jr. Member
 
Total Posts:  16
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:  40
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:  1
Joined:  2008-11-19
 
AngelEyes - 16 September 2008 03: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
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
52312 users|449 users currently online|105635 forum posts