Using Raffle Ticket Generator V5 on Woo V8.7.0 I cannot use the recommended Order Data Storage feature but have to knock it back to WordPress Posts storage (legacy). Setting on Woo>>Settings>>Advanced>> Features.
I get the error message: “This plugin is incompatible with the enabled WooCommerce feature ‘High-Performance order storage’, it shouldn’t be activated.“
Will this be fixed soon?
]]>A WooCommerce checkout triggers a 500 error caused by this plugin as of v5.0. I don’t have access to an older version to do a spot check as to if the error was introduced with v5.0 (at least WPRollback shows no previous versions still published).
I have a full stack trace, but here’s the error:
PHP Fatal error: Uncaught TypeError: Unsupported operand types: string * int in .../wp-content/plugins/raffle-ticket-generator/raffle-ticket-generator.php:603
Since I can’t roll back I’m sunk not using the plugin until this is fixed. The 500 error returns on submitting an order, which blocks users from getting to the order completion page and then tricks them into re-submitting countless orders.
I’m going to be looking into the code myself to make a patch, but please fix ASAP.
Update: I patched line 603 by casting (get_post_meta( $item[‘product_id’], ‘_number_field’, true) as an int. So the resulting code is:
$no_of_tickets = ($item['qty']) * (int) (get_post_meta( $item['product_id'], '_number_field', true ));
It’s probably better to do an actual type check and then cast if necessary, but this appears to have squashed the bug for the moment.
]]>Hi.
Great plugin.
There is an issue around line 606 when plugin is enabled and customers buy non raffle ticket products. The order AND payment are created but the checkout returns an error as the wc-ajax call caused a 500 error.
I think you need to check if (get_post_meta( $item[‘product_id’], ‘_number_field’, true ) actually returns a value before doing the calculation.
$no_of_tickets = ($item['qty']) * (get_post_meta( $item['product_id'], '_number_field', true ));
// change to
$product_no_of_tickets = get_post_meta( $item['product_id'], '_number_field', true );
if($product_no_of_tickets > 0){
$no_of_tickets = ($item['qty']) * $product_no_of_tickets;
....
}
Works fine on php 7.4 as it is a bit more forgiving than 8
]]>Hi
can i achive this with any of your version?
Silver
3 entries/tickets subscription
Forumla will be
Base entries* current subscription month
its means
first month of subscriptio use will get 3*1= 3 unique ticket
second month of subscription 3.*2= 6 unique tickets
3rd month 3*3=9 unique ticket for withdraw
We will use stripe as a payment gateway
Let me know if any query we can schedule call
Thank you ??
]]>I am selling tickets in blocks e.g. blocks of 5, 10 or 20 to allow me to offer an extra 1 or 2 tickets free for some blocks. So each block is a separate product. From the View Customers’ Ticket Numbers screen I would like to be able to export all ticket numbers as a CSV but I see that each block (or product) has to be exported separately. Is there a way to export all the ticket numbers as a single CSV regardless of the product name?
]]>Hello there,
I am wondering if it possible to send the generated raffle ticket ID via SMS? I am using woocommerce Twilio SMS plugin, and just thought it would be great if there is a way to send an SMS with the raffle ticket number. And if there is a variable for that, what it is. Thank you for this plugin!
]]>Hello,
we started a mixed raffle with Online and Offline Raffles.
Is there a way to import the Offline Raffle Numbers, so we can use the “Select winners” function ? Or at least to sonehow add it manually into the database ?
Best regards,
Stefan
Hello!
I have just purchased and installed the Raffle Silver plugin, but I’m getting the following error message in the Raffle Settings page:
Warning: Use of undefined constant RTG_GLD_DOMAIN – assumed ‘RTG_GLD_DOMAIN’ (this will throw an Error in a future version of PHP) in /home/storage/4/7a/36/rifamatheus1/public_html/wp-content/plugins/raffle-ticket-generator-silver/includes/functions/raffle-categories-option-1.php on line 67
No raffles are showing on the list, even though I’ve already created a product and configured it as a Raffle.
Any help would be greatly appreciated.
]]>This message appears in my dashboard when I activate the plugin.
]]>Warning: Undefined array key “page” in C:\xampp\htdocs\paroquia\wp-content\plugins\raffle-ticket-generator\raffle-ticket-generator.php on line 61
hi ,
I am using the free version and have a problem. When a person buys a ticket and pays by Paypal no numbers are generated.
I validated the customer’s payment via paypal and confirmed the purchase in my woocomerce.
when I look in Tickets Information there is no information.
When customers pay through Stripe I don’t have this problem.
Do you have an idea?
cordialy
The plugin worked just fine, so was time to go live to a real website, After migration from the test site to the live site, the Raffle option is not there, and the raffle activation setting isnt there on the left menu. So i went to the plugins, and clicked on Settings, i get an error “Sorry, you are not allowed to access this page”.
I tried all possibilities, deleted the license. Regenerated new license, nothing helped. Tried a fresh install on this live website, and installed Woocommerce and WPRaffle Silver, it works just fine. So i go and re-upload my site again, and falling at the same issue.
I did backup and uploaded website manually.
Backed up and uploaded website using Plugins like All in One
Deleted and re-installed the plugin manually and within WP
Deleted all of WPraffle references in the Database at least that I can find. Still the same issue.
Still no raffle options or anything related to raffle on the side menu, the only place I can see raffle is the Plugin page and thats about it.
]]>Hey there,
I just installed to check out your plugin but I’m getting an uncaught jQuery, accordion is not a function. It’s breaking some of the WP backend.
]]>WP Raffle ticket generator does not work! I have opened 3 tickets with them to get sorted and they still haven’t. WP have sent all the logs / info and still not working. The raffle does not allow the questions to work (paid for platinum) keeps dropping out – stopping people from allowing it to work, knocked the home page down and still waiting for a response some 2/3 days later!
]]>Hi! I really like the plugin and it works at generating tickets with our website Freedomthroughfriendship.org. However, as mentioned, whenever I activate this plugin it seems to cause the appearance> customize page to break. Instead of the normal page with a website preview on the right and menu on the left, the top of the menu prompts me to type in a URL and the webpage preview on the right is blank. Also, there are no “customize” menu options except “widgets” which once clicked leads no-where. We were excited to use your plugin and it would have saved a lot of headaches that we had with a past raffle. Not sure if any of this will be relevant but we are using WordPress 5.6 with Woocommerce 4.7.1 and a Genesis Theme called Anchored Theme. Thanks for making this plugin which has so much potential! Hopefully, we can figure out a fix so we can get bronze up and running and consider upgrading in the future.
]]>I have the bronze version of your code and jQuery Migrate is showing multiple errors. As this is a free plugin are you planning an update?
An example
wp-content/plugins/raffle-ticket-generator/includes/js/jquery-ui.js:364:1: jQuery.expr[‘:’] is deprecated; use jQuery.expr.pseudos
wp-content/plugins/raffle-ticket-generator/includes/js/jquery-ui.js:2617:15: jQuery.fn.mouseup() event shorthand is deprecated
wp-content/plugins/raffle-ticket-generator/includes/js/jquery-ui.js:1186:11: jQuery.isFunction() is deprecated
Hi there,
The ticket counter doesnt seem to work after a ticket is purchased.
It just stays at the max number of tickets and does not count down the quantity, please help.
kind regards
Luke Mersh
Hi there,
Ticket numbers are not being generated on the Platinum Vers. after people pay with credit card.
I have opened up several support tickets, but this issue still has not been resolved.
hi ,
when i install your plugin, wordpress tells me that the current version has not been tested and updated with my current wordpress versio.
will you update for wordpress 5.5.3 ?
Cordialy
]]>Please provide a response to support ticket #23390.
]]>Hi All,
I have problem with Raffle Ticket Generator Gold – Woocommerce.
When is plugin enable, I got an error in the console, and my navigation not working properly.
Uncaught TypeError: moment.tz is not a function
at HTMLDocument.<anonymous> (script.js?ver=5.4.2:5)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at Function.ready (jquery.js?ver=1.12.4-wp:2)
at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)
This is full code of my script.js file
jQuery(function() {
var nextYear_winner = moment.tz(jQuery('#time-remaining-winner').val(), jQuery('#timezone-winner').val());
jQuery('#time-winner').countdown(nextYear_winner.toDate(), function(event) {
var $this = jQuery(this).html(event.strftime(''
+ '<span>%-w</span> week%!w '
+ '<span>%-d</span> day%!d '
+ '<span>%H</span> hr '
+ '<span>%M</span> min '
+ '<span>%S</span> sec'));
if(event.elapsed) {
jQuery("#start").html('<p style="color:red; font-weight:bold">'+jQuery("#textstart").val()+'</p>');
jQuery('#winner').css({'opacity' : '1' });
jQuery(".newsticker-jcarousellite").jCarouselLite({
vertical: true,
hoverPause:false,
visible: 5,
auto:500,
speed:-300,
btnNext: ".next",
btnPrev: ".prev"
});
jQuery( ".prev" ).trigger( "click" );
jQuery('#time-winner').hide();
jQuery('#time-winner-selection').countdown(nextYear_winner.add(jQuery("#time").val()/2,jQuery("#formate").val()).toDate(), function(event) {
var $this = jQuery(this).html(event.strftime(''
+ '<span>%-w</span> week%!w '
+ '<span>%-d</span> day%!d '
+ '<span>%H</span> hr '
+ '<span>%M</span> min '
+ '<span>%S</span> sec'));
if(event.elapsed) {
jQuery(this).html('<p style="color:red; font-weight:bold">'+jQuery("#textend").val()+'</p>');
jQuery("#start").hide();
jQuery( ".next" ).trigger( "click" );
jQuery(".newsticker-jcarousellite").hide();
var winnertype = '';
for (i = 1; i <= jQuery("#numberofwinners").val(); i++) {
winnertype += ','+jQuery("#winnertype"+i).val();
}
jQuery.post(wpAjax.wpurl+"/wp-content/plugins/raffle-ticket-generator-gold/includes/ajax/ajax.php",
{
time: jQuery("#time-remaining-winner").val(),
cattid: jQuery("#catid").val(),
timezone:jQuery("#timezone-winner").val(),
winnertypes:winnertype
})
.done(function( data ) {
jQuery(".winner-selected").html(data);
});
jQuery(".winner-selected").show();
jQuery(this).unbind();
}
});
}
else {
jQuery(".winners").hide();
jQuery(".winner-selected").hide();
}
});
jQuery('.quantity input[name=quantity]').change(function() {
inputboxes = '';
ticket_numbers = jQuery('#no_of_tickets').val();
for (i = 1; i<=jQuery(this).val()*ticket_numbers; i++) {
inputboxes += '<label>Ticket Number '+i+' :</label><input type="text" value="" id ="manual_ticket_number_'+i+'" name="manual_ticket_number_'+i+'" onblur=check_manual_ticket_number("manual_ticket_number_'+i+'")><span></span><br />';
}
if (jQuery(this).val()*ticket_numbers > 3) {
inputboxes += '<br><input type="button" class="button alt" value="Fill all remaining tickets" style="float:right" onclick=fill_remaining("'+jQuery(this).val()*ticket_numbers+'")>';
}
jQuery('#manual').html(inputboxes);
});
var nextYear_start = moment.tz(jQuery('#time-start-input').val(), jQuery('#timezone-start').val());
var nextYear_remaining = moment.tz(jQuery('#time-remaining-input').val(), jQuery('#timezone-remaining').val());
jQuery('#time-remaining-start').countdown(nextYear_start.toDate(), function(event) {
var $this = jQuery(this).html(event.strftime(''
+ '<span>%-w</span> week%!w '
+ '<span>%-d</span> day%!d '
+ '<span>%H</span> hr '
+ '<span>%M</span> min '
+ '<span>%S</span> sec'));
if (event.elapsed){
jQuery(this).html('');
jQuery(".single_add_to_cart_button").show();
jQuery(".quantity").show();
jQuery("#start").hide();
jQuery("#time-remaining-start").hide();
jQuery("#end").show();
jQuery("#time-remaining").show();
}
else {
jQuery(".single_add_to_cart_button").hide();
jQuery(".quantity").hide();
jQuery("#end").hide();
jQuery("#time-remaining").hide();
}
});
jQuery('#time-remaining').countdown(nextYear_remaining.toDate(), function(event) {
var $this = jQuery(this).html(event.strftime(''
+ '<span>%-w</span> week%!w '
+ '<span>%-d</span> day%!d '
+ '<span>%H</span> hr '
+ '<span>%M</span> min '
+ '<span>%S</span> sec'));
if (event.elapsed){
jQuery(this).html('<p style="color:red; font-weight:bold">This Raffle has ended.</p>');
jQuery(".single_add_to_cart_button").hide();
jQuery(".quantity").hide();
jQuery("#end").hide();
jQuery("#start").hide();
jQuery("#time-remaining-start").hide();
}
});
jQuery( "#start" ).click(function() {
jQuery('#newsticker-demo').css({'opacity' : '1' });
jQuery('.winner-top').hide('slow');
});
jQuery( "#stop" ).click(function() {
jQuery('#newsticker-demo').hide('slow');
jQuery('#winner-name').show('slow');
});
jQuery(".newsticker-jcarousellite").jCarouselLite({
vertical: true,
hoverPause:true,
visible: 3,
auto:500,
speed:-400,
btnNext: ".next",
btnPrev: ".prev"
});
});
function manual_ticket_selection(id) {
if (id == "ticket_selection_automatically") {
jQuery('#manual input').removeAttr('required');
jQuery('#ticket_type').val('automatic');
jQuery('.quantity').show('slow');
jQuery('.single_add_to_cart_button').show('slow');
jQuery('#manual').hide('slow');
}
if (id == "ticket_selection_manual") {
jQuery('#manual input').attr('required', 'required');
jQuery('#ticket_type').val('manual');
jQuery('.quantity').hide('slow');
jQuery('.single_add_to_cart_button').hide('slow');
jQuery('#manual').show('slow');
}
}
function check_manual_ticket_number(id) {
if (jQuery('#'+id).val() != '') {
var duplicate = CheckDuplicates();
if (duplicate == true) {
jQuery('#'+id).val('');
alert(" Duplicates Not allowed");
}
jQuery.post(wpAjax.wpurl+"/wp-content/plugins/raffle-ticket-generator-gold/includes/ajax/manual_tickets_ajax.php",
{
cat_id: jQuery("#cat_id").val(),
tickets_designation: jQuery("#tickets_designation").val(),
ticket_prefix: jQuery("#ticket_prefix").val(),
ticket_number: jQuery('#'+id).val(),
manual_ticket_number_id:id
})
.done(function( data ) {
if (data == 'Not Available') {
alert(data+" Try adding some other number");
jQuery('#'+id).val('');
jQuery('#'+id).css('border','1px solid #ff0000');
jQuery('.quantity').hide('slow');
jQuery('.single_add_to_cart_button').hide('slow');
}
else {
jQuery('#'+id).css('border','1px solid green');
jQuery('.quantity').show('slow');
jQuery('.single_add_to_cart_button').show('slow');
}
});
}
}
function fill_remaining(number_of_tickets) {
j = 0;
empty_ids = '';
for(i=0;i<=number_of_tickets;i++) {
if (jQuery('#manual_ticket_number_'+i).val() == '') {
j++;
empty_ids += i+',';
}
}
jQuery.post(wpAjax.wpurl+"/wp-content/plugins/raffle-ticket-generator-gold/includes/ajax/put_tickets_ajax.php",
{
cat_id: jQuery("#cat_id").val(),
tickets_designation: jQuery("#tickets_designation").val(),
ticket_prefix: jQuery("#ticket_prefix").val(),
number_of_tickets_to_generate: j,
emptyids : empty_ids
})
.done(function( data ) {
var ticketnumber = data.split(",");
var emptyids = empty_ids.split(",");
for (k=0;k<=emptyids.length;k++) {
jQuery('#manual_ticket_number_'+emptyids[k]).val(ticketnumber[k]) ;
}
jQuery('.quantity').show('slow');
jQuery('.single_add_to_cart_button').show('slow');
});
}
function CheckDuplicates() {
var values = []; //Create array where we'll store values
jQuery(".duplicate").removeClass("duplicate"); //Clear all duplicates
var $inputs = jQuery('input[class="manual_inputs"]'); //Store all inputs
$inputs.each(function() { //Loop through the inputs
var v = this.value;
if (!v) return true; //If no value, skip this input
//If this value is a duplicate, get all inputs from our list that
//have this value, and mark them ALL as duplicates
if (values.includes(v)) $inputs.filter(function() { return this.value == v }).addClass("duplicate");
values.push(v); //Add the value to our array
});
return jQuery(".duplicate").length > 0;
}
]]>
I need to raffle multiple items at the same time, is this possible?
]]>Hi,
I want help you translate your plugin to Lithuanian language. How I can do this?
please support me
i want to buy plugin. firstly i want to know how to add ticket in variation product and how it is work?
please reply asap.
My client would like to know if we can set the price to zero?
We want to capture data for each raffle entry.
]]>Thank you for your efforts in supplying this free plugin. I’m testing the free version before I buy the pro. I’ve got the free version working (I can sell a ticket and it sends the client an email). In the client email, there is no ticket number. In the backend, I can look at the details on the order but there is no ticket number. In the backend, when I look at the “View Customer’s Ticket Numbers”, there are none.
I was using BACS as a payment option for testing. Even when I changed the status from “On Hold” to “Completed”, no ticket number was assigned. So I added “Check” as another payment option to test and bought another ticket. The email still had no ticket number. This time, when I looked at Orders, I noticed a button with 3 dots. I clicked on that button and got a second email with a ticket number assigned. It said “wpraffle-2019-01”.
Firstly, if I pay with PayPal, will I still have to click on the 3-dot button to get a ticket number assigned or is that an automatic process based on a successful payment?
Secondly, I don’t want the ticket number to have a prefix of “wpraffle-2019-“. That prefix is confusing. Can I change that prefix somewhere?
Finally, in your documentation you say that the numbers assigned begin at 100 and increment by 1 to 599. I would prefer that. Is there a way to force the numbers to start at 100?
Thank you in advance.
]]>The latest update now gets all products on the Customers Tickets Numbers page – not ideal.
I’m testing the plugin before buying Pro.
I had an Ajax conflict effecting another plugin and disabled this plugin to see if it was the problem. Disabling the plugin caused it to drop all information in the database table this plugin generates. Lucky I had a backup.
Hi
We’ve just launched a raffle (using the Bronze version as a test before purchasing) and it’s selling each ticket twice? Causing us a major issue.
Cheers
Sean
Hi,
I wanted to ask that will this plugin works with the woocommerce recurring/subscription plugin?
Here is my issue:
1) A user chooses how many tickets and clicks checkout and they are taken to the next page to checkout.
2) On this page they have the option of ‘Buy X tickets’ or Don’t miss a draw! (this setups the recurring tickets to buy them every time there is a draw)
3) Buy X tickets for every draw
Please let me know, if there is any possibility?
Kind regards
]]>/plugins/raffle-ticket-generator-gold/includes/functions/raffle-stock.php(1) : eval()’d code on line 55
any help with the above code would be wonderful
Many thanks
Adam
]]>How does the bronze version work to actually post the tickets on woo products already added? I don’t see it in posts, and the instruction state that it would be in products.
]]>