Merge pull request #1106 from openclassify/muammertop

#4232 eBay Theme E-commerce Changes and İmprovements
This commit is contained in:
profstyle1 2021-06-30 13:59:13 +03:00 committed by GitHub
commit 7fc64480eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 50 additions and 35 deletions

View File

@ -53,6 +53,7 @@ return [
'create_ad' => [ 'create_ad' => [
'title' => 'visiosoft.module.advs::section.create_ad', 'title' => 'visiosoft.module.advs::section.create_ad',
'fields' => [ 'fields' => [
'hide_contact_created_at',
'show_tax_field', 'show_tax_field',
'detailed_product_options', 'detailed_product_options',
'steps_color', 'steps_color',

View File

@ -469,4 +469,10 @@ return [
'default_value' => false, 'default_value' => false,
], ],
], ],
'hide_contact_created_at' => [
'type' => 'anomaly.field_type.boolean',
'config' => [
'default_value' => false,
]
]
]; ];

View File

@ -133,6 +133,9 @@ return [
], ],
'market_place' => [ 'market_place' => [
'name' => 'Market Place', 'name' => 'Market Place',
'instructions' => 'If the marketplace is down, your site will act as ecommerce. For example,
some fields in the profile such as ads, dopings, messages, sale, packages and store are not visible and
removes corporate membership.'
], ],
'price_area_hidden' => [ 'price_area_hidden' => [
'name' => 'Price Area Hidden', 'name' => 'Price Area Hidden',
@ -280,4 +283,7 @@ return [
'name' => 'Show Tax Field', 'name' => 'Show Tax Field',
'instructions' => 'When this option is enabled, you can set the tax rate on the ad creation page.' 'instructions' => 'When this option is enabled, you can set the tax rate on the ad creation page.'
], ],
'hide_contact_created_at' => [
'name' => 'Hide Contact Fields For in Create New Ad'
]
]; ];

View File

@ -1,40 +1,42 @@
<div id="contactInfo" class="mb-3"> {% if (setting_value('visiosoft.module.advs::hide_contact_created_at') != true) %}
<h3>{{ trans('visiosoft.module.advs::field.contact_info') }}</h3> <div id="contactInfo" class="mb-3">
<div id="reachInfo"> <h3>{{ trans('visiosoft.module.advs::field.contact_info') }}</h3>
{% set showPhoneNumber = form.fields.show_phone_number.value %} <div id="reachInfo">
<p>{{ trans('visiosoft.module.advs::field.how_can_you_be_contacted') }}</p> {% set showPhoneNumber = form.fields.show_phone_number.value %}
<div> <p>{{ trans('visiosoft.module.advs::field.how_can_you_be_contacted') }}</p>
<label class="mr-3"> <div>
<input type="radio" class="mr-1" name="show_phone_number" value="1" {{ showPhoneNumber ? 'checked' }}> <label class="mr-3">
{{ trans('visiosoft.module.advs::field.with_my_phone_numbers') }} <input type="radio" class="mr-1" name="show_phone_number" value="1" {{ showPhoneNumber ? 'checked' }}>
{{ trans('visiosoft.module.advs::field.with_my_phone_numbers') }}
</label>
<label>
<input type="radio" class="mr-1" name="show_phone_number" value="0" {{ not showPhoneNumber ? 'checked' }}>
{{ trans('visiosoft.module.advs::field.not_with_my_phone_numbers') }}
</label>
</div>
</div>
<div id="contactSummary" class="d-flex justify-content-between flex-wrap">
<label>
{{ trans('visiosoft.module.profile::field.name.name') }}
<input type="text" class="d-block mt-3 w-100 border-0 bg-white infoName" value="{{ auth_user().name }}"
disabled>
</label> </label>
<label> <label>
<input type="radio" class="mr-1" name="show_phone_number" value="0" {{ not showPhoneNumber ? 'checked' }}> {{ trans('visiosoft.module.profile::field.gsm_phone.name') }}
{{ trans('visiosoft.module.advs::field.not_with_my_phone_numbers') }} <input type="text" class="d-block mt-3 w-100 border-0 bg-white infoGsmPhone" disabled
value="{{ auth_user().gsm_phone }}">
</label>
<label>
{{ trans('visiosoft.module.profile::field.office_phone.name') }}
<input type="text" class="d-block mt-3 w-100 border-0 bg-white infoOfficePhone" disabled
value="{{ auth_user().office_phone }}">
</label> </label>
</div> </div>
<div id="editContact">
<button type="button" class="d-flex ml-auto align-items-center border-0 editInformationUser">
{{ img('visiosoft.module.advs::images/create/contact-edit.svg').data|raw }}
<span>{{ trans('visiosoft.module.advs::field.update_my_contact_info') }}</span>
</button>
</div>
</div> </div>
<div id="contactSummary" class="d-flex justify-content-between flex-wrap"> {% endif %}
<label>
{{ trans('visiosoft.module.profile::field.name.name') }}
<input type="text" class="d-block mt-3 w-100 border-0 bg-white infoName" value="{{ auth_user().name }}"
disabled>
</label>
<label>
{{ trans('visiosoft.module.profile::field.gsm_phone.name') }}
<input type="text" class="d-block mt-3 w-100 border-0 bg-white infoGsmPhone" disabled
value="{{ auth_user().gsm_phone }}">
</label>
<label>
{{ trans('visiosoft.module.profile::field.office_phone.name') }}
<input type="text" class="d-block mt-3 w-100 border-0 bg-white infoOfficePhone" disabled
value="{{ auth_user().office_phone }}">
</label>
</div>
<div id="editContact">
<button type="button" class="d-flex ml-auto align-items-center border-0 editInformationUser">
{{ img('visiosoft.module.advs::images/create/contact-edit.svg').data|raw }}
<span>{{ trans('visiosoft.module.advs::field.update_my_contact_info') }}</span>
</button>
</div>
</div>