#4232 eBay Theme E-commerce Changes and İmprovements

This commit is contained in:
Muammer Top 2021-06-29 12:34:56 +03:00
parent 19a0238b21
commit 3c48aa695f
4 changed files with 50 additions and 35 deletions

View File

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

View File

@ -469,4 +469,10 @@ return [
'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' => [
'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' => [
'name' => 'Price Area Hidden',
@ -280,4 +283,7 @@ return [
'name' => 'Show Tax Field',
'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">
<h3>{{ trans('visiosoft.module.advs::field.contact_info') }}</h3>
<div id="reachInfo">
{% set showPhoneNumber = form.fields.show_phone_number.value %}
<p>{{ trans('visiosoft.module.advs::field.how_can_you_be_contacted') }}</p>
<div>
<label class="mr-3">
<input type="radio" class="mr-1" name="show_phone_number" value="1" {{ showPhoneNumber ? 'checked' }}>
{{ trans('visiosoft.module.advs::field.with_my_phone_numbers') }}
{% if (setting_value('visiosoft.module.advs::hide_contact_created_at') != true) %}
<div id="contactInfo" class="mb-3">
<h3>{{ trans('visiosoft.module.advs::field.contact_info') }}</h3>
<div id="reachInfo">
{% set showPhoneNumber = form.fields.show_phone_number.value %}
<p>{{ trans('visiosoft.module.advs::field.how_can_you_be_contacted') }}</p>
<div>
<label class="mr-3">
<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>
<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') }}
{{ 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>
<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>
{{ 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>
{% endif %}