Remote Web Development Job In IT And Programming

WooCommerce Snippet - Show content, when specific Woo product was bought (productid)

Find more Web Development remote jobs posted recently Worldwide

Hi we are using Wordpress with Woocommerce.

I want to display a button based on conditional logic in our private member area. The logic has to check if the logged in user has purchased OR not purchased a specific product (by its ID).

Heres the logic:
Check for products the current user has bought (return product_ids and save them for processing)

If no products bought before (no product_ids found) -> display button1

If product_id contains number 1 or 2 or 3 -> display button2
Elseif product_idcontains number 4 or 5 -> display button3
Elseif product_id contains number 6 -> display button4
Else: dont show any button!

I need a shortcode for this e.g. [productpromotion]. Well input the shortcode in a widget or on a page / blog post. This is where the conditional logic (as explained above) will be triggered.

When you apply, Ill send you a snippet, that you might need to do this task faster.

Thanks in advance.
About the recuiter
Member since May 20, 2018
Ajay Kumar
from Ohio, United States

Skills & Expertise Required

software development Website Development 

Open for hiringApply before - Oct 5, 2024

Work from Anywhere

40 hrs / week

Hourly Type

Remote Job

$9.57

Cost

Offer to work on this project closes in 8 days!
Are you interested in this Opportunity?

Looking for help? Checkout our video tutorial
How to search and apply for jobs

How to apply? Do you have more questions about the Job?
See frequently asked questions

Similar Projects

Design Distributed tracing Ngnix

We use Nginx reverse proxy to our services consumed by customer. We started looking into distributed tracing for each request we send or each request we receive and log them in elastic search and query them using Kibana.

My questions are.read more

Developer needed to make R&D in 3D modelling area using very low cost hardware .

the Developer has to create a client/server solution for capturing real time 3D modelling using hardware like mobile phones.
The main goal is to create a platform as a service build on a cloud solution.
therefore we are looking for an innovat...read more

FIX Opencart tracking codes Facebook pixel, Google Analytics

We have 7 opencart shops to fix tracking codes such as
Facebook pixel tracking
Google analytics ecomerce tracking

Problems:
Add to cart event problem
(2x add to cart instead of 1x)
(neto price value instead bruto)
...read more

Setup DNS to resolve to our public ip address

We are setting up a mobile app that requires us to have a FQDN that resolves to our public facing ip address where our pbx is located. i have access to our cpanel but aside from that im not sure what all is needed.