PATH:
home
/
sparklp6
/
public_html
/
sparklerfilters-org
/
administrator
/
components
/
com_j2store
/
models
/
behavior
<?php /** * @package J2Store * @copyright Copyright (c)2014-17 Ramesh Elamathi / J2Store.org * @license GNU GPL v3 or later */ // No direct access to this file defined('_JEXEC') or die; class J2StoreModelVariantsBehaviorStock extends F0FModelBehavior { public function onAfterBuildQuery(&$model, &$query) { $db = JFactory::getDbo(); $query->select($db->qn('#__j2store_productquantities').'.quantity') ->select($db->qn('#__j2store_productquantities').'.j2store_productquantity_id') ->innerJoin('#__j2store_productquantities AS #__j2store_productquantities ON #__j2store_productquantities.variant_id = #__j2store_variants.j2store_variant_id'); //echo $query; } public function onAfterGetItem(&$model, &$record) { //var_dump($record); } }
[-] variable.php
[edit]
[-] cartconfigurable.php
[edit]
[-] configurable.php
[edit]
[-] autoload.php
[edit]
[-] cartvariable.php
[edit]
[-] stock.php
[edit]
[-] default.php
[edit]
[-] downloadable.php
[edit]
[-] cartdefault.php
[edit]
[-] cartsimple.php
[edit]
[-] cartdownloadable.php
[edit]
[+]
..
[-] simple.php
[edit]