Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Checkout: May "my Billing Address Is Different From Shipping Address" Be Unchecked By Default? Rate Topic   - - - - -

 
  • Iouri
  • Member
  • Members
  • Join Date: 10-Jan 22
  • 28 posts

Posted 12 January 2022 - 01:37 PM #1

Hi!

 

Is there an easy way to uncheck the checkbox in the Billing Address section of the Checkout form? It looks like it's always checked by default. See also the image attached.

 

Attached File  Screenshot 2022-01-12 143538.png   124.63KB   0 downloads

 

The CS-Cart version is 4.14.1.SP1

 

Thank you in advance!

 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 22943 posts

Posted 12 January 2022 - 02:40 PM #2

If you add extra field to Shipping or Billing address (not to both sections), the checkbox will be unchecked


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)


 
  • Iouri
  • Member
  • Members
  • Join Date: 10-Jan 22
  • 28 posts

Posted 13 January 2022 - 08:59 AM #3

If you add extra field to Shipping or Billing address (not to both sections), the checkbox will be unchecked

 

Hi! It's either not working or I'm doing this wrongly.

 

I added a new profile field and added it to the Shipping address layout block. Nothing was changed what concerns the billing address checkbox :-(

See also the screenshots attached.

 

Attached File  Screenshot 2022-01-13 095139.png   149.64KB   0 downloads

Attached File  Screenshot 2022-01-13 095336.png   109.18KB   0 downloads



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 22943 posts

Posted 13 January 2022 - 01:56 PM #4

Sorry, I misunderstood your questions. You should correct list of profile fields in the Billing and Shipping sections. They should be equal. In this case checkbox will be unchecked


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)


 
  • Iouri
  • Member
  • Members
  • Join Date: 10-Jan 22
  • 28 posts

Posted 14 January 2022 - 09:20 AM #5

Sorry, I misunderstood your questions. You should correct list of profile fields in the Billing and Shipping sections. They should be equal. In this case checkbox will be unchecked

 

No problem. I still can not get to the desired result.

 

I made the shipping and billing fields config almost the same (see the corresponding screenshot). The difference is the 1 field (Address type), which, it seems, I can do nothing about. It as a predefined field I understand (?)

 

Attached File  Screenshot 2022-01-14 Profile fields config.png   61.38KB   0 downloads

 

As the result I see now a new message appeared in the user profile "Billing and shipping addresses are the same", which is et to "YES" and saved.

 

Attached File  Screenshot 2022-01-14 User profile view.png   33.83KB   0 downloads

 

However I see no changes on the checkout page :-( The "My billing address is different from shipping address" checkbox is still checked.

 

Attached File  Screenshot 2022-01-14 Checkout.png   175.91KB   0 downloads



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 22943 posts

Posted 14 January 2022 - 02:06 PM #6

It is required to examine the issue. Possibly additional conditions were added to checkout


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)


 
  • Iouri
  • Member
  • Members
  • Join Date: 10-Jan 22
  • 28 posts

Posted 14 January 2022 - 03:24 PM #7

It is required to examine the issue. Possibly additional conditions were added to checkout

 

If I do some testing via the "billing.tpl" file, I'm having the impression the  $user_data.ship_to_another is always false. Is there a way to see what $user_data contains? Although if I remove my code the value seems always TRUE. I'm lost :-(

 

 
responsive / templates / views / checkout / components / customer / billing.tpl

 

include file="views/profiles/components/profiles_scripts.tpl"}
 
<div class="litecheckout__group" id="litecheckout_use_billing_address_form">
    <div class="litecheckout__item" style="width: 100%;">
        {* test code *}
        {if $user_data.ship_to_another}
            {$use_billing_address = true}
            <div class="litecheckout litecheckout__form" id="litecheckout_form">  
            <h1 class="litecheckout__page-title">{__('Ship to another: true')}</h1>
        {else}  
            {$use_billing_address = false}
        {/if}
        {* end of test code *}
       
       {* original_code
        {$use_billing_address = $user_data.ship_to_another|default:true}
        end_of_code *}
 
:


 
  • sioulisn
  • Junior Member
  • Members
  • Join Date: 06-Apr 09
  • 109 posts

Posted 14 January 2022 - 04:00 PM #8

I had a similar issue at version 4.13.3 and cs cart team helped me quickly resolve the issue. They mentioned that it is a bug at lite checkout that will be fixed in next releases. You can contact them and ask them for help

 
  • Iouri
  • Member
  • Members
  • Join Date: 10-Jan 22
  • 28 posts

Posted 21 January 2022 - 02:19 PM #9

Seems working now. Perhaps there  was some cache issue.