Code

Discussion on WooCommerce PrePurchase

Discussion on WooCommerce PrePurchase

Cart 641 sales

codemypain supports this item

Supported

This author's response time can be up to 5 business days.

172 comments found.

There seems to be a bug with the preorder items. after selecting a payment method (PayPal in this case), when I am taken to the paypal page, if I click back (decided to make a change or not to go with the order) the item is removed from cart and I get a preorder confirmation (with no payment :-|).

Please advise

Thank you

Hi, Are you able to use this extension to set a number of pre-orders to be reached for the product to be available instead of a date? Example, we need 200 pre-orders to reduce production cost before we can make a product available, is that possible? Regards, Bastien

Sorry just read comment above, bummer :(

Didn’t checked the notification on reply checkbox, please see next comment.

I want instead of an availability date an available when certain amount of orders are hit. Is this something i can easily do or edit into you plugin?

You will need to hire a programmer to have that edit done to the plugin.

Is it possible to format the “availability date” as MM/DD/YYYY? Thanks

Any way to do this?

I am trying to launch tomorrow. Could you please advise? Thanks!

On the front-end,it’s possible. Edit the plugin source code.

Hi! I have 3 questions regarding the plugin.

1. Is there any way to customize the 3 emails to use an HTML template or HTML? 2. Is it possible to enable both payment methods that would show for example radio buttons on the checkout page, so the customer can decide if they want to pay now and lock-in the current price (Upfront payment), or use “Charge me later”?

Thanks for your help!

It’s possible to have all the payment options on the checkout page. You’ll need to edit the code.

Hello,

Can this plugin also set a pre order fee? (small amount of money that people need to pay upfront, so they can join the pre order list?)

No it doesn’t.

If we would pay you, can this be added as a customization?

It can be added for you. Please email for a quote.

The demo page does not work

i want minimum 10 members to buy a product, then only, i will make it, if until a date, 10 members does not order (actually pre-order) the product will be produced and their money will be returned

is it possible to do this with your plugin?

You’ll have to edit the plugin a bit to accomplish that.

would you do that, or ? in that case, every time, you update your plugin, i have to edit this plugin again? is it easy or complex experts work ?

No not currently thinking of adding that to the plugin.

Your demo page says (Not Found The requested URL /shop/pre-order-product/ was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at demo.codemypain.com Port 80)

Working on the demo site. Will fix it soon.

Hi. Is it possible to have pre purchased items in the cart at the same time as normal items?

I tried your demo site but it doesn’t work

Luke

Demo site is currently down. I’m trying to move to a better/secured server.
Prepurchaseable items can not be in he same cart as normal items.

Hi, I have just purchased Woocommerce PrePurchase and I would like to know if it is possible to limit the number or pre-orders that can be done on an item? If so, can you please advise how. Thank you, Bec

Hi
You can do that by setting the number of items in stock for each product. On the the product tab,click on “Inventory”.

I am sad to say that I regret buying and using this plugin.

I have found a bug 7 days ago. Still no Answer from the developer. I have reported performance issues. And the developer has not returned with any help at all.

If have written comments, and used the official support system for the author, and no Answers are yet given.

The problem is that I use this plugin at the moment so I can’t take it down, before my product is available for sale, and I have to spend time fixing the problems with this plugin instead of finishing my product.

So do not buy this plugin. Go for the official one from woothemes instead. It costs 129$, but you will at least get support.

I did answered some of your multiple questions and provided support the best way I could. You’re pointing out some issues that are not bugs as bugs which is very wrong. Cron jobs requires server resources and that is a thing you might be aware of. If your server can not handle lots of cron jobs,you might try reducing the number of preorder products/orders . There’s no way a ‘pre-order’ will work without cron.

I am sorry Scopes, but you did not answer. I have not received any answer on the two times I have used the official support system, and the only reply I got from you was on a comment where you wrote”the plugin uses WP_CRON” which is not really useful since I replied that WP_CRON is disabled on the wordpress site and I use external CRON on my server, which is much faster since it is performed external and not a every page load.

To that you did not reply.

Yes it may not be a bug that I reported, but I did not get any answer in 7 days, where the plugin was live.

7 days?

All I had to do was to write a comment warning others not to buy the plugin, then I got some attention. But 7 days for getting back to me on a Bug report. It took you minutes after I raised the concerns, and warned others not to buy the plugin.

I still ned to know how one customer managed to create a preorder, and a normal order in the same purchase process, this is why I looked into the source code in the first place and why I reported the bug, which turned out not to be a bug after all.

And I still need to know how to handle the situation when the availability date is met, since the email that is send to my customers is in English and I am unable to translate it, because it is not configurable in the plugin but is hardcoded in the source code.

And I still have to find the bottlenecks in the performance of the plugin, and I will.

It’s not possible for a pre-order product and a regular product to be in the same cart. I’m sure you must have tested the plugin and see that it’s not possible. Perhaps the client had the products in the cart before you marked the other as ‘pre-order’ .

Regarding the email,I supposed you could edit the source code and change the email but if you can’t do that then I might have to roll an update to address it. 3 different emails can be edited from the admin already.

I have BIG performance issues with this plugin in the WP-Admin

I have run a test using the P3-Profiler, and you can see the result on this screenshot.

https://dl.dropboxusercontent.com/u/3809836/prepurchase-performance.png

I’m sorry that you are having performance issues on your server but based on multiple tests I have done with the plugin I am yet to notice any of such issue. If you think session start is the main cause you can place a condition for the session to start using :

if(!isset($_SESSION) ) { session_start(); }

I think I have found a bug.

In the class-wc-gateway-pre-order.php at line 198 after payment is complete. $order->update_status( ‘wc-preorder’, __( ‘Payment to be made on availability date.’, ‘wpp’ ) );

The bug is the string of the order status ‘wc-preorder’ it is registered as ‘wc-pre-order’

So should this not be updated to wc-pre-order?

There is no way that is a bug please. The ID of the payment gateway is preorder
$this->id = ‘preorder’;

Thanks for finally getting back to me on the bug report. Glad to see that it is not a bug.

I have just realized that when your pre purchase products availability date is met. The product continues to be a pre purchaseable product.

I had imagined that it would turn to a normal product with normal payment gateways when the count down reaches zero…..

I have found another issue with the plugin. The Email that is send to the customer when the availability date is reached is not translatable.

It is hardcoded in english at line 551 in the woocommerce-prepurchase.php file

if( $c_time == $av_time ) { $hash = base64_encode("$customer->ID:$order->id"); //##availability date was reached send an email to customer to checkout and complete the order $checkout_link = home_url('/index.php?task=complete_preorder&hash='.$hash); $subject = sprintf(__('%s is available now'), $item['name']); $message = "Hello {$customer->first_name} {$customer->last_name}<br /><br />". "You prepurchased {$item['name']} from $blogname. The item is available and you are requested to make full payment ". "within $av_date to complete payment otherwise the order will be canceled after the deadline has expired.<br />". "<a href="\"$checkout_link\"">Pay now</a><br /><br />". "Regards<br />". "$blogname"; wp_mail($customer->user_email, $subject, $message, array('Content-type: text/html')); continue; }

Also the countdown and the availability date on the product page is hardcoded in english as well.

I think this email should be configurable in the plugin and not hardcoded.

I think I have found a bug.

In the class-wc-gateway-pre-order.php at line 198 after payment is complete.

$order->update_status( 'wc-preorder', __( 'Payment to be made on availability date.', 'wpp' ) );

The bug is the string of the order status ‘wc-preorder’ it is registered as ‘wc-pre-order’

So should this not be updated to wc-pre-order?

I have set up the plugin to authenticate upfront payments and process preorders via paypal. When I select Pre Order on the cart check out I am redirected to the pay pal order processing page. No transaction has been made at this step. However I am receiving the order confirmation email and a new order is created within orders yet no payment has been processed. How Can This be Corrected?

Not sure I understand what you mean but can you provide a temporary login so I can test it. You can email it via my profile page.

Hi, two questions please : - when the countdown is expired, possibility that it desactivate the possibility to order ? - when someone make a preorder, its take money from him for it ? i mean that he buy the product like a booking ? thanks

Hi. The admin can either configure it that the buyer pays during purchase or pay on availability date.

Hi scopes

Can it support variable products & WPML? Beside I checked your demo, no “charge me later” option on check out page.

Thanks

Charge me later is available,you need to select it in the admin. The plugin is fully localized.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey