random gift card using woocommerce - wordpress

for black friday i want to create a sort of lottery in my ecommerce website created with wordpress and woocommerce, when a user buys a product he will receive a code (gift card) and when he will write the code in the dedicated page he will see if he won or not (product or voucher)
I have searched in several plugins but what I find is gift card or promotional code, I want the user to be able to win or lose by using a random in the generated code

I do not know of any plugins that does this, but you should be able to make one yourself. You can use the thank you page of WooCommerce to display a random code and just create a coupon with that code in your functions file or in the plugin file :)

Related

How to link pricing table with affiliate product?

I have a pricing table on my home page that lists 3 nutrition plans. Each of these plans is actually an affiliate product. Currently, I've manually added the affiliate link to each of the buttons (which redirects to the affiliate website by clicking a button), without using woocomerce products.
I have another page called Plans in which I use the product grid widget from Elementor, which automatically adds my external products that are added to Woocomerce product list (links are the same as in the pricing table product list).
So here I got totally confused due to lack of my experience. Here are the problems:
I can't use some kind of grid on my homepage as well (for additional widget cost and design reasons), but I will need to edit 2 places if an affiliate link would change.
In addition to that, I'm not sure if WooCommerce will be able to
track which products sell the best because it's not actually
directly coupled, it's just a link. Or I'm wrong here and Woocomerce
will only look into the affiliate link?
I would be able to live with changing 2 places in the future, but I'm totally not sure about the second one.I tried to dig deep into that, but only found information with an actual products and not affiliate ones, which is not the case in my scenario.

Adding Extra Button to Divi WooCommerce Product Template

I am going to try to explain this best i can, because i have run out of ideas. My client is an author. Alot of her books have a variation ( Boy Character and Girl Character ). On her website, she is using woocommerce to direct her customers to a third party site for her digital books or to amazon for her physical books. The problem that im having is when i create two Divi product templates, one for the only digital books, and one for physical and digital books. When she changes the button link for one product page, it changes it for every product using that template. Is there anyway to stop this from happening. Here is an example of one product page https://positivelypreparedstories.com/product/im-going-to-get-my-vaccine/
Any help would be appreciated.
Thank you

How to show a widget only to customers who bought a product in WooCommerce (with Elementor)?

Here is what I am trying to do - a website with online courses using WooCommerce and Elementor. I want to have a page called "My Courses" where customers can see only the courses they've purchased.
I'm not using any LMS.
I will use the plugin Dynamic Conditions for Elementor to show or hide a widget.
I know that WooCommerce has a function to check if a user has bought a specific product.
I don't know how to make a connection between the two, though. That is my problem.
Dynamic Conditions uses Elementor's dynamic tags system to check against. How can I use the WC's function to check if the user bought the product and only if he/she did, then to show them the widget with the course page?
Thanks a lot for any answers with ideas or directions on how to solve this problem!
Using Dynamic.ooo you can benefit from "Visibility" extention (comes with Dynamic.ooo/ don't need seperate plugin installation) which allows you write your customized conditions (in PHP). I myself have not used the "Custom Condition" becuase I don't know much about PHP, but if you know the function and just need to connect them i think that'll do.

Conditionally delete fields from the payment page in Woocommerce

Good evening, I have a small problem with my website, I would need when you buy a product and select that the local pickup does not show some fields of the form such as province, postal address or city, if you select for example another shipment as free shipping if they appear. (I think it makes all the sense in the world and I think it's a mistake that it does not come pre-defined like this)
The website is made with Wordpress and Woocommerce, I have tried practically everything and there is no way to work, the functions that I have found here do not end up running any, I do not know if it depends on the theme (Flatsome) or the version of Woocommerce
Thank you very much for your time.
Greetings.

Is this possible on wordpress newsletter

Good day,
I need some advice if this is possible on wordpress? I have a classified site and I want to create a newsletter that would have multiple categories each category would just have a list of title that has links to the item page.
The hard part is I need a check box on the registration and user profile page that will enable them to select which category they want on their newsletter and uncheck which one they don’t need. The reason for this is the list on each category can be too many and users might not want to see listing about ex. community or announcement etc.
Another feature that I need is for paid listing to stay on the newsletter for the duration of its package and for free listing to only show the day it was posted even though it has 5 days to stay on the site
I am open to use any options like mailchimp, awebber etc. as long as it works
Ex.
Hot Deal <-Category
1.) New Arrival comfort footwear
Forsale <-Category
1.) Xbox one fresh inbox
2.) Ps4 brand new
Many thanks
There is a plugin
which will help you to make users subscribing to category.
That plugin lets a user subscribe and unsubscribe to posts within a certain category or categories.
Subscribers will recieve an e-mail with a link to the actual post.
And the post type may be anything like product or news etc ;)
But you may endup doing some customize coding to get what exactly you are looking for.

Resources