Shipping Address

  • Posts: 16
  • Thank you received: 1
13 years 3 months ago #87066

Hello,

I would like to use the "Use the same address as for billing" checkbox in the Shipping Address but I can see where in the backend to enable this feature. Can somebody please help.

Thanks
Erik

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
13 years 3 months ago #87096

Hi Erik,

The "Use the same address as for billing" checkbox is in each default Hikashop installation.
Did you changed the file address from the ckeckout view through "Hikashop->Display->Views" ? If that's the case can you remove your changes in this file through the "Remove" button.

Thanks.

Last edit: 13 years 3 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 1
13 years 3 months ago #87098

As far as I can tell there's been no modifications done as there's no option to remove your changes. Below is the code from address.php from Hikashop>Display>Views:

<?php
/**
* @package HikaShop for Joomla!
* @version 2.0.0
* @author hikashop.com
* @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
if($this->identified){

$mainId = 'hikashop_checkout_address_billing_only';
$leftId = 'hikashop_checkout_billing_address';
$mainClass = 'hikashop_checkout_address_billing_only';
$leftClass = 'hikashop_checkout_billing_address';
if($this->has_shipping) {
$mainId = 'hikashop_checkout_address';
$leftId = 'hikashop_checkout_address_left_part';
$mainClass = 'hikashop_checkout_address';
$leftClass = 'hikashop_checkout_address_left_part';
}
if(HIKASHOP_J30) {
$mainClass .= ' row-fluid';
$leftClass .= ' span6';
}
?>
<div id="<?php echo $mainId; ?>" class="<?php echo $mainClass; ?>">
<div id="<?php echo $leftId; ?>" class="<?php echo $leftClass; ?>">
<fieldset>
<legend><?php echo JText::_('HIKASHOP_BILLING_ADDRESS');?></legend>
<?php
$this->type = 'billing';
echo $this->loadTemplate('view');

if($this->has_shipping) {
?>
</fieldset>
</div>
<div id="hikashop_checkout_address_right_part" class="hikashop_checkout_address_right_part<?php if(HIKASHOP_J30){ echo ' span6';} ?>">
<fieldset>
<legend><?php echo JText::_('HIKASHOP_SHIPPING_ADDRESS');?></legend>
<?php
$checked = '';
$style = '';

$override = false;
if(!empty($this->currentShipping) && method_exists($this->currentShipping, 'getShippingAddress')) {
$override = $this->currentShipping->getShippingAddress();
}

if($override === false) {
$onclick = 'return hikashopSameAddress(this.checked);';
if($this->shipping_address==$this->billing_address){
$checked = 'checked="checked" ';
$style = ' style="display:none"';
$nb_addresses = count(@$this->addresses);
if($nb_addresses==1){
$address = reset($this->addresses);
$onclick='if(!this.checked) { hikashopEditAddress(document.getElementById(\'hikashop_checkout_shipping_address_edit_'.$address->address_id.'\'),1,false); } '.$onclick;
}
}
?>
<label for="same_address">
<input class="hikashop_checkout_shipping_same_address inputbox" <?php echo $checked; ?>type="checkbox" id="same_address" name="same_address" value="yes" alt="Same address" onclick="<?php echo $onclick; ?>" />
<?php echo JText::_('SAME_AS_BILLING');?>
</label>
<div class="hikashop_checkout_shipping_div" id="hikashop_checkout_shipping_div" <?php echo $style;?>>
<?php
$this->type = 'shipping';
echo $this->loadTemplate('view');
?>
</div>
<?php
} else {
?> <span class="hikashop_checkout_billing_address_info"><?php echo $override;?></span>
<?php }
}
?>
</fieldset>
</div>
</div>
<div style="clear:both"></div>
<?php
}else{
}

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
13 years 3 months ago #87100

And can I have screenshots that what you have through your checkout ?

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 1
13 years 3 months ago #87104

Hi,

Find attached the screenshot. You can also visit the website: www.club-soul.co.uk

I have also attached login.php and login_form.php which are the only two views I've modified in order to separate the login and user registration forms. I don't think these changes should affect it.



This attachment is hidden for guests.
Please log in or register to see it.


This attachment is hidden for guests.
Please log in or register to see it.



Thanks

Erik

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
13 years 3 months ago #87149

Hi again,

Does your product have weight/price/dimension ? and can you select any shipping method ? I think that the problem isn't coming from your address step but your shipping step.

==> You have to be able to select a shipping method, if you want to give your shipping method.

Last edit: 13 years 3 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 1
13 years 3 months ago #87167

Do you mean that you have to have a shipping method first in order to have the "Use the same address as for billing" checkbox?

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
13 years 3 months ago #87287

Yes exactly, You'll just have to create a manual shipping methode through "Hikashop->System->Shipping method".

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 1
13 years 3 months ago #87306

Thanks - that worked!

Please Log in or Create an account to join the conversation.

Time to create page: 0.316 seconds
Powered by Kunena Forum