-
AuthorPosts
-
May 28, 2020 at 7:52 pm #1217495
Hi there! I love your theme.
I have two specific questions today about the Shop included in it:1) Is it possible to add a right sidebar to a product page? As this one https://kriesi.at/themes/enfold-shop/product/casual-collection/ for example
2) Is it possible to include additional Avia Builder elements to a product page? A slider for example.Thank you, regards.
May 31, 2020 at 11:16 pm #1218292Hey Cocoa,
To add a right sidebar to a woocommerce product page, please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:.single-product-main-image { width: 25%; } .single-product-summary { overflow: hidden; width: 45%; float: left; margin-right: 5%; } .single-product .sidebar { width: 25%; }
Then add this code to the end of your functions.php file in Appearance > Editor:
add_action('init','ava534345953_init', 50); function ava534345953_init() { add_action( 'woocommerce_after_single_product_summary', 'avia_add_sidebar', 25); } function avia_close_image_div() { global $avia_config; echo "</div> "; } function avia_add_sidebar() { if(is_product()) { $avia_config['currently_viewing'] = "shop_single"; get_sidebar(); } }
To add additional Avia Builder elements to a product page you will need to build the product page with the builder.
Best regards,
MikeJune 4, 2020 at 9:53 pm #1219570Thank you very much Mike.
If I build the product page with the Avia Builder, how can I insert the Product Attribute box? I do not see the element icon in the builder.
Regards.
June 4, 2020 at 10:05 pm #1219577June 5, 2020 at 12:36 am #1219640Thanks Jordan, if I insert the shortcode in a text element, the Attribute box does not show up (see link below). Am I missing something?
Regards.
June 7, 2020 at 3:18 am #1220097Hi,
Sorry for the late reply, I believe that this shortcode needs to be used on a product page, it is a “live” filterwithin appropriate context*, the customer can click a term and the page will show products that are related to it.
Your test page has no products so the filter has nothing to do, the woocommerce documentation says:
*This shortcode must be used within appropriate context, i.e. where products are displayed, as for example on a shop page.
When you say “Product Attribute box” do you mean in the backend or the frontend? Can you include a screenshot of what you would like to see?
Best regards,
MikeJune 8, 2020 at 1:57 am #1220333Hello Mike, thanks for your reply.
I would like to add the Attribute Box (see the link below) working with Avia Builder.
I was not able to do it via shortcode, I am not sure if we are in the same page here. You let me know.Thanks again.
June 8, 2020 at 2:52 pm #1220478Hi,
Please provide admin info so we can log in and look into this issue further.
Best regards,
Jordan ShannonJune 8, 2020 at 9:23 pm #1220659Of course, see the data below.
Regards.
June 12, 2020 at 12:17 pm #1222009Hi,
Sorry for the late reply, the login doesn’t seem to be working, but I also notice that I’m redirected to “.group” from “.ar” on the homepage.
I have researched this on my localhost and found that the Attribute Box will show automatically within the “Product Purchase Button” element, if your item is variable, the Attributes are what defines the differences in the variable products.
Perhaps your item is set as a “simple product”
Please check, or link to a test product page and we can adjust to demonstrate.Best regards,
MikeJune 25, 2020 at 10:19 pm #1225671Thank you Mike! With your instructions, I could enable the Attribute Box using the Advanced Editor, in this product: http://ecovasos.com/nueva/producto/qero-500cc-17-oz/
However, the functionality of the product gallery, that changes the image depending of the attribute you select, is lost now. I had to add the product image manually. Is there a way to enable that functionality again?Admin credentials below.
Regards.June 27, 2020 at 1:37 am #1226014Help please. Thanks.
June 27, 2020 at 8:54 pm #1226137Hi,
Sorry for the late reply, and thanks for the login. I’m not sure why the thumbnails are all showing the same placeholder
/wp-content/plugins/product-variation-swatches-for-woocommerce/admin/assets/images/placeholder.png
but I don’t know the product variation swatches plugin very well, so perhaps there is another step needed to set it up. Try asking the plugin author what we might have missed when setting it up.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.