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.
Hey drijen!
Try this out.
[add_to_cart id="99"]
Where 99 is the ID of the product.
Best regards,
Elliott
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.
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
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.
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
perfect