Hello,
http://dev.escalamas.com/tienda
I do not this taking the styles that I have defined in WooCommerce, this taking me to enfold themselves. How to make the catch?
Also would want to have all products in view only “catalog”, ie could not buy. As do so only out for each product the button “show details”?
Thank you!
Xavier.
Hi,
1) Please elaborate – I don’t understand the question. If you refer to the fact that Enfold doesn’t use the styling settings you made on the WooCommerce option page you’re right – Enfold uses its own style settings (Enfold > Styling) and doesn’t take care of the WooCommerce colors, etc.
2) Yes you can remove the “Add to cart” button. Open up /wp-content/themes/enfold/config-woocommerce/config.php and delete following code
ob_start();
woocommerce_template_loop_add_to_cart();
$output = ob_get_clean();
if(!empty($output))
{
$pos = strpos($output, ">");
if ($pos !== false) {
$output = substr_replace($output,"><span class='avia-font-entypo-fontello'>". $avia_config['font_icons']['cart'] ."</span> ", $pos , strlen(1));
}
}
if($product->product_type == 'variable' && empty($output))
{
$output = "<a class='add_to_cart_button button product_type_variable' href='".get_permalink($product->id)."'><span class='avia-font-entypo-fontello'>". $avia_config['font_icons']['details'] ."</span> ".__('Select options','avia_framework')."</a>";
}
Thank you very much dude.
Perfect as always!!! ;)
Xavier.