Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #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.

    #1218292

    Hey 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,
    Mike

    #1219570

    Thank 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.

    #1219577

    Hi,

    You can use the shortcode:

    [woocommerce_product_filter_attribute]

    Best regards,
    Jordan Shannon

    #1219640

    Thanks 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.

    #1220097

    Hi,
    Sorry for the late reply, I believe that this shortcode needs to be used on a product page, it is a “live” filter

    within 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,
    Mike

    #1220333

    Hello 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.

    #1220478

    Hi,

    Please provide admin info so we can log in and look into this issue further.

    Best regards,
    Jordan Shannon

    #1220659

    Of course, see the data below.

    Regards.

    #1222009

    Hi,
    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.
    2020-06-12_061135.png
    Perhaps your item is set as a “simple product”
    2020-06-12_061415.png
    Please check, or link to a test product page and we can adjust to demonstrate.

    Best regards,
    Mike

    #1225671

    Thank 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.

    #1226014

    Help please. Thanks.

    #1226137

    Hi,
    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

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.