Categories
Development WooCommerce Wordpress

Is it possible to extend the woocommerce products rest endpoint?

Is there a way to extend the products-object in the woocommerce rest api /wp-json/wc/v3/products, in a non-destructive way, so plugins that uses that endpoint, doesn’t break. I’ve currently tried create my own rest endpoint to replicate the object, but that is now missing alot of data ofc. I’ve also tried something like this, but it […]

Categories
AJAX Development Wordpress

Nonce not working when form is loaded via Ajax (WordPress)

I have a 2 step registration process. In the first step, you are asked to create an account. When this is done you submit the form and your account is created. This part is working great. However, once you’ve submitted the form, a new form will be loaded via ajax, where you are asked to […]

Categories
Development Wordpress

Eliminate render-blocking resources WordPress

I have Eliminate render-blocking resources as recommended by Google with a deferring code, but for reason the recommendation still keeps appearing on google suggestions. Any idea why? I cleared cache* And this is the code i have used for defer

Categories
Development Website Wordpress

Trying to restore wordpress website from a backup

I used to have a website with WordPress, I made a backup using a plugin I dont remeber. I want to restore my web to a different domain, I have tried several plugins but none of them work. Also i tried to restore it using phpmyadmin and mysql. here is the view of my backup […]

Categories
Development WooCommerce Wordpress

Getting Blank screen after importing and using WooCommerce API

I’m trying to use WooCommerce API in Ionic4 application after importing API in my home page I cannot see anything on output screen below is code: home.page.ts import { Component } from ‘@angular/core’; import * as WC from ‘@woocommerce/woocommerce-rest-api’; @Component({ selector: ‘app-home’, templateUrl: ‘home.page.html’, styleUrls: [‘home.page.scss’], }) export class HomePage { //Local Objet WooCommerce of […]

Categories
Development WooCommerce Wordpress

Woocommerce change products and quantity by url

I’m having some issues trying to change the number of products inside my cart. I would like to control that using a URL, like this: https://www.superpetcooler.com/?product_id=271&quantity=3 I’m able to retrieve product_id, but quantity wont work unless I set it maually. It’s pretty weird, but if I add a dynamic value to $quantity, it doesn’t work, […]

Categories
Development WooCommerce Wordpress

Woocommerce I want product to be available in specific months only

I want the product to be available in specific months only. I created advance custom field checkbox field to check the months in which product will be available, using “Display a custom message when a product is not purchassable in Woocommerce single pages“ answer code to one of my previous questions. Problem is that it […]

Categories
Development Wordpress

How to Fix a 403 Forbidden Error on Your WordPress Site

How to Fix a 403 Forbidden Error on Your WordPress Site

Categories
Bootstrap Development Wordpress

checkbox unusable – contact form 7 – WordPress – MDBootstrap

Guys I have a very simple but complex problem in the same way. I’m building my custom wordpress theme, using the MDB framework (Bootstrap material design). And when I go to implement my form via wordpress cf7, the two styles conflict. Generating a problem that the checkbox is displayed but cannot be used. I have […]

Categories
Development WooCommerce Wordpress

Woocommerce change price in Mini card based on selected price

I am using code from this stackoverflow question Add a select field that will change price in Woocommerce simple products everything works well except mini card which reflects the original price enter image description here image