fix: enable address without checkout feature

* fix add address form country link field
This commit is contained in:
thefalconx33 2019-12-11 17:43:04 +05:30
parent 797481f9d5
commit 894c210027
2 changed files with 25 additions and 16 deletions

View File

@ -64,16 +64,6 @@ frappe.ready(() => {
fieldtype: 'Data',
reqd: 1
},
{
label: __('Address Type'),
fieldname: 'address_type',
fieldtype: 'Select',
options: [
'Billing',
'Shipping'
],
reqd: 1
},
{
label: __('Address Line 1'),
fieldname: 'address_line1',
@ -96,16 +86,37 @@ frappe.ready(() => {
fieldname: 'state',
fieldtype: 'Data'
},
{
label: __('Country'),
fieldname: 'country',
fieldtype: 'Link',
options: 'Country',
reqd: 1
},
{
fieldname: "column_break0",
fieldtype: "Column Break",
width: "50%"
},
{
label: __('Address Type'),
fieldname: 'address_type',
fieldtype: 'Select',
options: [
'Billing',
'Shipping'
],
reqd: 1
},
{
label: __('Pin Code'),
fieldname: 'pincode',
fieldtype: 'Data'
},
{
label: __('Country'),
fieldname: 'country',
fieldtype: 'Link',
reqd: 1
fieldname: "phone",
fieldtype: "Data",
label: "Phone"
},
],
primary_action_label: __('Save'),

View File

@ -83,12 +83,10 @@
</div>
{% endif %}
{% if cart_settings.enable_checkout %}
<div class="cart-addresses mt-5">
{% include "templates/includes/cart/cart_address.html" %}
</div>
{% endif %}
{% endif %}
</div>
<div class="row mt-5">