Jamie

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Stock levels not going down when tickets sold #966878
    Jamie
    Participant

    Ahhhh Ive solved it!! I had the product set as a virtual product in Woocommerce. Ive changed this and all works. 🙂

    in reply to: Stock levels not going down when tickets sold #966876
    Jamie
    Participant

    I’ve added a plugin that auto sets the status to completed once the payment is received. Ive made 2 purchases from the front end and received emails and tickets confirming booking. The payment is taken and paid to paypal.

    Here is the code I use on the tickets.php file:

    $is_there_any_product_to_sell = true;
    } else {
    echo “<span class=’tickets_nostock’>” . esc_html__( ‘Out of stock!’, ‘tribe-wootickets’ ) . “</span>”;
    }
    echo “</td>”;

    echo “<td nowrap=’nowrap’ class=’tickets_name’>”;
    echo $ticket->name;
    echo “</td>”;

    echo “<td class=’tickets_price’>”;
    echo $this->get_price_html( $product );
    echo “</td>”;

    echo “<td class=’tickets_description’>”;
    echo $ticket->description;
    echo “</td>”;

    echo “<td nowrap=’nowrap’ class=’tickets_stock’>”;
    echo $ticket->stock . ‘ seats left’;
    echo “</td>”;

    echo “</tr>”;
    }

    Does this look correct to you?

    Not sure why the stock level is still at 30 🙁

    in reply to: Stock levels not going down when tickets sold #966867
    Jamie
    Participant

    Hi Nico, How do I confirm the purchase in the back end? Thanks

    in reply to: Stock levels not going down when tickets sold #966598
    Jamie
    Participant

    Hi Nico, Yep Im making the orders through the front end to simulate a visitor and it stays on 30 remaining.
    Is this something you’d be able to look at for me if I sent you my log in details, Any help would be much appreciated. Thanks

    in reply to: Stock levels not going down when tickets sold #966371
    Jamie
    Participant

    Hi Nico, I’ve tried a test purchase then looked into, Inventory and Stack Qty which still says 30. Any thoughts?

    in reply to: woocommerce tickets #965408
    Jamie
    Participant

    Ah perfect, worked a treat. Thanks for your help

    in reply to: woocommerce tickets #965348
    Jamie
    Participant

    Hi Geoff, I followed those instructions adding the code and it gives me an error:

    “There is a syntax error on line 65. Code hinting may not work until you fix this error”

    Here is the code I added…

    $is_there_any_product_to_sell = true;
    } else {
    echo “<span class=’tickets_nostock’>” . esc_html__( ‘Out of stock!’, ‘tribe-wootickets’ ) . “</span>”;
    }
    echo “</td>”;

    echo “<td nowrap=’nowrap’ class=’tickets_name’>”;
    echo $ticket->name;
    echo “</td>”;

    echo “<td nowrap=’nowrap’ class=’tickets_stock’>”;
    echo $ticket->stock . ‘ left’;
    echo “</td>”;

    echo “<td class=’tickets_price’>”;
    echo $this->get_price_html( $product );
    echo “</td>”;

    echo “<td class=’tickets_description’>”;
    echo $ticket->description;
    echo “</td>”;

    echo “</tr>”;
    }

    Do you have any advice?

Viewing 7 posts - 1 through 7 (of 7 total)