Jump to content



Member Since 10 Dec 2017
Offline Last Active Mar 23 2018 02:15 PM

Topics I've Started

Excluding Products Without Image

14 March 2018 - 04:14 PM

if (Registry::get('settings.General.inventory_tracking') == 'Y' && // FIXME? Registry in model
        Registry::get('settings.General.show_out_of_stock_products') == 'N' &&
        $params['area'] == 'C'
    ) {
        $condition .= db_quote(
            ' AND (CASE products.tracking' .
            '   WHEN ?s THEN inventory.amount > products.min_stock' .
            '   WHEN ?s THEN products.amount > products.min_stock' .
            '   ELSE 1' .
            ' END)',

The above is an excerpt from fn.catalog.php in which I exclude products from being shown if they don't have more than a database-specified stock value. How would I access the other databases for images and image links in order to effectively prevent products without images from being displayed?

Hooks For "editing Profile"-Page

14 March 2018 - 11:04 AM



What hooks do I need to use in order to post display information at the page where user's can edit their profile information?


Screenshot of page: https://gyazo.com/f9...4929629b2948bfd



Change Min Stock Qty From 0

29 January 2018 - 03:05 PM



How do I change the minimum stock quantity (for all cs-cart products) from 0 to a custom value and subsequently hide products that fall below this value?



403 Forbidden When Updating User Data

24 January 2018 - 09:27 AM

I'm trying to update a user's custom field.


API Url Path: /api/users/7 (this user exists, double-checked)

Json body: 

	"cust_id": "test2"

I have included Content-Type: application/json and the correct Authorization header information in my request.


The source code response of this request is as follows: 

<title>403 Forbidden</title>
<p>You don't have permission to access /api/users/7
on this server.<br />


Make Api Return Custom Field In Cscart_Users

12 January 2018 - 11:32 AM



How do I modify the Cs-Cart api to return a manually added column in the cscart_users table?