Customizing; Help Me

This topic contains 1 reply and 2 voices, and was last updated by Tareq Hasan 11 years, 3 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
April 10, 2014 at 2:06 pm 18453
Tareq Hasan Hi. I have two concerns that I cant seem to fix. 1. In the demo one of the products has the details instead of the add to cart as seen in this image. How can I do this? 2. How can I edit the registration page so that the radio buttons of choosing if you are a customer or a seller will be placed on top? Thank you.
April 10, 2014 at 3:28 pm 18456
Tareq Hasan Tareq Hasan

1. If your product is a variable product, then this happens.

2. Open /includes/template-tags.php and see at function dokan_seller_reg_form_fields around line 367. Remove the seller/custom radio box.

Now add this function to your functions.php, should work.
[php]
function dokan_seller_type_chose_registration() {
?>
<p class="form-row form-group user-role">
<label class="radio">
<input type="radio" name="role" value="customer"<?php checked( $role, ‘customer’ ); ?>>
<?php _e( ‘I am a customer’, ‘dokan’ ); ?>
</label>

<label class="radio">
<input type="radio" name="role" value="seller"<?php checked( $role, ‘seller’ ); ?>>
<?php _e( ‘I am a seller’, ‘dokan’ ); ?>
</label>
</p>
<?php
}

add_action( ‘woocommerce_register_form_start’, ‘dokan_seller_type_chose_registration’ );
[/php]

Remember, you’ll lose the changes once any update comes.

Viewing 1 Posts - 1 through 1 (of 1 total)