About Ankita Pancholi

This author has not yet filled in any details.
So far Ankita Pancholi has created 26 blog entries.
30 10, 2015

Magento 2: Add new Custom Breadcrumb in checkout page

October 30th, 2015|MAGENTO, MAGENTO 2|3 Comments

In Magento 1, we can directly add the breadcrumb in checkout page using XML.

But in Magento 2 there are some changes to add the breadcrumb

1. Copy the checkout_cart_index.xml file in your theme. And then write code in body tag

<referenceBlock name="breadcrumbs">
<action method="addCrumb">
<argument name="crumbName" xsi:type="string">Home</argument>
<argument name="crumbInfo" xsi:type="array">
<item name="title" [...]

27 10, 2015

Magento 2: Send the email

October 27th, 2015|MAGENTO, MAGENTO 2|0 Comments

In Magento 2 we can send the mail using their function but there are some changes in Magento 2.

Now Let’s start how to send the email.

1. create email_templates.xml in the path app/code/Webmull/Email/etc

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../Email/etc/email_templates.xsd">
<template id="send_email_email_template" label="Email Form" file="send_form.html" type="text" module="Webmull_Email" area="frontend"/>
</config>

 

2. create send_form.html in the […]

26 10, 2015

Magento 2: Display image using static block

October 26th, 2015|MAGENTO, MAGENTO 2|0 Comments

In Magento 1 we used the {{media url=””}} to display the image in frontend. But now how to display in Magento 2.

Let’s Start

1. Put the image in the path app/design/frontend/{Vendor Name}/{Theme name}/web/images

2. In static block or cms page content write

{{view url="images/image-1.jpg"}}

now check the page or […]

15 10, 2015

Magento 2: Get url in template file

October 15th, 2015|MAGENTO, MAGENTO 2|0 Comments

In Magento 1, we can directly get the image url using Mage::getUrl() function.

But in Magento 2 there are some changes to call the images

Use this code to phtml file to get the Url

<?php echo $block->getUrl('call/index/view') ?>

Here:

call:- Module frontname
index:- Controller name
view:- Action name

Now Refresh the page and […]

15 10, 2015

Magento 2: Get image url in template file

October 15th, 2015|MAGENTO, MAGENTO 2|0 Comments

In Magento 1, we can directly get the image url using $this->getSkinUrl() function.

But in Magento 2 there are some changes to call the images

1. Put the image on this path app/code/Webmull/Call/view/frontend/web/images

2. Use this code to phtml file to call the image

<img src="<?php echo $block->getViewFileUrl('Webmull_Call::images/call_img.png'); ?>" alt="<?php [...]

1 10, 2015

jQuery: jcarousel adds empty item in circular mode

October 1st, 2015|JQUERY|0 Comments

We used the jcarousel in our project and also we used the circular mode jCarousel(wrap : ‘circular’) for slider.

We have set 4 item to display in slider. but in the slider we are displaying 3 items so one empty space will display and design is messed up.

So we think we […]

30 09, 2015

Magento 2: Add new Custom Form Validation

September 30th, 2015|MAGENTO, MAGENTO 2|3 Comments

In Magento 1, There was one file validation.js. We can add the new validation on that file or also add in our extension .phtml or .js file.

In Magento 2, We can add our custom validation in .phtml file. It is very good news for us Magento 2 is not using […]

30 09, 2015

Magento 2: Override the Magento Template

September 30th, 2015|MAGENTO, MAGENTO 2|2 Comments

In Magento 1,It is very easy to override the Template. We are directly add the the code in .xml file. Now You think What happen in Magento 2.

So Don’t worry.

We can also do this thing in Magento 2,

Let’s see how we can do this.

1) Copy the .xml file in the […]

18 09, 2015

Magento 2: set the custom product price

September 18th, 2015|MAGENTO, MAGENTO 2|0 Comments

Same as Magento 1 , it is possible to set the custom product price. We can use same event we used in magento 1. But file structures are different, so we need to use some structure to use event observer.

Let’s see the file structure

app/code/Webmull/Customprice/etc/

app/code/Webmull/Customprice/etc/frontend/

app/code/Webmull/Customprice/Observer/

 

1. We create the module configuration price […]

18 09, 2015

Prestashop: Change theme logo

September 18th, 2015|PRESTASHOP|0 Comments

In prestashop we do not need to change the logo in the file. We can easily manage through admin side

1) Login at admin side

2) Go to Preference > Themes

3) In current theme we can see different Tab to change the logo for site, email, invoice, Mobile