Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #530189

    Hi there,

    I’ve used Avia Layout builder to design the WooCommerce product pages, and used the product purchase button. On Variable products, it is showing the different options and prices associated with the variations. However on a simple product it isn’t displaying the price.

    #530847

    Hey drijen!

    Try this out.

    [add_to_cart id="99"]
    

    Where 99 is the ID of the product.

    Best regards,
    Elliott

    #531438

    Hi there,

    I’ve done that and while it provides the info, it doesn’t look so pretty:
    http://www.infinityrooflights.co.uk.gridhosted.co.uk/product/smart-phone-application/

    The ‘product purchase button’ I initially used works really well for variable products
    http://www.infinityrooflights.co.uk.gridhosted.co.uk/product/walk-on-roof-lights/

    if it can just display the price on simple products, it would be fine.

    #532551

    Hi!

    how do you want it to look like instead?
    try this code to change it’s look, for example:

    p.product.woocommerce.add_to_cart_inline {
    background-color: blue;
    }
    

    Cheers!
    Andy

    #532813

    Ive styled the inline add to cart button and styled it as you can see here:
    http://www.infinityrooflights.co.uk.gridhosted.co.uk/product/remote-control/

    However it doesn’t have the increase/decrease quantity arrows and when I add item to cart, the cart says “” was added to your cart (it doesn’t display the product name)

    Is there no way to use the Product Purchase Button to display the price? As it works perfectly for variable products.

    #533059

    Hi!

    If you want to display the price when using the Product Purchase Button, please modify the config-templatebuilder > avia-shortcodes > product_snippet_button.php file. Look for this code around line 67:

    $output .= "<div class='av-woo-purchase-button ".$meta['el_class']."'>";
    

    .. replace it with:

    $output .= "<div class='av-woo-purchase-button ".$meta['el_class']."'>";
    			$output .= $product->get_price_html();

    Regards,
    Ismael

    #535322

    perfect

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Product Purchase Button (Avia Layout) not showing product price’ is closed to new replies.