Catalog mode
Hi i want to customize my store as catalog store . some of functions are not working can you please help
// Rename Woocommerce "Add to cart" and "Place order" text
add_filter('gettext', 'translate_strings');
add_filter('ngettext', 'translate_strings');
function translate_strings($translated) {
$translated = str_ireplace('Add to cart', 'Add to enquiry', $translated);
$translated = str_ireplace('Place order', 'Request a quote', $translated);
return $translated;
}
// Remove Woocommerce checkout fields
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
function custom_override_checkout_fields( $fields ) {
unset($fields['billing']['billing_address_1']); // Billing Address 1
unset($fields['billing']['billing_address_2']); // Billing Address 2
unset($fields['billing']['billing_city']); // Billing city
unset($fields['billing']['billing_postcode']); // Billing postcode
unset($fields['billing']['billing_state']); // Billing state
return $fields;
}
Comments
Hi,
We do not provide help with the file modifications. With that, you should contact your web developer.
Best regards