Connect with us

WORDPRESS

WooCommerce Administrator with R | R-bloggers

Published

on

WooCommerce Administrator with R | R-bloggers

[This article was first published on R-posts.com, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)


Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t.

When working with WooCommerce, you have access to a powerful and robust product that offers a variety of benefits. Not only is it free and supported by a large community, but it also has strong SEO capabilities and a vast selection of plugins to enhance functionality. Additionally, the WooCommerce admin tool is user-friendly and easy to navigate, requiring minimal time and effort to learn. In fact, most individuals can become proficient in its use in just one to two hours.

However, there is a drawback. The main concept of WooCommerce is that it’s like managing a storefront. Regardless of the size of your business, whether it’s small or large, it’s still just a storefront. This means that it lacks serious back-office capabilities, and the only way to manage your products is one-by-one, similar to how you would rearrange products in a storefront window.

If you’re managing an e-shop professionally, simply rearranging the products one by one as in a shop window won’t suffice. To stay ahead of the competition, you need to provide your customers (or boss) with more advanced capabilities and perform tasks quickly.

While it’s true that there are plugins available for almost anything you can think of, they often come at a cost. Moreover, they can negatively impact the speed of your store and lead to compatibility issues with each other. If you end up using more than 3-4 plugins, errors are bound to occur, making your workflow inefficient.

Over the years, I have faced several challenges in managing e-shops and I have finally decided to overcome them. After putting in a lot of effort, I have written over 90 functions in R (6.400+ lines of code) and utilized the WooCommerce API to develop a highly robust solution for these problems.

The central concept is to create a duplicate of the essential features of the e-shop such as categories, tags, attributes, products, customers, and orders inside R-Studio,  utilize custom functions to perform filtering and CRUD operations through the REST API.

Let’s see another example. You need to have a large sale on white women’s shoes, sizes 40 and 41 EU, as they are no longer in fashion and you have a lot of stock. You expect that smaller sizes will sell eventually. Act fast, customers, as the grand sale for white women’s shoes in sizes 40 and 41 EU will only last for two weeks!

filter = list(categories = "Shoes", variations = c("Color : White", "Shoe size : 40|41"))

filtered <- filter_products(filter = filter, search.variations = TRUE)

pr_filtered <- filtered[1] %>% as.data.frame()  # parent products

var_filtered <-  filtered[2] %>% as.data.frame() # filtered variations

schema_name =create_schema("name, v_Color, v_Shoe size, regular_price, sale_price,  date_on_sale_to_gmt", template = F, echo = T)[[1]]

my_products <- populate_schema(schema_name, data = pr_filtered, var_df = var_filtered, values.from.parent = FALSE)

# adjust prices and offer date

my_products$sale_price = as.numeric(my_products$regular_price)*0.5 

my_products$date_on_sale_to_gmt = paste0(Sys.Date()+14,"T23:59:59")

my_products <- keep.columns(my_products, "sale_price, date_on_sale_to_gmt") %>%  

filter(parent > 0) # we want to update only the variations

my_products <- modify_variations_batch (my_products, add.elements = F)

These commands, which may seem complex now, become simple to use once you have the source code and analysis. With these commands, you can complete your work in a matter of minutes, depending on the number of products you have, without ever needing to access the WP-Admin interface.

In my book, I also address the challenge of managing metadata. The functions I provide enable you to add additional fields to your products, customers, and orders. For instance, you can add information such as barcodes, product costs, discount policies, sales representatives, and more. If you have brick-and-mortar stores, you can even create orders in batches and include metadata about your retail customers, such as age group, sex, new/old customer status, and so on. All of this data can be extracted in a single data frame for further analysis. It’s a powerful tool that you’ll surely find useful!

I am confident that by learning to use the functions and basic directions provided in the book, you will see a significant improvement in your e-shop management capabilities. As an e-shop manager, this will allow you to work more efficiently and productively.

If you are a business owner, you will gain a better understanding of the potential of your e-shop and be able to hire the appropriate personnel to manage it effectively.

Furthermore, if you are interested in learning R, this book provides a great opportunity to do so while tackling real-life problems.

Lastly, for college students and business executives, acquiring the skills and knowledge provided in this book can be valuable for potential employers.

I highly recommend checking out my book on Amazon, as it provides a comprehensive solution to common issues faced by e-shop managers and business owners.  Get started today and take your e-shop to the next level!

John Kamaras (www.jkamaras.com)


WooCommerce Administrator with R was first posted on April 10, 2023 at 4:48 pm.



Source link

Keep an eye on what we are doing
Be the first to get latest updates and exclusive content straight to your email inbox.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address

WORDPRESS

The WordPress Saga: Does Matt Mullenweg Want a Fork or Not?

