Menu

Adding articles with more than one pieces

2002-11-20
2002-11-21
  • Sven Kasemann

    Sven Kasemann - 2002-11-20

    Hello,

    when i try to add more than one article to my list,
    e.g. 25 pieces, after that only 1 pieces is listed on
    the request list.

    configuration in admin section--articles:

    price = 0.00 EUR
    price = 0.00 USD
    value with VAT is off
    min is set to 1 pieces
    order 0
    visible true
    in stock 0

    remember phPay is not running as shop
    only in request mode

    Thanks a lot

    Sven

     
    • Andreas Kansok

      Andreas Kansok - 2002-11-20

      The 'request mode' (nice name b the way) is it. It takes the min-value from table item and set it as quantity.
      If you look into show_item*, you'll see it.

      Otherwise it should NOT be possible to change quantity. This seems to be a bug (I think in view_cart.php?).

       
    • Sven Kasemann

      Sven Kasemann - 2002-11-20

      Hello,

      i studied the source.

      I think show_item* include the form post method reference to main.php. In main.php from line 4 to 6 the item will be added to cart. Reference to add_item(...) declared in cart.php. Maybe i add some if else function to verify which mode phPay is running.
      Am i right ?

      Thanks.

      Sven

       
    • Sven Kasemann

      Sven Kasemann - 2002-11-21

      1. There is no bug.

      2. I think i am missing some feature. In general configuration (admin area) you can define how many
      articles can be stored to cart or request list.
      I did not find any option to disable this function,
      because i do not use the stock values for
      public and maybe some other users also.

      So i can set the value e.g. > 2,000,000 but
      would not it be better to include a boolean var
      in the admin area to switch this funtion ?

      You have to modify only cart.php,/admin/setup.php, and install script for sql  (and of course language files) and add a boolean field to database.

      I am willing to include these changes. Is there an CVS system with actual patches and so on where i can do my changes ?

      Thanks a lot for your work and answer.

      Sven

       
    • Andreas Kansok

      Andreas Kansok - 2002-11-21

      Re: 2.) Maybe but then there should be both ;-)  If boolean is TRUE existing var should be used. Only TRUE or FALSE is not enough.

      If you have modified the files you can post them here in patch-area. A CVS-system I don't use (yet;-)

      Greetings.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.