+ Reply to Thread
Results 1 to 8 of 8

Thread: Rentals in inventory control?

  1. #1
    Client
    Join Date
    Jul 2010
    Location
    San Mateo, CA
    Posts
    43
    Squirrelcart version
    v3.2.0

    Rentals in inventory control?

    A look at the documentation seems to suggest that if I have rental products in my store, all I need to do is create a pair of Order Status Options, e.g. "Shipped (rental)" and "Returned (rental)," and configure the Inventory Control to do the right thing to the inventory numbers for the product when its status is set - that is, decrement the rental item inventory by one when the order is set to "Shipped (rental)," and increment it when it reaches the "Returned (rental)" status.

    Sound right?

    Anyone doing this on their Squirrel store?

    Thanks...
    Alan

  2. #2
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    Stock is reduced when an item is added to the cart. It is restocked when the cart is emptied, the order is abandoned, or when you assign any status that triggers restocking based on your inventory control settings.

  3. #3
    Client
    Join Date
    Jul 2010
    Location
    San Mateo, CA
    Posts
    43
    Squirrelcart version
    v3.2.0
    This is a follow-up to my earlier question about rentals and inventory controls. Is there a way to have the approach of the expiration of the agreed rental period (30 days, for example) for an item trigger the sending of an email to the store administrator? I'm thinking perhaps creating a rule where if the status is Rental (shipped), and the date that status was set is 28 days ago, have SquirrelCart send a notification email to the store admin... and maybe another to the customer as a sourtesy reminder?

  4. #4
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    We don't have a feature that can do that. It would require custom programming.

  5. #5
    Client
    Join Date
    Jul 2010
    Location
    San Mateo, CA
    Posts
    43
    Squirrelcart version
    v3.2.0
    Oh, well... thanks, Jamie...

  6. #6
    Client
    Join Date
    Jul 2010
    Location
    San Mateo, CA
    Posts
    43
    Squirrelcart version
    v3.2.0
    I tried to write myself a little PHP page that would query for the rental orders that are older than 30 days... however, all I get is

    Access denied for user

    when it attempts the mysql_connect function...

    However, I can connect to the store database through PHPMyAdmin just fine.

    Is the squirrelcart code preventing any attempt from a connection made from code outside the squirrelcart directory and from PHPMyAdmin? Or am I doing something boneheaded?

  7. #7
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    Quote Originally Posted by AlChuck View Post
    Is the squirrelcart code preventing any attempt from a connection made from code outside the squirrelcart directory and from PHPMyAdmin?
    No. That would actually be impossible.

    You can easily connect to the database by including the 'squirrelcart/pre_common.php' file. Drop a file like this in the same location as your squirrelcart folder:

    test.php
    PHP Code:
    <?php 
    include 'squirrelcart/pre_common.php';

    if (!
    security_level('Store Admin')) die "You must login to use this page.";

    $products sc_query('SELECT `Name` FROM `Products` LIMIT 0,10'MYSQL_ASSOC1);
    sc_print_array($products);
    ?>
    Load it in your browser. It will connect to your database and display 10 products.

  8. #8
    Client
    Join Date
    Jul 2010
    Location
    San Mateo, CA
    Posts
    43
    Squirrelcart version
    v3.2.0
    Excellent, thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts