Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
tablerates.php File Reference

Go to the source code of this file.

Variables

 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $resource = $objectManager->get(\Magento\Framework\App\ResourceConnection::class)
 
 $connection = $resource->getConnection()
 
 $resourceModel = $objectManager->create(\Magento\OfflineShipping\Model\ResourceModel\Carrier\Tablerate::class)
 
 $entityTable = $resourceModel->getTable('shipping_tablerate')
 
 $data
 

Variable Documentation

◆ $connection

$connection = $resource->getConnection()

Definition at line 9 of file tablerates.php.

◆ $data

$data
Initial value:
=
[
'website_id' => 1,
'dest_country_id' => 'US',
'dest_region_id' => 0,
'dest_zip' => '*',
'condition_name' => 'package_qty',
'condition_value' => 1,
'price' => 10,
'cost' => 10
]

Definition at line 12 of file tablerates.php.

◆ $entityTable

$entityTable = $resourceModel->getTable('shipping_tablerate')

Definition at line 11 of file tablerates.php.

◆ $objectManager

Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.

Definition at line 7 of file tablerates.php.

◆ $resource

$resource = $objectManager->get(\Magento\Framework\App\ResourceConnection::class)

Definition at line 8 of file tablerates.php.

◆ $resourceModel

$resourceModel = $objectManager->create(\Magento\OfflineShipping\Model\ResourceModel\Carrier\Tablerate::class)

Definition at line 10 of file tablerates.php.