Cookie preferences of a customer

To access the cookie preferences of a customer from the customer record in NetSuite, the SuiteCommerce Analytics Data feature must be enabled. This method retrieves a list of key/value pairs representing the cookie names and their corresponding boolean values (true or false), along with the last date the customer updated the preferences. It’s important to… Continue reading Cookie preferences of a customer

Avoid Dependency issue with SDF

To add dependencies to the manifest: In VS Code, open the Command Palette and type suitecloud. From the dropdown list, select SuiteCloud: Add Dependency References to the Manifest. If your project has any dependency references missing, they are added to the manifest.xml file.

Default validation message is not showing for newsletter

For showing In normally if we didn’t enter anything in email field it will shows an error message but if message is not getting we need to customize and created a new extension for that and check Configuration : { “type”: “object”, “subtab”: { “id”: “Newsletter”, “group”: “extensions”, “title”: “Newsletter” }, “properties”: { “newsletter.FirstName”: {… Continue reading Default validation message is not showing for newsletter

Create a text field in the product data field in the product Data section in woocommerce

// image 5 function add_image_5_meta_field() {   global $post;   // Get the existing value   $image_5 = get_post_meta($post->ID, ‘image_5’, true);   // Output the field   echo ‘<div class=”options_group”>’;   woocommerce_wp_text_input(     array(       ‘id’     => ‘image_5’,       ‘label’    => __(‘Image_5’, ‘woocommerce’), // Updated label       ‘placeholder’ => __(‘Enter Image_5 Time’, ‘woocommerce’),       ‘desc_tip’  => ‘true’,       ‘description’ => __(‘This is a custom meta field for Image_5 time.’, ‘woocommerce’),… Continue reading Create a text field in the product data field in the product Data section in woocommerce

Create a custom inside a product Admin Page to create a editor field

// Add Feature overview meta field to product admin page function add_feature_description_meta_field() {   global $post;   // Get the existing value   $feature_description = get_post_meta($post->ID, ‘feature_description’, true);   // Output the field   echo ‘<div class=”options_group”>’;   echo ‘<p class=”form-field”>       <bold><label for=”sub_description”>’ . esc_html__(‘Feature Description’, ‘woocommerce’) . ‘</label></bold>     </p>’;   wp_editor(     $feature_description,     ‘feature_description’,     array(       ‘textarea_name’ => ‘feature_description’,       ‘label’    => __(‘Sub Description’, ‘woo… Continue reading Create a custom inside a product Admin Page to create a editor field

Create a custom field on the WooCommerce Category Admin page

function add_custom_category_image() {   ?>   <div class=”form-field”>     <label for=”category_image”><?php esc_html_e(‘Category Image’, ‘textdomain’); ?></label>     <input type=”text” name=”category_image” id=”category_image” value=””>     <p class=”description”><?php esc_html_e(‘Enter category image URL for this category.’, ‘textdomain’); ?></p>   </div>   <?php } add_action(‘product_cat_add_form_fields’, ‘add_custom_category_image’, 10, 2); // Save custom category image data when creating or updating a category function save_custom_category_image($term_id) {   if (isset($_POST[‘category_image’])) {     update_term_meta($term_id, ‘category_image’,… Continue reading Create a custom field on the WooCommerce Category Admin page

To Overide the WooCommerce Templates

add_theme_support( ‘woocommerce’ );  need to Add the following to functions.php After adding this we can override the WooCommerce templates like Archieve-product.php Taxnomy-product_cat.php Single-product.php Files for the Category main page which includes the main categories and the next file includes the subcategory category and Product page with the category is listed in the Taxnomy-product_cat.php file And… Continue reading To Overide the WooCommerce Templates