PHP code example of orangecat / module-prices-company

1. Go to this page and download the library: Download orangecat/module-prices-company library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

orangecat / module-prices-company example snippets


public function calculate(string $sku, float $qty, int $companyId, float $basePrice = 0.0): ?float

public function getTiers(string $sku, int $companyId, float $basePrice = 0.0): array

public function isEnabled($storeId = null): bool
public function getResolutionMode($storeId = null): string  // 'overwrite' | 'stack'
bash
curl -X GET \
  'https://b2bsdk.test/rest/V1/pricescompany/calculate?companyId=1&sku=24-MB01&qty=10' \
  -H 'Authorization: Bearer <token>'