Page 18 of 113 FirstFirst ... 816171819202868 ... LastLast
Results 171 to 180 of 1125
  1. #171
    Join Date
    Jul 2006
    Posts
    144
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Great job, Kuroi !!

    I have one small problem though, don't know if it's a big job or not but it's good to know that it exisis. If I delete an order (nothing that will happen very often, I hope ), the items on the order won't re-stock, I have to add them manually.

    Anyone else that have this "problem" or is there something wrong with my installation maybe ?

    It's not a big problem maybe but if it's fixable, it would be super...

    Regards,
    /Typhoon

  2. #172
    Join Date
    May 2006
    Posts
    310
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by Typhoon
    Great job, Kuroi !!

    I have one small problem though, don't know if it's a big job or not but it's good to know that it exisis. If I delete an order (nothing that will happen very often, I hope ), the items on the order won't re-stock, I have to add them manually.

    Anyone else that have this "problem" or is there something wrong with my installation maybe ?

    It's not a big problem maybe but if it's fixable, it would be super...

    Regards,
    /Typhoon
    Typhoon: That functionality was not built into the original version either. I do not believe it has been "fixed" in this version.
    Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2

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

    Default Re: Stocks by attributes

    Quote Originally Posted by surlyjake
    I will say for the record that the "includes/languages/english/your_template/product_info.php" file is at "/store/includes/languages/english/product_info" in 1.3.5.
    Yes, but the one that you would amend would be the over-ride copy that you create at "includes/languages/english/YOUR_TEMPLATE/product_info.php", otherwise you risk over-writing your changes next time you upgrade or patch your system.
    Kuroi Web Design and Development | Twitter

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

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

    Default Re: Stocks by attributes

    Quote Originally Posted by Typhoon
    Great job, Kuroi !!

    I have one small problem though, don't know if it's a big job or not but it's good to know that it exisis. If I delete an order (nothing that will happen very often, I hope ), the items on the order won't re-stock, I have to add them manually.

    Anyone else that have this "problem" or is there something wrong with my installation maybe ?

    It's not a big problem maybe but if it's fixable, it would be super...

    Regards,
    /Typhoon
    Thanks Typhoon, but I'm afraid that woodlandsprite is right. This functionality was not part of the previous version and has deliberately not been added to this one. This is throwaway code that will hopefully have a lifetime of jut a few months before the Zen Cart team produce their own (and better) solution. I therefore took a conscious decision not to expend time expanding the functionality, or to build functions that would intrude as deeply as this into core Zen Cart code and risk creating a headache for users when they upgrade to version 1.4. But by all means post this in the Zen Cart Support Forum :: Code Matters :: Features Wish List section of the forum (if it's not already there).
    Kuroi Web Design and Development | Twitter

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

  5. #175
    Join Date
    Apr 2006
    Posts
    12
    Plugin Contributions
    0

    Found a bug?

    Hi kuroi

    Really good work but I found a bug I think ..
    If I install Stocks by attributes module everything works fine but if I change Order Total Modules sorting on Tax ot_tax from default 300 to 980 I get error

    Warning: Invalid argument supplied for foreach() in /var/www/web49/web/includes/classes/order.php on line 750

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/web49/web/includes/classes/order.php:750) in /var/www/web49/web/includes/functions/functions_general.php on line 41

    on checkout_process.html page (when I finishing shopping).

    If I delete your order.php and put there a original file everything works well.

    Any suggestion please?

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

    Default Re: Found a bug?

    Quote Originally Posted by SupuS
    I found a bug I think ...
    Unfortunately, it's not at all obvious how changing the sort order of the order total tax could have any effect on Stock by Attributes, and although I have tried several different approaches, I haven't been able to replicate your problem.

    Please can you tell me some more about how you have set up your taxes and also about any other add-ons that you have installed.
    Kuroi Web Design and Development | Twitter

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

  7. #177
    Join Date
    Apr 2006
    Posts
    12
    Plugin Contributions
    0

    Default Re: Found a bug?

    Quote Originally Posted by kuroi View Post
    Please can you tell me some more about how you have set up your taxes and also about any other add-ons that you have installed.
    My taxes are:

    geo-zones: SK
    tax-classes: Bezna DPH
    tax-rates: 19%

    (I don't know what you need to know .. I can post my configuration table from database if it helps)

    In orders I have:

    ot_cod_fee 950
    ot_group_pricing 290
    ot_round 990
    ot_shipping 200
    ot_subtotal 100
    ot_tax 980 (if this is on default 300 error disappear)
    ot_total 999

    I have installed this modules:

    Stocks by attributes
    Image Handler
    XML generator
    Quick Contact Sidebox
    Ultimate SEO URL's
    ot_round
    Tabbed Products Lite

    Only one of these is in orders modules ... ot_total .. but if I uninstall it in zencart admin the error remains.

    As I said .. with original order.php everything is ok ..

    thank you for your help

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

    Default Re: Stocks by attributes

    Thanks for the extra info SupuS. It's very helpful.

    I have a second report of this same error at the same line but under very different circumstances so I will be taking a very close look at it over the next couple of days. It looks interesting
    Kuroi Web Design and Development | Twitter

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

  9. #179

    Default Re: Stocks by attributes

    Quote Originally Posted by surlyjake View Post
    thanks again. I will say for the record that the "includes/languages/english/your_template/product_info.php" file is at "/store/includes/languages/english/product_info" in 1.3.5. Just one last question... what change do I make to allow dropdowns, or have it display
    "in stock" if qty>0 or
    "out of stock" if qty <=0
    instead of the actual inventory level.
    To answer your question to get it to display if its in stock or not, look at post 113 here - http://www.zen-cart.com/forum/showth...=25987&page=12

    For dropdown, post 188 - http://www.zen-cart.com/forum/showth...=25987&page=19

    I've just put both on my site. Unfortuantely they don't seem to work together. Radio ones will show 'in stock' & 'out of stock', while drop downs still show stock quantities.

    Does anyone have a remedy for this? - I'm guessing the new dropdown code ignores all the previous and reads it from elsewhere.

  10. #180

    Default Re: Stocks by attributes

    In answer to my previous question, here the remedy. Many thanks to my flatmate is is somewhate more php literate than I am.

    Instead of changing
    PHP Code:
     $products_options_array[] = array('id' => $products_options->fields['products_options_values_id'],
                          
    'text' => $products_options->fields['products_options_values_name']); 
    with
    PHP Code:
     $products_options_array[] = array('id' => $products_options->fields['products_options_values_id'],
                          
    'text' => $products_options->fields['products_options_values_name'] .' [' $products_options->fields['quantity'] . ' 'TEXT_ATTRIBUTES_PIECES ']'); 
    as per http://www.zen-cart.com/forum/showth...=25987&page=19 post 188, change it to this instead.
    PHP Code:
                      if ($products_options->fields['quantity'] >0){
                        
    $dropdown_instock TEXT_ATTRIBUTES_IN_STOCK;
                      } else {
                        
    $dropdown_instock TEXT_ATTRIBUTES_NOT_IN_STOCK;
                      }
                      
                      
    $products_options_array[] = array('id' => $products_options->fields['products_options_values_id'],
                                            
    'text' => $products_options->fields['products_options_values_name'] .' [' $dropdown_instock ' 'TEXT_ATTRIBUTES_PIECES ']'); 
    Last edited by royalgemsnz; 11 Oct 2006 at 09:33 AM.

 

 
Page 18 of 113 FirstFirst ... 816171819202868 ... LastLast

Similar Threads

  1. v139h Stocks of certain products disappearing automatically
    By Lowwi in forum General Questions
    Replies: 4
    Last Post: 11 Aug 2015, 09:09 PM
  2. Installing Stocks by Attribute
    By dragon03kf in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 26 Oct 2008, 07:42 PM
  3. Stocks by attributes
    By hcd888 in forum General Questions
    Replies: 1
    Last Post: 12 May 2008, 08:52 AM
  4. Multiple stocks per product
    By jaycode in forum General Questions
    Replies: 4
    Last Post: 5 Aug 2007, 11:55 AM
  5. Products with attribute stocks
    By Svanis in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 5 Jul 2006, 03:19 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR