Home Forums WoodMart support forum Choose elemnts to show in product style with CSS ?

Choose elemnts to show in product style with CSS ?

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

    dynamo-models
    Participant

    Hi,

    Is it possible to add an attribute in products styles on grid ? You propose it natively in theme settings >product archives > products styles > Elements > show categories or show brand or show SKU. I would like to show an attribute I defined (the scale to precise)

    If you have a CSS code to add in functions.php or else, it would be appreciate;

    Regards,

    #610886

    Hung Pham
    Keymaster

    Hello dynamo-models,

    Thanks for reaching to us.

    You need to define attributes from appropriate input in the settings of the product: https://prnt.sc/SgKJ1MdXGkz9,

    Then you need to define the attributes that you want to see on the Shop archive as a dropdown in Theme Settings > Shop > Variable products > Grid swatch attribute to display: https://prnt.sc/3ZNFuaNFdCL3

    Please check this manual and configure it for products.
    https://xtemos.com/docs-topic/variable-products-and-swatches/

    Best Regards

    #611596

    dynamo-models
    Participant

    Hi,

    This is not exactly what I ask for.

    This is not for variantions of my product but to display 1 attribute aside of category on the grid.

    In your options Product archives > Elements you propose this :
    https://prnt.sc/9KW9WCacC_qh

    But there is no switch button to add an attribute (like ‘scale’ for us)

    Here is what I have on my grid homepage :
    https://prnt.sc/hJ7iwZYw9WSk

    And this what I would like :
    https://prnt.sc/2BbXzPrCGqJJ

    So as you can see on this footage, with the attribute chosen (scale ‘1/35’ here) clickable like ‘Kits’ just nearby.

    Is it possible ?

    Thanks

    #611792

    Hung Pham
    Keymaster

    Hello dynamo-models,

    To assist you in the best possible manner, I kindly ask that you please provide me temporary wp-admin info (wp-admin URL, username, password) to the Private Content area, this will allow me to thoroughly investigate and address your concerns more efficiently.

    Regards,

    #611827

    dynamo-models
    Participant

    Hi Hung Pham,

    I was not clear on my last post. The last screenshot is an editing image by Photoshop.

    I’m not sure you find any answer in the back office. The only way to add an elements under my thumbnail is here :
    https://prnt.sc/9KW9WCacC_qh

    Maybe you know another setting in Product Archives > Product Grid or Products Styles where I can define attribute appearance under my grid thumbnails ?

    Can you please ask to admin maybe, if it’s possible to ADD clickable ATTRIBUTE choice under my thumbnail like the theme settings propose for CATEGORY or BRANDS or SKU or COUNT REVIEW.

    The file contant-base.php manage this function.

    Here is the div :

    <div class="product-element-bottom product-information">
     	<?php
     		/**
     		 * woocommerce_shop_loop_item_title hook
     		 *
     		 * @hooked woocommerce_template_loop_product_title - 10
     		 */
     		do_action( 'woocommerce_shop_loop_item_title' );
     	?>
    
     	
     	<?php
     		woodmart_product_categories();
     		woodmart_product_brands_links();
     		woodmart_product_sku();
     		woodmart_stock_status_after_title();
     	?>
     	
     	<div class="product-rating-price">
     		<div class="wrapp-product-price">
     			<?php
     				/**
     				 * woocommerce_after_shop_loop_item_title hook
     				 *
     				 * @hooked woocommerce_template_loop_rating - 5
     				 * @hooked woocommerce_template_loop_price - 10
     				 */
     				do_action( 'woocommerce_after_shop_loop_item_title' );
     			?>
     			<?php echo wp_kses_post( woodmart_get_product_rating() ); ?>
     		</div>
     	</div>
     </div>

    If I add this line in the list categories, brands_links, sku, or stock_status_after_tittle, it doesn’t work :

    `woodmart_product_attribute(‘scale’); ‘

    I have to add something more, my in functions.php, but I don’t know what.

    Can you please ask to a developer ?

    Best,

    #612046

    Hung Pham
    Keymaster

    Hello dynamo-models,

    To assist you in the best possible manner, I kindly ask that you please provide me temporary wp-admin info (wp-admin URL, username, password) to the Private Content area, this will allow me to thoroughly investigate and address your concerns more efficiently.

    Regards,

Viewing 6 posts - 1 through 6 (of 6 total)