Forum Replies Created

Viewing 15 replies - 1 through 15 (of 109 total)
  • Thread Starter dammsugare

    (@dammsugare)

    Okay, my fault, I understand how it works. However, I have a problem with the taxes for the shipping costs:

    In the example above, Woocommerce is calculating taxes for the shipping costs based on the highest tax rate in he order. But it should calculate it based on the rates of the items, so if an order contains a product with 19 % taxes and one with 7 % taxes, the shipping cost tax should also be 13 % = 19 + 7 / 2. And if the order contains 2 items with 19 % and one with 7 %, the taxes of the shipping costs should be 19 + 19 + 7 / 3 = 15 %. How can I achieve this?

    @lorro Attribute VALUES can have descriptions. When you set up an attribute value, for example “green”, there is an optional field for the description. But I don’t know how to change my code to display this description instead of the value’s name. Something like

    $attributes_data[] = $attribute_name . ': ' . $term_description;

    does not work.

    @lorro no, when you set up a global attribute you cannot use any html in the term value’s name – when you save it, the html gets stripped immediately. And when you try to enter an , nothing is saved at all. As an alternative, is there a way to display the value’s desription instead of the value’s name in my mentioned code? Because allowing html in the value description is easy.

    @lorro My function is working well, but I cannot save anything with html (or images) as attribute values in backend. My function is this

    add_action('woocommerce_single_product_summary', 'display_custom_product_attributues', 36 );
    function display_custom_product_attributes() {
        global $product;
    
        $attributes_names = array('attribute1', 'attribute2', 'attribute3');
    
        $attributes_data  = array(); 
    
        foreach ( $attributes_names as $attribute_name ) {
            if ( $value = $product->get_attribute($attribute_name) ) {
                $attributes_data[] = $attribute_name . ': ' . $value;
            }
    		
        }
    
        if ( ! empty($attributes_data) ) {
            echo '<h3>Info</h3><ul><li>' . implode( '</li><li>', $attributes_data ) . '</ul>';
        }
    	
    }

    All my attributes are global. But it is not possible to save any value when you add html or image markup.

    Thread Starter dammsugare

    (@dammsugare)

    @stuartduff Thanks, I have posted there as well since it does not solve my problem. I am not displaying the attributes in the additional info tab but with a custom function below the product description. So modifying the product-attributes.php does not work.

    @lorro I have a similar problem, I need to be able to use html for product attributes’ values, but I am not displaying them in the aadditional info tab but instead with a custom function underneath the product description – so modifying the attributes php would not work in my case. Do you know how I can allow html in the value fields?

    Thread Starter dammsugare

    (@dammsugare)

    Yes, but the order was into a non-taxable country (from EU to Switzerland). So are all these fields necessary in order to ship from EU to Non-EU-countries(where there is no tax)?

    And yes, shipping fields are all correctly set.

    Thread Starter dammsugare

    (@dammsugare)

    Yes, all of them have titles! I now just placed a test order and am gettig a new error for internatonal:SOAP-ERROR: Encoding: object has no ‘countryCodeOrigin’ property.

    Does this have anything to do with the “Country of manufacture” and “Harmonized Tariff Schedule”? Are these fields, as well as weight and size, necessary to fill out for every product? I don’t have any of these fields set and was not planning to…

    • This reply was modified 3 years, 10 months ago by dammsugare.
    • This reply was modified 3 years, 10 months ago by dammsugare.
    • This reply was modified 3 years, 10 months ago by dammsugare.

    @aweissinpsyde Woocommerce is NOT sending an emails when orer staus is pending – because no payment is made and the order is not confirmed yet. Other plugins such as Germanized or German Marekt change this behaviour and will make Woo immediately send out the customer-processing email, but by default Woocommerce is not doing it. You can check it by using the standard PayPal that is already integrated with Woo and place an order with PayPal, and then when you get directed to PayPal, just close the brwoser. You as the customer will NOT receive an order email from Woocommerce – only if you have Germanized etc installed which I have not.

    So it has nothing do with with Woocommerce, it is Mollie’s plugin that isn’t sending the correct status back to Woo…I will try and send you an email as well!

    @aweissinpsyde it is not nly that the email is no sent – the order status is not updated to processing!! And that is why Woo is not sending anything. Please try to first place an order in sandbox modus and on the Mollie screen choose “failed”. Then you will get redirected to the Pay for order page(and in Woo backend the order is pending.) Then , on the pay for order page, choose anyother method from Mollie and this time on the Mollie screen, choose “authorized” or something simmilar. Now you get redirected to the Woocommerce orderreceived page, but in Woo backend the order status is still pending, and because of that no email is sent.

    @aweissinpsyde Woocommerce has not replied and I doubt they will. Please try out for yourself on a test site.

    @aweissinpsyde I will contact Woocommerce, but I don’t think it is Woo bug since the staus IS updated when cod or bacs or Paypal are chosen the second time for example. It only happnens when the customer chooses a Mollie payment method for the second time!
    Also, why are orders that are set as “failed” or “cancelled” in Mollie backened not set to “failed” or “cancelled” in Woo backend, but instead still “pending”?? Or is this all due to the sandbox modus?

    @aweissinpsyde Same prroblem here. I have a stagin site with Woo and Mollie. When I make an order in sandbox modus and choose to have the payment status “failed” or “cancelled”, I get redirected ti the Pay for order page and the status in Woocommerce is “pending”. When I then use a payment method FROM MOLLIE again and set the status to “paid”, I get redirected to thankyou-page BUT in Woocommerce backend the order is still pending and no order-processing email is sent from Woocommerce! However, if I choose a NON MOLLIE payment method the second time, such as bacs or cod, the order status oes change to processing and the email is sent from Woocommerce. So Mollie does not update the order status correctly when the customer chooses another payment method from Mollie!

    Thread Starter dammsugare

    (@dammsugare)

    Thanks,

    I just sent an email.

    Forum: Fixing WordPress
    In reply to: Media sizes
    Thread Starter dammsugare

    (@dammsugare)

    The images in the uploads folder are adding up…if for every image about 4-6 other sizes are created, then the folder is quickly becoming huge…

    My theme does not seem to add any other sizes, just Woocommerce is adding some. What would you recommend I set the largest media size to if my container max-width is 1500px, but I do have a few fullscreen images on my front page, meaning they are always 100vw, regardless of the screen width?

Viewing 15 replies - 1 through 15 (of 109 total)