BTemplates.com

Follow us

easyandfaster. Powered by Blogger.

Magento2 – Add custom price of Product when adding to cart

First create events.xml file in folder ‘EasyndFaster/Custom/etc/frontend’ and use event ‘checkout_cart_product_add_after’ .     ...

Labels

BTemplates.com

Blogroll

Weekly most viewed

Sunday, July 8, 2018

Commenting PHP Code


A comment is the portion of a program that exists only for the human reader and stripped out before displaying the programs result. There are two commenting formats in PHP:

Single-line comments: They are generally used for short explanations or notes relevant to the local code. Here are the examples of single line comments


Multi-lines comments: They are generally used to provide pseudocode algorithms and more detailed explanations when necessary. The multiline style of commenting is the same as in C. Here are the example of multi lines comments.


Sunday, June 17, 2018

Magento 2 Change fronetnd logo?




Magento 2.0

  • On the Admin sidebar, click on Stores. Then under Settings, choose Configuration.
  • In the panel on the left under General choose Design.
  • If you have multiple stores or views, set Store View in the upper-left corner to the view where the configuration applies. Then, clear the checkbox after each field so new values can be entered.
  • Expand the Header section. Then, do the following:

Magento 2.1

  • From Magento 2.1, this path was changed. It is located at Content > Configuration > Select your current theme > Header

Sunday, June 10, 2018

Hello World in PHP


In below is the code to write "Hello World" in php.


Hello World


  • Create "Helloworld" folder in xampp\htdocs\. (Path like :- \xampp\htdocs\Helloworld)
  • Now create index.php file in your "Helloworld" folder.
  • In "index.php" write below code.
    • <?php
      echo "Hello World";
      ?>
  • Now save file.
  • Open your browser and run your folder 
    • like :- http://localhost/Helloworld/

Sunday, June 3, 2018

Tuesday, February 14, 2017

Most IMP question in PHP Interview.


Most IMP question in PHP Interview.

What’s the Difference Between Single & Double Quotes in PHP.

String enclosed in single quotes print as it is without being interpreted. It is faster and everything quoted inside treated as plain string.

In Double quote strings will be printed after interpretation. So it is better to use single quotes unless you need to interpret the variable value.

The advantage of using double quotes is you don’t need to use concatenation(.)

Sunday, February 12, 2017

Bootstrap Background classes



.bg-primary :- Table cell is styled with class "bg-primary"
.bg-success :- Table cell is styled with class "bg-success"
.bg-info :- Table cell is styled with class "bg-info"
.bg-warning :- Table cell is styled with class "bg-warning"
.bg-danger :- Table cell is styled with class "bg-danger"