View Single Post
  #22  
Old 12-12-2016, 06:31 AM
 
superdave144 superdave144 is offline
 

Advanced Member
  
Join Date: Sep 2015
Posts: 77
 

Default Re: Default Product Values

Here is the product.php file located in /opt/bitnami/apps/xcart/htdocs/classes/XLite/Module/JRG/Quantity/Model

// File: classes/XLite/Module/JRG/Quantity/Model/Product.php

namespace XLite\Module\JRG\Quantity\Model;

class Product extends \XLite\Model\Product implements \XLite\Base\IDecorator
{
/**
* Default qty value to show to customers
*
* @return integer
*/
public function getDefaultAmount()
{
return 1;
}
}


Here is the main.php file located in /opt/bitnami/apps/xcart/htdocs/classes/XLite/Module/JRG/Quantity

<?php
namespace XLite\Module\JRG\Quantity;

abstract class Main extends \XLite\Module\AModule
{
/**
* Just Retro Games
*
* @return string
*/
public static function getAuthorName()
{
return 'Just Retro Games';
}

/**
* Module name
*
* @return string
*/
public static function getModuleName()
{
return 'Default Item Quantity';
}

/**
* Get module major version
*
* @return string
*/
public static function getMajorVersion()
{
return '5.3';
}

/**
* Module version
*
* @return string
*/
public static function getMinorVersion()
{
return 0;
}

/**
* Module description
*
* @return string
*/
public static function getDescription()
{
return 'Sets the default item quantity to 1 instead of 1000';
}

There is no model subfolder in this directory. /opt/bitnami/apps/xcart/htdocs/var/run/classes/XLite/Module/JRG/Quantity
__________________
David
X-Cart Business 5.3.2.2