Skip to content

Commit

Permalink
Fix: empty spaces before the store url in the vendor registration form (
Browse files Browse the repository at this point in the history
#2326)

* Fix: empty spaces before the store url in the vendor registration form

* Fix: empty spaces before the store url in the vendor registration shortcode
  • Loading branch information
mralaminahamed authored Aug 6, 2024
1 parent 7186187 commit 701cd08
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
5 changes: 1 addition & 4 deletions templates/account/update-customer-to-vendor.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@
<label for="seller-url" class="pull-left"><?php esc_html_e( 'Shop URL', 'dokan-lite' ); ?> <span class="required">*</span></label>
<strong id="url-alart-mgs" class="pull-right"></strong>
<input type="text" class="input-text form-control" name="shopurl" id="seller-url" value="<?php echo esc_attr( $shop_url ); ?>" required="required" />
<small>
<?php echo esc_url( $home_url . '/' . $custom_store_url ) . '/'; ?>
<strong id="url-alart"></strong>
</small>
<small><?php echo esc_url( $home_url . '/' . $custom_store_url ) . '/'; ?><strong id="url-alart"></strong></small>
</p>

<p class="form-row form-group form-row-wide">
Expand Down
10 changes: 5 additions & 5 deletions templates/account/vendor-registration.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?php
function_exists( 'wc_print_notices' ) ? wc_print_notices() : '';

if ( function_exists( 'wc_print_notices' ) ) {
wc_print_notices();
}

$home_url = untrailingslashit( home_url() );
$custom_store_url = dokan_get_option( 'custom_store_url', 'dokan_general', 'store' );
Expand Down Expand Up @@ -63,10 +66,7 @@ function_exists( 'wc_print_notices' ) ? wc_print_notices() : '';
<label for="seller-url" class="pull-left"><?php esc_html_e( 'Shop URL', 'dokan-lite' ); ?> <span class="required">*</span></label>
<strong id="url-alart-mgs" class="pull-right"></strong>
<input type="text" class="input-text form-control" name="shopurl" id="seller-url" value="<?php echo ! empty( $data['shopurl'] ) ? esc_attr( $data['shopurl'] ) : ''; ?>" required="required" />
<small>
<?php echo esc_url( $home_url . '/' . $custom_store_url ) . '/'; ?>
<strong id="url-alart"></strong>
</small>
<small><?php echo esc_url( $home_url . '/' . $custom_store_url ) . '/'; ?><strong id="url-alart"></strong></small>
</p>

<?php
Expand Down
5 changes: 1 addition & 4 deletions templates/global/seller-registration-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@
<label for="seller-url" class="pull-left"><?php esc_html_e( 'Shop URL', 'dokan-lite' ); ?> <span class="required">*</span></label>
<strong id="url-alart-mgs" class="pull-right"></strong>
<input type="text" class="input-text form-control" name="shopurl" id="seller-url" value="<?php echo ! empty( $data['shopurl'] ) ? esc_attr( $data['shopurl'] ) : ''; ?>" required="required" />
<small>
<?php echo esc_url( $home_url . '/' . $custom_store_url ) . '/'; ?>
<strong id="url-alart"></strong>
</small>
<small><?php echo esc_url( $home_url . '/' . $custom_store_url ) . '/'; ?><strong id="url-alart"></strong></small>
</p>

<?php
Expand Down

0 comments on commit 701cd08

Please sign in to comment.