PHP code example of orangecat / module-product-lists

1. Go to this page and download the library: Download orangecat/module-product-lists 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-product-lists example snippets


isEnabled(int|null $storeId = null): bool
isAjaxEnabled(int|null $storeId = null): bool

getLists(): array                          // All lists for logged-in customer (cached)
getListCollection(): ?ListCollection       // Raw paginatable collection
getItemsForList(int $listId): ItemCollection

getListId(): int|null
getCustomerId(): int|null
setCustomerId(int $customerId): $this
getListName(): string|null
setListName(string $name): $this
getDescription(): string|null
setDescription(string|null $description): $this
getCreatedAt(): string|null

getItemId(): int|null
getListId(): int|null
setListId(int $listId): $this
getProductId(): int|null
setProductId(int $productId): $this
getQty(): float|null
setQty(float $qty): $this
getBuyRequest(): string|null              // Raw JSON
setBuyRequest(string|null $buyRequest): $this
getBuyRequestObject(): DataObject         // Deserialized; qty column takes precedence over JSON qty
getAddedAt(): string|null