Add a free product to cart when cart total price is over $40.
Well yes, there is a quick solution for this and that is to buy an addon. But I’m not here to convince you to do that. Rather we will be building it from scratch. So to begin with,
Take a moment and think about how are you going to achieve this, how am I;
Free products can be tackled in two ways,
As the name itself says this is a component-based styling tool. It is powered by tagged templates and allows to create react components with styles.
npm install -save styled-components
import styled from 'styled-components’
I’ll show this with an example. Let's style our website header section
<Header> <MenuWrapper> <MenuItem>Home</MenuItem> <MenuItem>About</MenuItem> <MenuItem>Contact</MenuItem> </MenuWrapper> <Logo>Site Name</Logo> <HeaderRight>…
WordPress 4.7 or higher
npm install -g create-react-appon your terminal if you have not installed globally
create-react-app wordpress-react-appto install react
Open the project in your editor. Create a new folder named components inside the src folder.
Create a file GetData.js inside components. Lets create a constant named appUrl to add the WordPress URL+ JSON path.
const appUrl = “http://dev.wpreactbackend.com/wp-json/wp/v2/";
For this example I’ll be listing the posts I’ve got on my WordPress. …
So that was a huge change going from Windows to Ubuntu. Being a Windows user from the day one the switch to command base OS is definitely a thinker.
If you are like me, I’m sure you must be going through the pain of setting up the development environment. Believe me it gets way easier
One major issue I came across was when installing MySQL. The installation process was a piece of cake and after completion I felt something was missing. YES it did not ask me to add user and password.
The root user used auth_socket to authenticate in…
Wanting to try BigCommerce?
BigCommerce is a scalable ecommerce platform which allows you to create an online store.
They allow you a generous 15 days free trial for you to try out now. 😋
Are you ready? 🚀
GetResponse is an email marketing platform. They provide several ways to integrate with your website. Enables to create custom fields through GetResponse Dashboard. Its a simple implementation with their provided out of the box services.
In my case I had to integrate it with my website register form.
I had to use cURL for accessing with the provided authentication as browsers do not allow CORS(Cross Origin Resource Sharing).
$authorization = “X-Auth-Token: api-key xxxx xxxx xxxx xxxx xxxx xxxx xxxx”;$ch = curl_init();$name = $_POST[“name”];
$email = $_POST[“email”];$data = array ( ‘name’ => $name, ‘email’ => $email…
There are two methods to install Magento 2 in to your local machine
Download through the official website
Or from gitHub
Also if you are using git, then clone magento 2 files using command line or any terminal. Create a folder inside the www folder (wamp>www) and run
git clone https://github.com/magento/magento2.git.
Open phpmyadmin and create a database with the project name
Go to : wamp64\bin\apache\apache2.4.18\conf\extra
<VirtualHost *:80> ServerName Set…