CSS Overflow

Overflow Properties The overflow the property specifies whether to clip the content or to add scrollbars when the content of an element is too big to fit in the specified area. The overflow property has the following values: visible – Default. The overflow is not clipped. The content renders outside the element’s box hidden –… Continue reading CSS Overflow

Published
Categorized as Magento

How to create an integration Token in Magento 2 manually

Step 1: Go to System -> Integrations Menu. Step 2:  Click add new integration to open a new integration form. Step 3: Enter the integration name as the form in the above picture. Step 4: Grant access to the API resources. Step 5: Save to create a new consumer public & secret keys for integration. Step 6: Activate integration for creating an access token… Continue reading How to create an integration Token in Magento 2 manually

Published
Categorized as Magento

What is the difference between echo, print,var_dump, and print_r in PHP?

print  and  echo  are more or less the same; they are both language constructs that display strings. The differences are subtle:  print  has a return value of 1 so it can be used in expressions whereas  echo  has a  void  return type;  echo  can take multiple parameters, although such usage is rare; echo is slightly faster… Continue reading What is the difference between echo, print,var_dump, and print_r in PHP?

Published
Categorized as Magento

How To – Hide Arrows From Input Number

Remove Arrows/Spinners Example /* Chrome, Safari, Edge, Opera */input::-webkit-outer-spin-button,input::-webkit-inner-spin-button {  -webkit-appearance: none;  margin: 0;} /* Firefox */input[type=number] {  -moz-appearance: textfield;}

Published
Categorized as Magento

CSS parent selector :has()

There are many selectors in CSS, but the :hasselector is special. The CSS :has()pseudo-class selector is somewhat similar to :not(), also known as a structural pseudo-class selector, and is also used in CSS functions. Call it a dynamic pseudo-class function. It allows you to match elements more finely. The :has()pseudo-class would represent an element if… Continue reading CSS parent selector :has()

Published
Categorized as Magento

How to change PDF Invoice Logo, shipment logo in Magento 2

On the Admin sidebar, click Stores > Settings > Configuration. Then, look into the panel on the left, under Sales, click on Sales Open the Invoice and Packing Slip Design section. Then, do the following: To upload the Logo for PDF Print-outs, click Choose File. Choose the logo, then click Open To upload the Logo for HTML Print View, click Choose File. Choose the… Continue reading How to change PDF Invoice Logo, shipment logo in Magento 2

How To Create a Modal Popup

A modal is a dialog box/popup window that is displayed on top of the current page: Html code <h2>Modal Example</h2> <!– Trigger/Open The Modal –> <button id=”myBtn”>Open Modal</button> <!– The Modal –> <div id=”myModal” class=”modal”> <!– Modal content –> <div class=”modal-content”> <span class=”close”>&times;</span> <p>Some text in the Modal..</p> </div> </div> Javascript code // Get the… Continue reading How To Create a Modal Popup

Published
Categorized as Magento