How to create unique SKU with WP User Frontend custom field.

The unique SKU of the products is not being set when the products are created. To add unique SKU with products, then follow the instructions given below. 1) Add a custom text field with _sku to the product form. Screenshot: http://prntscr.com/eb2ext 2) Add the following code inside the theme’s functions.php file. Note: This is a… Continue reading How to create unique SKU with WP User Frontend custom field.

How to update WooCommerce sale price dates meta using WPUF date fields

If you are having an issue with updating the schedule dates of WooCommerce product using WPUF fields, you can follow the given instructions to solve this issue. 1) Add two date type field to WPUF form that you created to allow users for uploading products. 2) Insert _sale_price_dates_from & _sale_price_dates_to meta keys accordingly for these… Continue reading How to update WooCommerce sale price dates meta using WPUF date fields

How to charge different amount for different post type using WP User Frontend subscription pack

Here is the guideline for charging a different amount for different post types. 1) Navigate to wp-admin > User Frontend > Subscription. Click on Add New Subscription button to add new subscription. 2) Now, You can see the fields to enter the number for each post. 3) If you want to allow only one post… Continue reading How to charge different amount for different post type using WP User Frontend subscription pack

How can redirect to the “seller dashboard” instead of seller setup wizard

To define the seller dashboard page instead of setup wizard after registering as a new seller, you can add the following code to your theme’s functions.php file. Note: This is a Developer level doc. If you are unfamiliar with code/templates and resolving potential conflicts, contact me for assistance. // define the seller dashboard page instead… Continue reading How can redirect to the “seller dashboard” instead of seller setup wizard

How to display quantity input fields next to add to cart buttons.

To display quantity input fields for simple products within your shop archive pages, you can add the following code to your theme’s functions.php file. Note: This is a Developer level doc. If you are unfamiliar with code/templates and resolving potential conflicts, contact me for assistance. <!–?php /**  * Code should be placed in your theme… Continue reading How to display quantity input fields next to add to cart buttons.

Simple Array Sum

Given an array of N integers, can you find the sum of its elements? Input Format The first line contains an integer, N denoting the size of the array. The second line contains N space-separated integers representing the array’s elements. Output Format Print the sum of the array’s elements as a single integer. Sample Input… Continue reading Simple Array Sum