Home › Forums › WoodMart support forum › Product Edit
Product Edit
- This topic has 5 replies, 3 voices, and was last updated 4 years, 6 months ago by
mody.abs.
-
AuthorPosts
-
September 2, 2020 at 10:03 pm #223171
mody.absParticipantHey 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
September 3, 2020 at 8:37 am #223244
Aizaz Imtiaz AwanKeymasterHello,
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.September 3, 2020 at 12:13 pm #223314
mody.absParticipantHey 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.September 3, 2020 at 1:01 pm #223334
Aizaz Imtiaz AwanKeymasterHello,
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.September 3, 2020 at 10:47 pm #223444
fderossParticipantHere 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.
September 4, 2020 at 4:01 am #223503
mody.absParticipantThank 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 } }
-
AuthorPosts
- You must be logged in to create new topics. Login / Register