-
AuthorPosts
-
February 29, 2020 at 2:36 pm #1189021
I recently purchased enfold theme and i need help on
1) the price shows in product page is really ugly looking, can i give it a style and visible in center?
2) In product grid, can i show some product description instead of price?
3) Can we customise height of product displayed on product grid?
4) Can we show Customer image little bigger on left side and add a read more button?waiting for reply
-
This topic was modified 5 years, 10 months ago by
Romovick.
March 2, 2020 at 7:09 pm #1189504hey. no one there for support?
March 4, 2020 at 1:33 am #1189863Hi,
Sorry for the late response.
1.) Are you referring to the base shop page or the actual product view? A link to the site will help. For the meantime, you can use this css code to adjust the style of the product price.
top .price, #top .price span, #top del, #top ins { display: inline; text-decoration: none; font-size: 20px; line-height: 24px; font-weight: 600; text-align: center; }2.) This is possible, but you have to modify or override the plugin templates as described in the documentation.
// https://docs.woocommerce.com/document/template-structure/
3.) The height of the item usually depends on the size of the image, but we can use css to adjust it. You can also adjust the thumbnail size and aspect ratio in the Appearance > Customize > Woocommerce > Product Images panel.
4.) Yes, that’s possible. You can use this css code to adjust the container of the featured image.
.single-product-main-image { width: 50%; float: left; margin-right: 50px; overflow: hidden; padding-bottom: 50px; }We always advice users to post their inquiries on separate threads or tickets instead of posting multiple ones in a single thread like this. The response time is usually faster that way and prevents confusion in our part and yours.
Best regards,
IsmaelMarch 4, 2020 at 5:06 pm #1190120hi,
thankx for the reply.
1) The price style issue, check the first linkthe price visible there is made with html . it dont have any connection with the price display mechanism . what i did is, created two divs and in one price and other book now button. if there is a short code to display price , it would be helpful . so that i could display it where ever i want with custom styles, and now home page price and single page price use same style, if i want to display price in single product page little big, is there is any option?
2) am not a developer. so what you said, doesn’t digest to me well
3) that was awesome.. thankx
4) what i want was , the testimonial section. forgot to mention it . In testimonial, the customer image displayed tiny . and for large testimonial text it should appear a read more text.5) On footer my client want to display some custom logos as parts of various recognition obtained from differnt agencies. can i?
6) if i dont want show price in home page and only visible on single product page, how can i do it?
7) Any single line shortcode for your contact form? I want to use it as a default contact form with a pop up plugin which support only shortcide (just like contact form 7 like single line shortcode)
thank you. waiting for reply-
This reply was modified 5 years, 10 months ago by
Romovick.
March 6, 2020 at 7:55 am #1190770Hi,
1.) Yes, you can create a custom shortcode to get the price of the current product. Try this snippet in the functions.php file.
function ava_custom_price_shortcode( $atts ) { $id = avia_get_the_ID(); if( intval( $id ) > 0 && function_exists( 'wc_get_product' ) ){ $product = wc_get_product( $id ); $price = wc_get_price_to_display( $product, array( 'price' => $product->get_price() ) ); // Get the active price $regular_price = wc_get_price_to_display( $product, array( 'price' => $product->get_regular_price() ) ); // Get the regular price $sale_price = wc_get_price_to_display( $product, array( 'price' => $product->get_sale_price() ) ); // Get the sale price $style1 = 'style="font-size:40px;color:#e79a99;font-weight:bold;"'; $style2 = 'style="font-size:25px;color:#e79a99"'; $args = array( 'ex_tax_label' => false, 'currency' => 'EUR', 'decimal_separator' => '.', 'thousand_separator' => ' ', 'decimals' => 2, 'price_format' => '%2$s %1$s', ); if( ! empty( $sale_price ) && $sale_price != 0 && $sale_price < $regular_price ) $html = "<del $style2>" . wc_price( $regular_price, $args ) . "</del> <ins $style1>" . wc_price( $sale_price, $args ) . "</ins>"; // Sale price is set else $html = "<ins $style1>" . wc_price( $price, $args ) . "</ins>"; // No sale price set } return $html; } add_shortcode( 'avs_product_price', 'ava_custom_price_shortcode' );You can then use the following shortcode to display the product price:
[avs_product_price]2.) Are you referring to the default product grid from the plugin? Please provide a link to a page containing the grid.
If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.
Thanks!
Best regards,
Ismael -
This topic was modified 5 years, 10 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
