Changing Address Information order

  • Posts: 75
  • Thank you received: 2
10 years 11 months ago #159415

-- url of the page with the problem -- : www.inkacollective.com/testing/consilium/
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 3.3
-- PHP version -- : 5.x

Is it possible to change the registration page the at checkout the address they enter first is the shipping address, then they can later choose whether to use the same address for billing?

Would this be something that would have to be done in code?

Thanks.

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

  • Posts: 83832
  • Thank you received: 13572
  • MODERATOR
10 years 11 months ago #159436

Hi,

A simple solution could be to just invert the translations of "shipping address" and "billing address" so that the system still works the same but that the user actually see the title "billing address" for the shipping address in the database and see the title "shipping address" for the billing address in the database.
You can change these translations with translation overrides:
hikashop.com/download/languages.html#modify

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

  • Posts: 75
  • Thank you received: 2
10 years 11 months ago #159561

Just tried changing the language file in the overrides section, could you please specify the variables that need to be changed. The only ones I could find where

SAME_AS_BILLING="Use the same address as for shipping"
HIKASHOP_BILLING_ADDRESS="Shipping address"
HIKASHOP_SHIPPING_ADDRESS="Billing address"
This is after I switched shipping and billing. These modifications changed nothing in the checkout. I will also need to change the variables for the invoice that gets sent to the customers.

Also, will switching the billing and shipping cause problems in the Payment methods, like the wrong billing or shipping address get applied to the credit card processor. I already tried it with paypal pro and it didn't make a difference, but I think standard paypal standard, it also checks to see if the shipping address is the same as on the account.

Thanks.

Last edit: 10 years 11 months ago by rodopemu.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 11 months ago #159569

Hi,

Indeed, the shipping address will be used for the billing and vice-versa.
So it will require code override to feet all your needs.

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

  • Posts: 75
  • Thank you received: 2
10 years 11 months ago #159709

I am not sure what is going on with my Hikashop installation. Not even the language overrides are working.

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

  • Posts: 83832
  • Thank you received: 13572
  • MODERATOR
10 years 11 months ago #159829

This indicates an error on the translation override file.
Turn on the "debug language" option of the Joomla configuration and look at the page on the frontend, you should see at the bottom a list of all the language files the system tried to load with the errors for each one and it will tell you on which line of the override file the error is. Once the override file doesn't have any error, you should see the change.

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

  • Posts: 75
  • Thank you received: 2
10 years 11 months ago #160217

When I turn debug languages on I get a 404 error for all pages, do I have to turn of sh404sef plugin to get the errors to work?

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

  • Posts: 83832
  • Thank you received: 13572
  • MODERATOR
10 years 11 months ago #160274

SH404SEF should work fine with the debug language option, but if you have trouble with it, yes you can disable it temporarily in order to do your tests.

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

  • Posts: 75
  • Thank you received: 2
10 years 11 months ago #160897

I am still having issues with this. I even tried deleting all of the overrides and I still do not get any text accompanyed with completed orders when I use certain checkouts. For example, I had a payment method set as "Check on Delivery" However, I changed the title of this payment method in the back-end so it displays as "Quote..." when I check out the text associated with this payment method in the language file does not appear on the invoice. I finally got language debugging to work, I guess by deleting the overrides and receive the following errors:

JROOT/language/en-GB/en-GB.tpl_jm_consilium.ini : error(s) in line(s) 0, 3, 22, 28, 31, 43, 49, 84, 101, 110, 117, 130, 145
JROOT/language/en-GB/en-GB.mod_jm_pagetitle.ini : error(s) in line(s) 0

Is en-GB.tpl_jm_consilium.ini the language file we edit in Configuration->languages?

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

  • Posts: 83832
  • Thank you received: 13572
  • MODERATOR
10 years 11 months ago #160924

Hi,

No, the language file that you edit in the Configuration>Languages tab is either the main override language file of the website, or the translation file of HikaShop. These come from your template but do not affect the override of translations.

But if you deleted the overrides it's normal that you don't see any language parsing error for the overrides since you removed them.

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

  • Posts: 298
  • Thank you received: 5
  • Hikashop Business
10 years 6 months ago #179904

As mentioned changing the language text to swop over billing / shipping text will cause development/maintenance confusion as the meaning of shipping / billing in the code and raw HTML is swapped!

Also is the billing address sometimes sent to payment / credit companies?
If the text is swopped over they will get the shipping address instead.

Would this be a solution?

(a) In view override change the text for the customer registration address to say 'Delivery / Shipping Address'.
In our case this can be hard-coded - no need to change the language files.

Looks like this affects the following view files:
user/registration.php
user/registration_bootstrap.php

(b) In view override exchange the address fields so 'Delivery / Shipping Address' is on the left and always shown.
The 'same as' tickbox will be on the right side along with the 'Customer / Billing Address' - if needed/different.

Looks like this affects the following view files:
checkout/address.php
checkout/address_view.php
checkout/address_select.php

See any problems with that?

Ideally would like it built in as a core Hikashop feature so registration address becomes the shipping address.
Yet another configurable option in System/Configuration ??

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

  • Posts: 83832
  • Thank you received: 13572
  • MODERATOR
10 years 6 months ago #179915

Hi,

It is indeed possible with several overrides of the views. We didn't propose this here as it's way more complex than just overriding translations if you're not a developer. But I know that you can easily do it on your end.

The registration address automatically because the billing and the shipping address, so no need to change stuff on that end in the core if you swap the address displays with view overrides as far as I can see.

I'm not keen on adding an option for that. We already have many options and this doesn't seem like something a lot of people would like to do, so it falls more into the customization area (what overrides are here for).

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

Time to create page: 0.101 seconds
Powered by Kunena Forum