• Resolved rafiktech

    (@rafiktech)


    hello,

    I hope you are in safe

    I just want to ask after import my XML link there is some products duplicating and change in price

    how I can prevent this duplicate when import products

    it’s enough to put this function in PHP functions

    add_filter('wc_product_has_unique_sku', 'wpai_wc_product_has_unique_sku', 10, 3);
    function wpai_wc_product_has_unique_sku($sku_found, $product_id, $sku) {
            if ($sku_found){
            	// Duplicate SKU found.
            }
    	return $sku_found;
    }

    my second questions are if I have more than a supplier and each supplier has its own XML link for her products can I separate each product when I import it?

    • This topic was modified 4 years, 11 months ago by rafiktech.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @rafiktech

    how I can prevent this duplicate when import products

    Are you wanting to stop the creation of a product if the SKU already exists on the site? If so, here’s an example code snippet that you can modify as needed: https://www.wpallimport.com/documentation/developers/code-snippets/#do-not-create-products-with-duplicate-sku.

    my second questions are if I have more than a supplier and each supplier has its own XML link for her products can I separate each product when I import it?

    You should be able to do that, but can you elaborate a bit on how you’d like them separated? How would you do it if you were manually creating the products?

    Thread Starter rafiktech

    (@rafiktech)

    if I need to put and show tax for a product just I want to choose the tax status

    and also when I put the price filed and show preview the price is shown but after import, the products don’t have any price

    I put a picture to explain more clear

    https://ibb.co/5n9dqnQ

    Plugin Author WP All Import

    (@wpallimport)

    Hi @rafiktech

    if I need to put and show tax for a product just I want to choose the tax status

    You can import the tax status in the “General” tab of our WooCommerce Add-On: https://d.pr/i/dCNuHE. If you’re trying to only update that setting, you can choose to only update the “_tax_status” custom field in the import settings: https://d.pr/i/WaEmqK.

    and also when I put the price filed and show preview the price is shown but after import, the products don’t have any price

    You can fix this by importing the {Price[1]} element into the “Regular Price” field instead of the “Sale Price” field.

    Thread Starter rafiktech

    (@rafiktech)

    thank you for your reply

    I don’t know why your support doesn’t active and all people take about this plugins for bad support !!!!!

    anyway thank you I’m continuing with support ticket i don’t know if the same support

    but I didn’t hear from them for more than 2 days!!!!!!

    also can you please explain why I need to put this code

    [round_price({price[1]},”1.5″,”10″,”.01″)]

    doesn’t enough to put my tax from my file in the filed tax but when I put that nothing change in my price still without tax!!!

    Plugin Author WP All Import

    (@wpallimport)

    Hi @rafiktech

    also can you please explain why I need to put this code

    [round_price({price[1]},”1.5″,”10″,”.01″)]

    doesn’t enough to put my tax from my file in the filed tax but when I put that nothing change in my price still without tax!!!

    That function is only needed if you’re trying to change your prices by marking them up 50% to the nearest $10 and ending in “.99”.

    If you’re having trouble updating your prices, you’ll need to replicate the issue on a debug site at https://www.wpallimport.com/debug/ and open a ticket at https://www.wpallimport.com/support/ with more details on the issue (please include screenshots). We will have to check your import settings/data/logs to see what’s going wrong.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘duplicate products’ is closed to new replies.