Published

on

By

The WordPress Saga: Does Matt Mullenweg Want a Fork or Not?

A CEO is no longer expected to talk candidly about open source. Maybe business leaders have never expected open source to be anything but serve their business interests. Not every CEO takes advantage of open source to the degree we have seen in recent months. But no one is free of blame. Open source means different things to different people, and everyone uses it for their own purposes.

The colloquial use of open source gives companies like Meta the opportunity to use open source as they wish. Even high-ranking people in the open source community discount the problem. They say it’s OK. Open source is still moving forward. The kids don’t care — all they want to do is build models.

There is no playbook or good versus evil here. Many thoughtful people want to find a way to solve the mess we’ve seen surface in the WordPress saga of the past few weeks.

To recap, for those who haven’t been sufficiently online the past few days: Matt Mullenweg, co-creator of WordPress, the popular open source content management system, has been accusing WP Engine, a WordPress hosting provider, of violating WordPress’ trademarks and using its servers without compensation. The two organizations’ lawyers have exchanged cease-and-desist letters (more on those later). At the stroke of midnight UTC on Tuesday, WordPress blocked WP Engine’s access to its servers.

As this episode unravels, a fresh flow of ideas about open source has emerged. At least one CEO has established an important approach to solving issues like those we see with WordPress and WP Engine.

In a thoughtful post on his personal blog, Dries Buytaer, creator of Drupal, described the issue today as a makers-takers problem, where “creators of open source software (“Makers”) see their work being used by others, often service providers, who profit from it without contributing back in a meaningful or fair way (“Takers”).”

CEOs are on both sides of the perspective he details. He knows the people involved and has a solution that makes sense for the Drupal community. He calls it a “contributor credit” program.

Buytaer comes from the same world as Mullenweg. Drupal and WordPress are open source content management systems.

Still, open source is a tool for CEOs to use for profits, sometimes illusions, and leverage against commercial competitors. We’ve seen this with Meta CEO Mark Zuckerberg, who calls Llama, the company’s large language model, open source, which it is not.

And now we face someone who has long enjoyed a gleaming image in the open source community but now faces many questions about his intent.

Mullenweg: WP Engine Should Fork WordPress

Earlier in the week, we interviewed Mullenweg, who said WP Engine should fork WordPress.

“I think a fork would be amazing,” he told TNS. “They should fork WordPress, because what they offer is not actually WordPress. They call it WordPress, but they really screw it up.”

Mullenweg now wants to own a chunk of WP Engine, and he’s using his bully pulpit to pound away until he gets what he wants. He’s called WP Engine “a cancer.” He openly rails about the WP Engine executive team and Silver Lake, the private equity firm that has invested in it, using tactics we’ve become far too accustomed to from all sorts, who we don’t have to name here.

It’s a victim tactic. Mullenweg and Automattic, his holding company, talk like they are the victims of an evil plan, rooted in trademark violations. Following the victim’s logic, Mullenweg has to attack. He and his team have to block WP Engine from the WordPress servers.

Now comes the news from The Verge that WordPress demanded 8% of WP Engine revenues each month in exchange for being considered a contributor to the WordPress open source project. That would also mean WP Engine could not fork WordPress, but it would allow WP Engine to use the trademark.

The Verge:

“[C]hoosing to contribute 8 percent to WP Engine employees would give WordPress.org and Automattic ‘full audit rights’ and “access to employee records and time-tracking” at the company. The agreement also comes with a ban on ‘forking or modifying’ Automattic’s software, including plug-ins and extensions like WooCommerce.”

This raises questions about Mullenweg’s hearty support for a WP Engine fork. For perspective, WP Engine competes with Automattic. Just be clear on that one.

Mullenweg has made it confusing for almost everyone involved. There are huge supporters who want WordPress to survive, and there are end users who don’t have any clue about open source or even that their sites run on WordPress servers.

WP Engine, on the other hand, has its own issues. It does not give much in return for using WordPress. The company, under CEO Heather Brunner and founder Jason Cohen, uses the WordPress name. They call it fair use.

Further, WP Engine uses the work invested by the WordPress community into the service without the engineering overhead required if it had to maintain its own fork, which would cost millions and take quite some time to develop — a year, two, three?

What drama. If you are hearing about this for the first time, Mullenweg, who created the web content management system WordPress, has been relentless with his attacks on WP Engine for what he claims are trademark violations. It came to a head at WordCamp in Portland earlier in September when Mullenweg called WP Engine “a cancer” on the community.

On Sept. 23, attorneys sent a cease-and-desist letter to WP Engine on behalf of Mullenweg’s holding company Automattic and WooCommerce. Among its demands: that WP Engine stop all unauthorized use of WordPress’s trademarks and “provide an accounting of all profits from the service offerings that have made unauthorized use of our Client’s intellectual property.”

