Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Watta21

    (@watta21)

    Thanks a lot for your answer.

    So currently I have 2 payment-methods.

    • Bank Transfer
    • PayPal

    I want to have the ‘new order’-email only if paypal payment is successful and everytime when bank transfer is chosen and the product is bought. At the moment the new order email is sent right after the paypal payment page is shown(the costumer did not pay yet).

    And yes I also did setup the email settings.

    It looks like you want to have the Processing Order email enabled and the New Order email disabled.

    This can also be a solution for me. Everytime the costumer is buying a product, wheter bank transfer or paypal, a processing email is sent. When one of the admins has reviewd the order, he will sent manually a new order email through dashboard.

    But at the moment none of the two options works.

    Thread Starter Watta21

    (@watta21)

    @ericbakuladavis: Thank you, that sounds like a fine solution. But when I disable the confirmation-mail, i think all other payment methods will be disabled too. So when I do bank transfer there wont be any confirmations. So I think I would not work for my scenario.

    Wird nicht rechtlich vorgegeben, dass eine Seite mit der “Bestellübersicht” zum Überprüfen der Daten (Bestellung, Adresse, Zahlungsmethode) vor dem Absenden der Bestellung vorhanden sein soll?

    Edit: Woran richten sich alle WooCommerce-System Inhaber die kein Trusted Shop Mitglied sind?

    Thread Starter Watta21

    (@watta21)

    Hey @phppoet your solution probably only works for wordpress costum field.

    I was looking for a solution to display the woocommerce costum field which are different from wordpress in the way they are referenced.

    I actually found a solution:

    <p>
    <?php
     /**
     * Display the costum field.
     */
     $costumfieldvalues = get_the_terms( $product->id, 'pa_costumfield');
    
     foreach ( $costumfieldvalues as $costumfieldvalue ) {
       echo $costumfieldvalue->name;
     }
    ?></p>

    Replace ‘costumfield’ with the name you set in woocommerce property option e.g. start_date. The specific reference of woocommerce attributes is ‘pa_<costum_field>’.

    Edit: Of course you need to set global $product somewhere in the *.php file you are actually working with.

    Found this solution here:

    Thread Starter Watta21

    (@watta21)

    Thank you for the answer. It sounds like the solution I am looking for. I’ll try that tomorrow and see if this works.

    Thread Starter Watta21

    (@watta21)

    Thank you for the quick answer. It’s not exactly what I’m looking for.

    Inside the function my_costum_data in your solution, i need to receive a specific product detail.

    What I mean is, you can set a self defined property for every product you want to sell. In my case I want to define a property called start_date where I will set a date. This date should be shown right after the title. How can i get this data inside the loop?

Viewing 6 replies - 1 through 6 (of 6 total)