Home Forums Theme Support Dokan single product page

This topic is: not resolved

This topic contains 21 replies, has 3 voices, and was last updated by  towhid 3 years, 11 months ago.

Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #53940

    Loukia
    Member
    Post count: 87

    Hi,

    at the single product page i want to remove the add to cart function and place the name and the phone number of the seller.

    #54011

    towhid
    Participant
    Post count: 4505

    Hello Loukia,

    Try this following code in plugins/woocommerce/templates/single-product/content-single-product.php and see what happen.

    <?php 
    		global $product;
    
    		$author     = get_user_by( 'id', $product->post->post_author );
        	$store_info = dokan_get_store_info( $author->ID );
    		if ( !empty( $store_info['store_name'] ) ) { ?>
                    <span class="details">
                    	<?php echo $store_info['price']; ?>
                    	<?php echo $store_info['phone']; ?>
                        <?php printf( '<a href="%s">%s</a>', dokan_get_store_url( $author->ID ), $author->display_name ); ?>
                    </span>
     		<?php } ?>

    Thanks

    #54125

    Loukia
    Member
    Post count: 87

    Where exactly should i place this code in this page?

    #54135

    Loukia
    Member
    Post count: 87
    This reply has been marked as private.
    #54223

    towhid
    Participant
    Post count: 4505

    Hello Loukia,

    Try that code in plugins/woocommerce/templates/single-product/content-single-product.php and let me know the result.

    Thanks

    #54357

    Loukia
    Member
    Post count: 87

    i add this code is working but the position of the new information is not aligned with the other data.
    also instead of name of the shop i want to place the name of the seller. the add to cart button is still there. which is the code which i have to delete and get rid of it?

    here is the screen shot: http://s27.postimg.org/xn5wn0f2r/2015_07_03_12_18_09.png

    #54420

    towhid
    Participant
    Post count: 4505

    Hello Loukia,

    Please provide your login details by using this form: http://wedevs.com/provide-login-details/. I will have a look what is going wrong.

    Thank you ๐Ÿ™‚

    #54683

    towhid
    Participant
    Post count: 4505

    Hello Loukia,

    I also need the FTP login details.

    Thanks

    #54724

    Loukia
    Member
    Post count: 87

    please check it. i provide the FTP login details to you

    #54761

    towhid
    Participant
    Post count: 4505

    Hello Loukia,

    I can not access your site on my browser. Can you please check and let me know.

    Thanks

    #55617

    Loukia
    Member
    Post count: 87

    did you get the new FTP details i gave you?

    #55658

    towhid
    Participant
    Post count: 4505

    Hello Loukia,

    I received the all the details you have provided to me. But I have mentioned in my last post that I did not see the site in my browser. Please check the following screenshot.

    Site Error

    Thanks

    #55836

    Loukia
    Member
    Post count: 87
    This reply has been marked as private.
    #56014

    Loukia
    Member
    Post count: 87

    ???????

    #56105

    Nayem
    Moderator
    Post count: 6480

    Hello,

    I am really sorry for being late. Due to EID vacation our support is little bit slow. Our office will start from 26th July. After opening our office our support will be fast.

    I have checked a product of your site but i did not see the new line which you have added.

Viewing 15 posts - 1 through 15 (of 22 total)

The topic ‘single product page’ is closed to new replies.