The letter suggested that “even a mere 8% royalty on WP Engine’s $400+ million in annual revenue equates to more than $32 million in annual lost licensing revenue for our Client.”

On Sept. 25, in lieu of action by WP Engine, Mullenweg blocked WP Engine’s access to the WordPress servers. He then gave a reprieve on Sept. 27 after users contacted him. Mullenweg said users thought they were paying WordPress, not WP Engine.

“They thought they were paying me, to be honest, that’s why they were pissed off,” Mullenweg said. “And so I was like, ‘Oops, OK, we’ll turn it back on.’“

WordPress blocked WP Engine’s access to its servers Tuesday at UTC 00:00.

The odd thing: no sign of trouble so far from WP Engine users; a WP Engine spokesperson declined to comment when contacted by TNS about whether the company had heard from customers having problems. WP Engine must have set up the mirrors and all to WordPress.org. How that affects performance and the rest is still not understood.

Sources of Conflict

In our interview, Mullenweg said users now hopefully understand that they are paying WP Engine, which does not pay WordPress for auto updates and everything else WordPress provides. Users, he argued, should be mad at WP Engine, not him and his team, who run the servers. Again, Mullenweg expresses that he and his team are the victims.

WP Engine is simply not responding, Mullenweg said, except through a cease-and-desist letter its attorneys sent Automattic on Sept. 23 after his repeated attacks.

The letter sent on WP Engine’s behalf reads in part, “Mr. Mullenweg’s covert demand that WP Engine hand over tens of millions to his for-profit company Automattic, while publicly masquerading as an altruistic protector of the WordPress community, is disgraceful.  WP Engine will not accede to these unconscionable demands, which not only harm WP Engine and its employees but also threaten the entire WordPress community.”

WP Engine did not answer The New Stack’s question about forking WordPress, but a company spokesperson did have choice words about Automattic’s licensing demands.

“We, like the rest of the WordPress community, use the WordPress mark to describe our business. Automattic’s suggestion that WP Engine needs a license to do that is simply wrong, and reflects a misunderstanding of trademark law. To moot its claimed concerns, we have eliminated the few examples Automattic gave in its Sept. 23 letter to us.”

For example, WP Engine has made some minor changes, namely changing WordPress to WordPress1 and WooCommerce1 on the site’s front page.

What About the Community?

Overall, users had almost no warning that their sites would be disrupted. This is an odd way to treat users, especially when they are such huge fans of your platform.

Here’s where open source becomes a problem for users. Most people do not know how they get the updates to their CMS. But once their site stopped working, they became entangled in a battle between Mullenweg and WP Engine.

Meanwhile, most users are just trying to keep their sites working.

 

Post by @alexelnaugh

View on Threads

 

Amidst the controversy, Mullenweg acknowledged he could have done better in reaching out to the community.

“To be fair, I have not been the best at public relations or publishing things,” he told TNS. “That’s why we try to be very clear at UTC 00, Oct. 1 … at this exact time, their network, WP Engine servers will no longer be able to access our networks.”

But a fork? The cost to set up the servers, the network, the load balancers, on and on, would cost millions and could take years. At its peak, WordPress serves 30,000 requests per second and 40% of the entire Web, according to Mullenweg.

Users have an option, he said. They can move to a different hosting provider. He mentioned Bluehost and his own company, WordPress.com, as two options.

Open Source Faces a Hurricane

There has been confusion about open source AI and server-side public licenses. Now, we’ve got the WordPress debacle. Oh, and there’s talk about Oracle owning the JavaScript trademark. The fun never ends.

But people are working on the problem, particularly the single point of failure issue that has become more apparent since WP Engine’s servers were cut off.

Here’s a thread worth reading from Reddit, about how to solve the problem of a single point of truth. The problem is a severe one, but maybe a fork is not the answer. Instead, perhaps it’s a way to solve matters that can easily happen if sites aren’t updated:

The vulnerability should be apparent: if WordPress.org goes down for any reason, millions of sites stop updating. A coordinated attack (zero-day implementation coupled with a DDoS attack that prevents updates from going out from zero-day) could be a disaster the world over. And, if the Foundation ever decided to get out of the update business, or ran into financial difficulty, or Matt decides to retire to Aruba and quit WordPress entirely — whatever the case may be — there’s no Plan B.

So, the community needs a plan B — and maybe that’s most important. Stop the bickering. Instead, look for ways to modernize the WordPress infrastructure so users don’t get entangled in corporate wars that use open source as a proxy to fight battles that leave casualties scattered across the web.

