Forum Replies Created
-
AuthorPosts
-
Jamie
ParticipantAhhhh Ive solved it!! I had the product set as a virtual product in Woocommerce. Ive changed this and all works. 🙂
Jamie
ParticipantI’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 🙁
Jamie
ParticipantHi Nico, How do I confirm the purchase in the back end? Thanks
Jamie
ParticipantHi 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. ThanksJamie
ParticipantHi Nico, I’ve tried a test purchase then looked into, Inventory and Stack Qty which still says 30. Any thoughts?
Jamie
ParticipantAh perfect, worked a treat. Thanks for your help
Jamie
ParticipantHi 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?
-
AuthorPosts
