Woocommerce multi vendors vouchers - woocommerce

I want to create a voucher for every vendor on my website, so the vendor can print it and give it to their customers so they can use it every time they order something from their stores until he uses all the amount that was put for him?
for example, if he has 50$ in his voucher and made an order with 20 $ , he should be able to have another discount for 30$ the second time he will make an order untill he finishes his amount ?
is it available ?

Related

Are products unindexed after some time on Google Vision API Product Search?

I use Google Vision API Product Search for a while now and realized some entire product sets get unindexed after some time...
These are same product sets get indexed without error, but after some time if not queried, product sets get unindexed (their index time is reset to 1970-01-01T00:00:00Z).
If I query them after some days, I get a no product found response.
After being queried, the product set gets reindexed after an hour (1 or 2 cycles).
Is it a normal feature of the API? if so where can I read more about it?
The indexing is automatic. If your set has the 0 timestamp, it hasn't been indexed yet.
You could verify that you have added the products by listing all of them. If the product set has no images or missing one image, it won't be indexed.
The Product Search index of products is updated approximately every 30
minutes. When images are added or deleted, the change won't be
reflected in your Product Search responses until the index is next
updated.
Another option to make sure that indexing is completed successfully is to check the index time field of the product set.
The index time indicates the time at which the last index was. If this is increasing, that means it's still up to date.
You can see this document and more information about productSet.
Another possibility is that you’re hitting some type of limitation that affects the indexation, like quota limits.
I don’t have access into your project if this issue is affecting you drastically and persists, you could open a support case and a colleague will look deeply into your project to see if there is something wrong.

Aggregate events / goals per user

I would like to know if there's a way to display information based on how many (similar) goals or events were triggered by a unique user.
For instance, let's say I own amazon. For every product I sell, I trigger a 'Purchase' goal (by using an event).
I would like to know:
How many products does an average user buy, in multiple sessions, over a time span. for instance, how many products did an average user buy in the span of a month.
I would like to segment data by the amount of products bought by users. i.e. segmenting my data based on users that bought 0 products, 1-5 products, 6-10, products, and 11+ products.
Is there a way to do so?
You have to get custom dimension/metric in GA. Add a custom dimension 'product_quantity' and get actual number of products bought as metric value in the variable.
Once you get have it, you do calculation of total products divided by users or creating segments based on product_quantity dimension.
Find more info at https://support.google.com/analytics/answer/2709828?hl=en
It is easier with Google Tag Manager. Once you define custom dimension/metric, trigger may be completion of 'Purchase' goal or any event.

Additional payment on top of defined Plan in Stripe using asp.net

On Stripe is there any API where customer can pay additional charges along with the Plan amount within single transaction ?
Scenario is, total amount of charge is based on number of users. Means say 1 user has $100 need to charged and base plan amount is of $3000. While purchasing the license customer has to define number of users, say 5 (So 5*100=500) + 3000 (base plan amount) So total should be $3500 should pay within single transaction. number of users may varies. So how to code for Stripe for this scenario.
First, you would create your $100 plan and set the quantity depending on the number of users your customer currently has so that with a quantity of 5 he ends up paying $500. You can update the quantity and let Stripe handle the proration.
You would then use Invoice Items to change the amount you want to charge your customer on each billing cycle. Invoice items get added automatically to the customer's next invoice so that you could charge $3000 + $500 for example.
You would then have to use Stripe's webhooks to be notified about events that happen in your Stripe account. That way you can listen for the invoice.created event and create an invoice item for this invoice to change the amount billed to this customer.
In the end, here are the steps you'd follow:
Create a customer in Stripe with the card token.
Create the first $3000 Invoice Item for the first invoice since that one is always closed by default.
Create the subscription to the $100 monthly plan with the expected quantity. This will automatically bill the Invoice Item created before.
Each month, listen for the invoice.created event and create a new Invoice Item for $3000.
Another solution which some people find easier to build would be to use the quantity parameter of the subscription to charge a different amount to each customer. You would create a $1 monthly plan for example and set the quantity to 3100 for customers who pay only for one user ($3100) or 3500 for the ones with 5 users ($3500). This is also detailed in the subscriptions guide.

Woocommerce Custom Delivary options

I want 2 functions in woocomerce:
1. Click and collect: This is where the customers puts in an order and comes to the store to collect it. The customer should be able to set approx time they want order to be ready for. The store should be able to set minimum time to have order ready.
With click and collect they have 16 stores so person should be able to choose store to collect and then receive a receipt for pick up at the store. They pay for goods on the website.
Each store needs to be able to receive the order either by having a dashboard or by email system.
Delivery: They will also have a delivery service where people can order larger quantities for delivery to their home or their business or event. this is more conventional eCommerce transaction.
Your best bet to add multiple locations for collection is a plugin like Local Pickup Plus. While it's certainly possible to add this functionality in yourself I'd recommend just buying a plugin. Having built something similar I came to the conclusion that -- accounting for my hourly rate -- I had saved myself no money whatsoever by building it from scratch.
i have created a advanced local delivery plugin, check this out a link

Ubercart - Chosen Delivery Date to limit Shipping Options?

On the check out page I need users to choose a delivery date. Their needs to be multiple shipping options (that cost different amounts), but these are restricted based on what day you choose. Alternately if you choose a shipping method first, this will restrict what days you can choose for delivery.
One shipping option is ‘saturday’, and the delivery date must be a saturday.
Another shipping option is ‘next day’, the delivery must be the next day, and the order must be made before 2pm.
The final option is 'standard', which has no limitations except it cant be delivered on a saturday, and the delivery cant be the next day.
Also, I need to be able to restrict dates for delivery for all shipping options, as deliveries wont be made on bank holidays or the day after.
Im really struggling to do this so Id appreciate any pointers. If I can only achieve some of what I need that may be ok as a compromise.
Thanks
This sounds like a perfect case for using a calendar table to identify which dates are actually holidays. While I don't have specific experience with Ubercart, I've used calendar tables in a number of different solutions, and even wrote up a blog entry that details how to create and use a calendar table with a MySQL server. It's quite long, so rather than post the whole thing here, I'll just point you to the actual entry at http://www.brianshowalter.com/calendar_tables.

Resources