Search:

Type: Posts; User: harmeetsandhu

Search: Search took 0.01 seconds.

  1. Replies
    3,557
    Views
    540,700

    Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    Ok this is mine:


    <?php
    /**
    * shopping_cart header_php.php
    *
    * @package page
    * @copyright Copyright 2003-2010 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
  2. Replies
    3,557
    Views
    540,700

    Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    Chris,

    i compared ur code to min and i can see u have the below part repeated twice


    $attrArray[$option]['products_options_name'] = $attributes_values->fields['products_options_name'];
    ...
  3. Replies
    3,557
    Views
    540,700

    Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    Chris,

    That looks perfect but i dont understand why its not working for you. After i made this change this is what happens in my cart:

    Item A (with attributes)
    Item B (without attributes)
    ...
  4. Replies
    3,557
    Views
    540,700

    Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    balticccreations,

    if you can also paste the code here and i can have a look.

    Will try to sort it out.

    Regards

    harmeet
  5. Replies
    3,557
    Views
    540,700

    Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    ChrisD24,

    Mine works perfect now. if you paste ur code here i can have a look and see wats going on.

    Regards
  6. Replies
    3,557
    Views
    540,700

    Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    Dear Baltic,

    I am not sure if i got ur last post. my cart now works as i wanted it to. It shows no of products avilable if a customer adds in more products then in stock.

    Let me know what...
  7. Replies
    3,557
    Views
    540,700

    Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    ChrisD24,

    Read the whole code properly and then decided that the following part of the code is an overkill.

    I simply removed this part below :


    // stock by attributes
    if ( STOCK_CHECK...
  8. Replies
    3,557
    Views
    540,700

    Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    Actually wrote to soon:

    It doesnt work as the item i choose to test had an attribute. the one without attributes still have this problem :frusty:

    will try and sort this out will let u know if...
  9. Replies
    3,557
    Views
    540,700

    Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    Removing the post as the change i mentioned doesnt work.
  10. Replies
    3,557
    Views
    540,700

    Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    I read before that you tried uncommenting the


    /*
    if (STOCK_CHECK == 'true') {
    $flagStockCheck = zen_check_stock($products[$i]['id'], $products[$i]['quantity']);
    if ($flagStockCheck...
  11. Replies
    3,557
    Views
    540,700

    Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    Forgot to mention that ITEM B has no attribute attached to it though but if i add any other item so lets say item C with attributes.

    It works as expected.

    Not getting anywhere with this.
    ...
  12. Replies
    3,557
    Views
    540,700

    Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    I changed mine to exactly as yours but i still get this again:

    item A out of stock but Item B is in stock but get the out of stock message and the stock avilable is same as ITEM A.

    pulling my...
  13. Replies
    3,557
    Views
    540,700

    Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    Dear ChrisD24,

    I am having the same problem and after making the change as yo mentioned i still have the problem can you please post the code here so i can see if i am doing everything correct: ...
Results 1 to 13 of 13
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR