Ibnab Blog
 /  Ibnab Blog

OroCommerce Customize header top bar

orocommerce,  programming, 

OroCommerce give you the ability to customize your header by combining many components and bundles like layout service management and other , first go to file : vendor/oro/customer-portal/src/Oro/Bundle/CommerceMenuBundle/Resources/views/layouts/blank/page/top_nav.yml
you need observe that is inside blank basic theme (the big parent of default and custom and other theme) the content is :

Read more

Show Hide Fields (ex : street , city , region , country ….) in Checkout page

magento-2,  programming, 

The checkout page contain standard fields , in many cases the site owner needs to hide some fields for specific reason , the system give you the ability to hide some fields directy from xml , you can add checkout_index_index.xml (copy same structure or just what you want from this path vendor/magento/module-checkout/view/frontend/layout/checkout_index_index.xml) to you theme or your custom extension and start hiding some fields .

Read more

Magento 2 Layouts and blocks inside php

magento-2,  programming, 

Magento 2 have a good system for  organize the blocks by layouts, In Magento 2 that is more flexible . You can play by many ways .

We want show how the developers can play with all the puzzle (layout block template and structure), the framwork Magento 2 have a component called View ("vendor/magento/framework/View"), it have almost all needed class for manage the frontend view in back and font office ,
 you can inject the class Magento\Framework\View\Layout  by factory for get instance of layout class . let's imagine your contruct  in plugin by example is

Read more

Track V1 Rest url (how you can explore the path of request)

magento-2,  programming, 

Magento choose to use some interaction client as service (click) , for example when you try to place order you get url like rest//V1/guest-carts/:cartId/payment-information , ok but how you can see where is point this url ? Is a module controller action url ? Wrong is a service .

Read more

OroCommerce Form : create color picker field

orocommerce,  programming,  video-courses, 

Orocommerce is new  b2b ecommerce system , this system will need customizable themes , and the frontend developer need know how use color picker field for give the ability to user for customizing the theme from admin panel ,

Ok orocommerce is built on top of oro platform , and the platform propose you a lot of form type , you can find all in path vendor/oro/platform/src/Oro/Bundle/FormBundle/Form/Type/ .
One of them is OroSimpleColorPickerType and OroSimpleColorChoiceType . Let's try using simple example of how you can use  OroSimpleColorPickerType .

Read more

Orocommerce Video Course : Expression in Payment Rules and Shipping Rules

orocommerce,  course,  video-courses, 

Infos About Payment Expressions

For flexible display and use of payment methods or shipping methods , you need explore and know how the rule expressions is working  , 
rules expression give you the ability to change the behavoir of payment methods , yeah : “ for example the Check/Money Order it will be availible just with some conditions and other not , if the customer have less than 4 items don't give him the option of Check/Money Order“ , with expression you can find solutions for complex cases “ what's about b2b ? ” ,
Orocommerce give you this big tool , for example in other system like magento you don't have by default “ you need add an extenssion for that like owebia shipping , but is just related to expression for shipping  !!!! ”

Read more

Magento 2 For developer : some ideas about Search Framwork

Magento 2,  programming, 

The search use 3 request name in magento 2 :

'quick_search_container' when you search from the small field text in the top

'advanced_search_container' when you use the advanced search page

'catalog_view_container' when you entre to category page or use filter in category page it's work by default

inside class Magento\Framework\Search\Search the function search(SearchCriteriaInterface $searchCriteria) build a request with class Magento\Framework\Search\Request\Builder; it's start by puched in object $this→requestBuilder the query name example 'quick_search_container'

Read more

Magento 2 For developer : some ideas about frontend search

magento-2,  programming, 

For customize behavior of search you need know the mechanism of how Magento 2 stock and collect infos and how used  it, Now in Magento 2 we have in database catalogsearch_fulltext_scope1 and catalogsearch_fulltext_scope2 related to how many scope you have let's imagine you have 2 store one for English and other for Arabic ,  the system create 2 scope . And stock the map of search inside this tables , bot how ? Yeah let's go and see the structure of table ,this table have 3columns entity_id and atrribute_id and data_index

Read more

Woocommerce Add custom api route

woocommerce, 

In woocommerce the rest api is used to get data from orders , products , customers..
but how you can customize or add add other api route  to get (fields and value) , ok it's exist many techniques 
first work directly on the core for example inside

Read more

Woocommerce connector ready for orocrm 1.10

woocommerce,  orocrm, 

Woocommerce connector ready for orocrm 1.10 , and the big feature is Woocommce OroCRM Failure cart follow up email (on try to exit tab or browser) , persist cart and create abandoned cart.

Read more

Magento 2 Call media gallery (product images) in product list

Magento 2,  frontend,  programming, 

After see many frontend developers peoples search for how call gallery in product list page , we decide to write small course (tutorial) for how done this task .Ok first you need create class helper inside your module , for example Ibnab/Common/Helper/Data.php and push the code

Read more

Woocommece CRM

orocrm,  woocommerce, 

Establish bi-directional connection between  (Open source CRM ) OroCRM and Woocommerce ,you can import customer order coupons and abandoned cart to CRM , for centralize the management of sales marketing and reporting , OroCRM, it can be used for anything related to your store marketing, sales, and customer services ,The WooCommerce Connector allows merchants to get a 360° view of every customer , recover abandoned cart and recover order

Read more

OroCRM How to Use the Pro PDF Manager

orocrm, 

Learn how a OroCRM Administrator can add or modify PDF templates (subtemplate) and how you can use those templates to download and email documents using the PDF Manager Pro

Read more

Magento 2 More details about checkout page

magento-2,  programming, 

The checkout process in Magento 2 it's more practice and more abstracted with new generation ideas of user experience , in this course ibnab try to give you some key for customize the checkout page .

Saw the system use component for create and manage the page checkout, it's start from the layout checkout_index_index.xml in path vendor/magento/module-checkout/view/frontend/layout 

Read more

Magento 2 backend add custom grid action (target _self or _blank)

Magento 2,  backend, 

Ok the new generation of ui grid in magento 2 give you the ability to create or change grid  with xml file, this xml use extern php file for getting all part needed .
Our example here is the grid action like edit in catalog product grid or delete preview in page cms grid ,
ok we want add custom action .

Ok the xml responsible for ui grid of  product list in backend is vendor/magento/module-catalog/view/adminhtml/ui_component/product_listing.xml , and for action you will inside this file :

Read more

Free Magento 2 Easy Mega Menu

magento-2,  extension, 

Without high technical knowledge , Easy Mega Menu give you the ability to create an organized menu ,
You have a lot of products , give a best user experience to customer :


Manual installation :

    download from store

    past in your folder app/code

    enable extension in app/etc/config.php by adding 'Ibnab_MegaMenu' => 1,

    and execute the command php bin/magento setup:upgrade

   and execute the command rm -rf var/view_preprocessed/  pub/static

   and execute the command php bin/magento setup:static-content:deploy

Read more

Migrate Form ATG Commerce to Magento 2 (concept and programmation) (part1)

Magento 2,  programming,  products,  ATG, 

In the world of the big business  appear Oracle ATG Commerce , in many statistic It occupies an advanced position , yes the Magento 1   It has several elements to accommodate large-scale projects and it needs ,  But it lacks the tools by which tasks are separated, and the removal of conflict, the user experience in admin, default unit test tool , it's real and flexible system but with old mechanism  , In Ibnab we think the Magento 2 is here for taking  advanced position in this domain of big  business  and  large-scale projects .

Read more

Magento 2 Paypal Fee (charge) and life cycle

Magento 2,  programming, 

In magento 2 paypal is implemented with module Payal , in case if the customer choose payapl as method of payment M2 use Magento\Paypal\Model\Cart in place of \Magento\Payment\Model\Cart , it used for collect items and amount and validate the infos collected before sending to paypal ,

The model have more additional methods as (it extend from parent Magento\Paypal\Model\Cart) :
getAmounts()  : Get shipping, tax, subtotal and discount amounts all together
_validate( ) : Check the line items and totals according to PayPal business logic limitations
_importItemsFromSalesModel() : Import items from sales model with workarounds for PayPal

Yeah after collecting the amounts and validate  let's consider we choose Paypal express , the checkout redirect the function Paypal/Controller/Express/Start Action but inside this action it use the global Api class Model/Api/Nvp.php

Read more

Magento 2 Concept : Model Resource DB and Collection (part3)

Magento 2,  concept, 

This  course of series give you the ability for creating your own model resource and collection , ok let's imagine you want create a simple module for persist some data like brand infos for example .

1 – Create :

First we need create our table inside our database for that you need create the Setup folder ,The path complete of module is Ibnab/Brand , inside Setup folder create  file InstallSchema.php and fill with :

Read more
IBNAB is a company made of a group of professionals whose work is providing secure open source solutions. Our company strives for reaching magnificent results with each experience and provides professional open source solutions that cover every part of the business process.

Newsletter