Here product is the table used to store the product details.Search keyword is the keyword that is used to check. for example
Author: Radhika R
How to compare equal condition in template file
This is helpful when we pass the value from javascript to the template and when need to compare a condition equal in the template file. Here class name is coming from javascript file.
How to prevent credit card in stripe payment
Stripe allows you to implement unique business logic so you can write fraud prevention rules specific to your business. Block: Rules that block a payment and reject it. Blocked payments aren’t evaluated against any review rules. Block Block rules specify that Stripe should always block a payment. If a payment matches the criteria in a block rule,… Continue reading How to prevent credit card in stripe payment
Proposal For display item name and stock count for out of stock items in checkout
Proposal Summary This proposal covers both the functional and UI development to Show the Product that is out of stock with the item name and quantity available on the checkout page for the SCA webstore Cleerline Technologies. Requirement Required to display the item name and quantity on hand when the error message appears in checkout page… Continue reading Proposal For display item name and stock count for out of stock items in checkout
Create payment intent using stripe
Curl curl https://api.stripe.com/v1/payment_intents \ -u sk_test_4eC39HqLyjWDarjtT1zdp7dc: \ -d amount=2000 \ -d currency=usd \ -d “payment_method_types[]”=card Creates a PaymentIntent object.After the PaymentIntent is created, attach a payment method and confirm to continue the payment. You can read more about the different payment flows available via the Payment Intents API here. When confirm=true is used during creation,… Continue reading Create payment intent using stripe
Write a stream in node js
Writing to a StreamCreate a js file named main.js with the following code − var fs = require(“fs”);var data = ‘Simply Easy Learning’; // Create a writable streamvar writerStream = fs.createWriteStream(‘output.txt’); // Write the data to stream with encoding to be utf8writerStream.write(data,’UTF8′); // Mark the end of filewriterStream.end(); // Handle stream events –> finish, and… Continue reading Write a stream in node js
Resolve Incorrect Delivery Address after an SCA Checkout
When processing checkout on SCA, there may be instances where shoppers with multiple addresses select a non-default address at checkout. After the checkout has been completed, sales orders generated on the back end still uses the default address of the customer. This may be due to the Shipping Estimator Preference on the website settings which… Continue reading Resolve Incorrect Delivery Address after an SCA Checkout
Commerce API Return Prices Excluded Tax
The Commerce API return incorrect prices after users log in. The Tax (GST/VAT) is intermittently being excluded to price in the Checkout page. The invalid address (Example: The address Country is not set.) is what causes the Commerce API to return prices that do not include the tax. Solutions to return prices included the Tax… Continue reading Commerce API Return Prices Excluded Tax
css tips
To change this, style the placeholder with the non-standard ::placeholder selector. Example .product-views-option-text-input::placeholder { font-family: ‘Poppins’; color: #000000; } To avoid the issue when clicking a blue hover in mobile an ipad devices.add these style for that coresponding class. -webkit-tap-highlight-color: transparent;outline: none;-ms-touch-action: manipulation;touch-action: manipulation;For example.footer-head {color: #000;font-size: 20px;font-weight: 600;font-family: ‘Poppins’;text-transform: capitalize;-webkit-tap-highlight-color: transparent;outline: none;-ms-touch-action: manipulation;touch-action: manipulation; }