Group Created with Sketch.



Source link

Keep an eye on what we are doing
Be the first to get latest updates and exclusive content straight to your email inbox.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
Continue Reading

WORDPRESS

Automattic demanded web host pay $32M annually for using WordPress trademark

Published

on

By

Automattic demanded web host pay $32M annually for using WordPress trademark

“WPE’s nominative uses of those marks to refer to the open-source software platform and plugin used for its clients’ websites are fair uses under settled trademark law, and they are consistent with WordPress’ own guidelines and the practices of nearly all businesses in this space,” the lawsuit said.

Mullenweg told Ars that “we had numerous meetings with WPE over the past 20 months, including a previous term sheet that was delivered in July. The term sheet was meant to be simple, and if they had agreed to negotiate it we could have, but they refused to even take a call with me, so we called their bluff.” Automattic also published a timeline of meetings and calls between the two companies going back to 2023.

Mullenweg also said, “Automattic had the commercial rights to the WordPress trademark and could sub-license, hence why the payment should go to Automattic for commercial use of the trademark. Also the term sheet covered the WooCommerce trademark, which they also abuse, and is 100 percent owned by Automattic.”

Automattic alleged “widespread unlicensed use”

Exhibit A in the lawsuit includes a letter to WP Engine CEO Heather Brunner from a trademark lawyer representing Automattic and a subsidiary, WooCommerce, which makes a plugin for WordPress.

“As you know, our Client owns all intellectual property rights globally in and to the world-famous WOOCOMMERCE and WOO trademarks; and the exclusive commercial rights from the WordPress Foundation to use, enforce, and sublicense the world-famous WORDPRESS trademark, among others, and all other associated intellectual property rights,” the letter said.

The letter alleged that “your blatant and widespread unlicensed use of our Client’s trademarks has infringed our Client’s rights and confused consumers into believing, falsely, that WP Engine is authorized, endorsed, or sponsored by, or otherwise affiliated or associated with, our Client.” It also alleged that “WP Engine’s entire business model is predicated on using our Client’s trademarks… to mislead consumers into believing there is an association between WP Engine and Automattic.”

Source link

Keep an eye on what we are doing
Be the first to get latest updates and exclusive content straight to your email inbox.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
Continue Reading

WORDPRESS

WP Engine sues WordPress co-creator Mullenweg and Automattic, alleging abuse of power

Published

on

By

stylized wordpress logo

Web hosting provider WP Engine has filed a lawsuit against Automattic, and WordPress co-founder Matt Mullenweg, accusing them of extortion and abuse of power. The lawsuit comes after nearly two weeks of tussling between Mullenweg, who is also CEO of Automattic, and WP Engine over trademark infringement and contributions to the open-source WordPress project.

WP Engine accused Automattic and Mullenweg of not keeping their promises to run WordPress open-source projects without any constraints and giving developers the freedom to build, run, modify and redistribute the software.

“Matt Mullenweg’s conduct over the last ten days has exposed significant conflicts of interest and governance issues that, if left unchecked, threaten to destroy that trust. WP Engine has no choice but to pursue these claims to protect its people, agency partners, customers, and the broader WordPress community,” the company said.

The case document, filed in a court in California, also accused Mullenweg of having a “long history of
obfuscating the true facts” about his control of WordPress Foundation and WordPress.org

The story so far

Mullenweg had criticized WP Engine for infringing WordPress and WooCommerce trademarks. He called them the “Cancer of WordPress” and also called out WP Engine’s private equity partner, Silver Lake, for not caring about the open-source community.

Later, WP Engine sent a cease-and-desist letter, asking Mullenweg and Automattic to withdraw these comments. Automattic then sent its own cease-and-desist, accusing WP Engine of infringing WordPress and WooCommerce trademarks.

Notably, Mullenweg banned WP Engine on September 25 from accessing WordPress.org resources, including plug-ins and themes, and preventing WP Engine customers from updating them. Two days later, Mullenweg provided a temporary reprieve and unblocked WP Engine until October 1.

On Wednesday, Automattic published a proposed seven-year term sheet that it had sent to WP Engine on September 20, asking the hosting company to pay 8% of its gross revenues per month as a royalty fee for using the WordPress and WooCommerce trademarks.

Alternatively, WP Engine was given the option to commit 8% by deploying employees to contribute to WordPress’s core features and functionalities, or a combination of both people hours and money.

WP Engine didn’t accept these terms, which included a probation on forking plugins and extensions from Automattic and WooCommerce.

You can contact this reporter at [email protected] or on Signal: @ivan.42

Source link

Keep an eye on what we are doing
Be the first to get latest updates and exclusive content straight to your email inbox.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
Continue Reading

Trending