Home Forums WoodMart support forum Product Edit

Product Edit

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #223171

    mody.abs
    Participant

    Hey I just wanted some assistance with product customisation.

    In the product grid, I just wanted to add a little box shadow for just the product image and none of the other grid items on hover.

    Secondly, I am using dokan multivendor plugin. Is it possible to display vendor name with the product? Like sold by : xyz

    #223244

    Hello,

    1) Please elaborate with the help of some relevant screenshots with the URL of the page to check it myself and help you out accordingly.

    2) Sorry, but there is no such option in Theme Settings for that the vendor page is controlled by the plugin and the products are controlled by WooCommerce and our theme doesn’t influence.

    Regard’s.
    Xtemos Studio.

    #223314

    mody.abs
    Participant

    Hey check the website.

    I just want the shadow on hover for the product image in the grid.

    Attachments:
    You must be logged in to view attached files.
    #223334

    Hello,

    I saw the screenshot you attached.

    The box shadow is available for the whole product grid item, not only the image.

    You can try setting the product style of your requirements from Theme Settings >> Shop >> Product Styles.

    Screenshot for Clarification: https://ibb.co/Z6016Mc

    Regard’s.
    Xtemos Studio.

    #223444

    fdeross
    Participant

    Here is the code you will need to add the vendor’s name on the product loop. Paste it into your functions.php. You can edit as needed.

    https://paste.ee/p/MqX2K

    #223503

    mody.abs
    Participant

    Thank you so much fdeross

    This helped a lot, I made a few changes to my version.

    // Show Seller name on the product thumbnail For Dokan Multivendor plugin
    add_action( 'woocommerce_after_shop_loop_item_title','sold_by' );
    function sold_by(){
    ?>
    	</a>
    	<?php
    		global $product;
    		$seller = get_post_field( 'post_author', $product->get_id());
    		 $author  = get_user_by( 'id', $seller );
    
    		$store_info = dokan_get_store_info( $author->ID );
    		if ( !empty( $store_info['store_name'] ) ) { ?>
    				<span class="frostingsoldbyarchive">
    					<?php printf( 'sold by: %s', $store_info['store_name'] ); ?>
    				</span>
    		<?php
    	}
    }
Viewing 6 posts - 1 through 6 (of 6 total)