Forum Replies Created

Viewing 15 replies - 31 through 45 (of 212 total)
  • Thread Starter loopforever

    (@loopforever)

    Thank you for your answer.
    As I said before, I changed the column names myself with the hook defined by Woocommerce. I am able to add products using these column names. But sometimes I can’t add.

    From my research it is said that in some cases HTML code (the code I used in the Description column) is seen as unsafe. Therefore, it is said to be a security measure taken by WordPress. However, this is not always the case.

    As I said before, if I remove or change the product description, I can successfully import the products.
    What I don’t understand is is there a way to get around this? Or, how is this security criterion (if there is such a thing) determined?

    Thread Starter loopforever

    (@loopforever)

    I’m sorry for this. Can you look again please ?
    File IO link
    DropBox IO Link

    • This reply was modified 2 years, 10 months ago by loopforever.
    Thread Starter loopforever

    (@loopforever)

    Hello,
    I have created a sample template below. I replaced the column names with the corresponding normally hook. Therefore, it may seem different to you, there is no problem there.

    All the links in the Product Description section work flawlessly under normal conditions.
    As I said before, sometimes I import products without any problems. But sometimes i get the following warning: “Sorry, you are not allowed to upload this file type.”

    In such a case, I can still upload the file, that is, the products, via FTP. But I am not installing it with the export-import tool. However, “if I delete the product description” the file (products) import without issue. Just like the file I sent you. When I delete the product description containing HTML code in this file, it can be imported without any problems.

    CSV File Link

    • This reply was modified 2 years, 10 months ago by loopforever.
    • This reply was modified 2 years, 10 months ago by loopforever.
    • This reply was modified 2 years, 10 months ago by loopforever.
    Thread Starter loopforever

    (@loopforever)

    Thank you very much for your reply.
    Unfortunately this constant did not fix the problem: `define( ‘ALLOW_UNFILTERED_UPLOADS’, true );
    `

    When I remove the HTML, the installation takes place. However, the problem persists with HTML, that is, with the product description. Also yes, the upload is done via FTP as well.
    Should I talk to the server owner about this? Is there any alternative solution?

    • This reply was modified 2 years, 10 months ago by loopforever.
    Thread Starter loopforever

    (@loopforever)

    I solved the problem. If I remove the product description, the problem is solved. Product descriptions are written in HTML. Is there such a precaution? That is, descriptions written in HTML cannot be exported?

    Thread Starter loopforever

    (@loopforever)

    Thaknk you.
    I’m working via custom code.

    Thread Starter loopforever

    (@loopforever)

    Thank you for your response.
    In a project I’m working on, I do some operations after a customer orders a product. Like updating item qty. I do this in the woocommerce_order_itemmeta table. For example, after customer update item qty, I’m updating tax amount, subtotal total etc. in the background. So, I am updating all monetary amounts in this table.

    I’m wondering if I should make any changes to this table (wc_order_product_lookup) as well. If I’m going to make changes, is there a function for that? For example, I want to update the number of the product with item id 297.

    Thread Starter loopforever

    (@loopforever)

    Thank you.

    Thread Starter loopforever

    (@loopforever)

    Thank you for your reply and advice.
    Could you please answer my question? I’m wondering about this.

    Thread Starter loopforever

    (@loopforever)

    Thank you for your answer.
    I solved the problem by increasing the value as you said.

    I have now set the value to 1450. Do you think this is too high a value for WordPress?
    I searched but couldn’t find a definitive explanation. I would be glad if you help.

    Thread Starter loopforever

    (@loopforever)

    My personal opinion is that if it works for suborder ids as well, there is no problem. Note that in case of sub-orders, that is, if there is more than one seller in the same basket, new order_id values ??are created.
    However, there is a situation like this: A certain condition and time may have been provided for the main order. However, for example, it may not be provided for any suborders.

    For example, customer bought products from seller A and B.
    Main order number: 1
    Sub-order number-1: 2
    Sub-order number-2: 3

    All order status at startup: processing
    After a while, the status of the first suborder changed to Delivered. But the 2nd order status is still in process.
    I want: Change the order status from Delivered to completed in x days in order status.
    As you said, your plugin works for suborders as well. So, your plugin doesn’t just work for the main order. Then there is no problem.
    However, if this only works for the main order, there is a problem as you can imagine.

    Thread Starter loopforever

    (@loopforever)

    Thank you.

    • This reply was modified 3 years, 1 month ago by loopforever.
    • This reply was modified 3 years, 1 month ago by loopforever.
    • This reply was modified 3 years, 1 month ago by loopforever.
    • This reply was modified 3 years, 1 month ago by loopforever.
    Thread Starter loopforever

    (@loopforever)

    Support policy ? I am here for him.

    If there is more than one vendor, I cannot properly store the data that will be needed in the future.
    I don’t want him to write code. What can I do ?

    Thread Starter loopforever

    (@loopforever)

    Hi again,
    I solved the problem with a little JS code. As far as I can see, the new field is overwritten by the plugin. So, the new field is written on Shipping City. However, the Shipping City field is running in the background and the data is transferred with your plugin (from the address book).
    I also wrote a jquery code that is triggered based on the field change in the past. Data received from Shipping City is transferred to the new field.

    Maybe it will help someone else, below is the code.
    I added the code with the woocommerce_before_order_notes hook as I have other works.

    add_action ('woocommerce_before_order_notes', 'address_book_js_code_define_on_checkout_page' );
    function address_book_js_code_define_on_checkout_page () {?>
    <script type="text/javascript">
    jQuery(document).ready(function($){
    	jQuery("#shipping_city").change(function(){	
    		jQuery("[name='shipping_district']").val(jQuery("[name='shipping_city']").val()).change();
    	});
    });
    </script>
    <?php
    }
    • This reply was modified 3 years, 1 month ago by loopforever.
    • This reply was modified 3 years, 1 month ago by loopforever.
    Thread Starter loopforever

    (@loopforever)

    I just saw your message, I’ll add according to the edit. Thank you.

Viewing 15 replies - 31 through 45 (of 212 total)