Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Mar 2008
    Posts
    38
    Plugin Contributions
    0

    Default Manual Product Input thru PHP

    Hi,

    I'm working on v1.3.9.f
    I'm having a problem manually inputting a product with Attributes using PHP. When I run the script ant input the products with quantity the products always come up as sold out.
    When I use the Stock By Attributes mod, it works.

    Any ideas?

    Thanks

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Manual Product Input thru PHP

    Could you clarify what you mean by "manually inputting a product with Attributes using PHP". Do you mean that you've written your own script with PHP and it doesn't work?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Mar 2008
    Posts
    38
    Plugin Contributions
    0

    Default Re: Manual Product Input thru PHP

    Quote Originally Posted by kuroi View Post
    Could you clarify what you mean by "manually inputting a product with Attributes using PHP". Do you mean that you've written your own script with PHP and it doesn't work?
    I have written a script in PHP that is able to enter products with attributes. I have the script take a CSV datafeed file, it has in excess of 20,000 items. I have the data populating the shopping cart, but the quantity is always sold out in the cart, but there is quantity and it is correct when I check the sql database. When I manually enter an item into the cart using the stock by attributes mod included with v3.9.f the quantity shows up properly in the shopping cart.

  4. #4
    Join Date
    Oct 2004
    Location
    Ontario
    Posts
    116
    Plugin Contributions
    1

    Default Re: Manual Product Input thru PHP

    products_status = 1

    Make sure you are setting the products_status field to one in your script.

  5. #5
    Join Date
    Mar 2008
    Posts
    38
    Plugin Contributions
    0

    Default Re: Manual Product Input thru PHP

    I just checked the products table, and when there's quantity in the inventory, the products_status is set to 1.

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Manual Product Input thru PHP

    When I run the script ant input the products with quantity the products always come up as sold out.
    When I use the Stock By Attributes mod, it works.
    I assume that you have stock by attributes installed which adds tables for items with attributes


    Is your script addressing these additional tables?
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Mar 2008
    Posts
    38
    Plugin Contributions
    0

    Default Re: Manual Product Input thru PHP

    Yes, my script does address these tables.
    The names of the tables I address are: products_attributes, products_options_types, products_options, products_options_values, products_options_values_to_products_options, and products_with_attributes_stock

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Manual Product Input thru PHP

    I just checked the products table, and when there's quantity in the inventory, the products_status is set to 1.
    What about the stock levels in the other tables?
    Might cross check all tables altered when you manually enter through the admin versus through your script

    A diff tool can locate changes in the sql before and after
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Mar 2008
    Posts
    38
    Plugin Contributions
    0

    Default Re: Manual Product Input thru PHP

    What tool can locate the changes before and after?
    I checked the stock levels in other tables, they're correct.
    Let me know about the tool and I'll give it a shot.

    Thanks

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Manual Product Input thru PHP

    What tool can locate the changes before and after?
    Backup copies of the DB before & after

    BeyondCompare
    Winmerge
    http://www.google.com/search?q=diffe...32b8af52b7e0b8
    Zen-Venom Get Bitten

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 Manual Entry/Input State field being populated with a space
    By yaseent in forum General Questions
    Replies: 1
    Last Post: 17 Dec 2015, 01:13 AM
  2. v150 Attribute to price product by manual input
    By ShopVille in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Feb 2013, 01:38 AM
  3. Input PHP into Product Description
    By todoonada in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 23 Jun 2009, 12:08 PM
  4. Extra 'input' box needed on product info input page
    By abaris in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 1 Apr 2009, 03:40 PM

Posting Permissions

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