Page 1 of 2 12 LastLast
Results 1 to 10 of 1125

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Orbost Vic Australia
    Posts
    25
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    I seem to have cleared the problem. I removed each of the 6 files that overwrite and replaced them with the originals. AS each one was changed I checked to see if the error persisted. When I had the new system files removed including order.php I then reinstalled the add on files making sure that only one copy was on file. It is now working but I'm still unsure as what was the original problem. I had repaced the order.php by renaming as order-old.php however I now have renamed to *.php1 so the old files are completely inert.

    Thanks for the responses.
    PrivateTrader.Biz My Webpage

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

    Default Re: Stocks by attributes

    Quote Originally Posted by keithlaw View Post
    I now have renamed to *.php1 so the old files are completely inert.
    No they're not. They're still available for inclusion and even if a .php extension is tested for in this specific instance thus excluding them, mixing backup and live files is bad practise and has the potential to get you into trouble elsewhere in Zen Cart (or any other app).
    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
    Dec 2008
    Posts
    79
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by kuroi View Post
    No they're not. They're still available for inclusion and even if a .php extension is tested for in this specific instance thus excluding them, mixing backup and live files is bad practise and has the potential to get you into trouble elsewhere in Zen Cart (or any other app).
    I agree with kuroi. Leaving them out there only asks for trouble.

    Before I do a mod I copy the current working state over to a directory on my system named zencartbackup and then install the mod to my zencart directory. If I have any issues I can delete zencart directory and rename zencartbackup directory to reinstate my system to where it was. I then have no worries that any file changed to .php.old or .php1 is somehow grabbed or mistakenly renamed or any other slip up that puts them into the mix and causes me headaches.

    I also only install one module at a time so it is easier to debug.

  4. #4
    Join Date
    Oct 2006
    Location
    Surprise Arizona
    Posts
    76
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    In a previous post, I discussed in passing a problem relating to being able to purchase out of stock inventory when using Stock by Attributes. If the solution is discussed elsewhere, I apologize.

    Specifically, if a product is set up for Stock by Attributes, it is possible to buy a subproduct that is out of stock after receiving a warning at the shopping cart that the selection is out of stock. But this behavior only happens if the quantity ordered is more than the quantity available for the subproduct, but less than the total stock available for all subproducts. Here is an example:

    Item= scrapbook, available in red, green, black. Set up using Stock by attributes as follows:
    • attribute= red, quantity = 4
    • attribute = green, quantity = 3
    • attribute = black, quantity = 3
    • total stock for all colors = 10

    If I try to buy 5 of the red scrapbooks, I get the message at the shopping cart that the item is out of stock, but I can then proceed to checkout and successfully purchase 5 red scrapbooks.

    If I try to buy 11 of the red scrapbook (more than the total stock for all colors), I am again warned that the item is out of stock, and I can not proceed to checkout.

    This problem has occurred prior to the latest patch that blocks display of out of stock attributes at the product page.

  5. #5
    Join Date
    Dec 2008
    Posts
    79
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    is there a way to have an attribute update multiple stocks

    say I want
    Attribute A qty 20
    Attribute B qty 20
    Attribute C is both A&B and I want it to deduct from both A&B's qty?

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

    Default Re: Stocks by attributes

    Quote Originally Posted by kellan4459 View Post
    is there a way to have an attribute update multiple stocks

    say I want
    Attribute A qty 20
    Attribute B qty 20
    Attribute C is both A&B and I want it to deduct from both A&B's qty?
    No since the quantities aren't held against individual attributes but against product variants, i.e. a product and a specific collection of attributes.
    Kuroi Web Design and Development | Twitter

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

  7. #7
    Join Date
    Dec 2008
    Posts
    79
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by kuroi View Post
    No since the quantities aren't held against individual attributes but against product variants, i.e. a product and a specific collection of attributes.
    Thanks Kuroi, I promised my customer I would ask but
    this is what I figured and so I had already suggested using the Better Together mod or whatever the name is so if any attrib option for A&B are purchased they can have the discount that my customer was trying to accomplish with using the BothA&B attribute option

    so they will have
    prod1
    ->attrib a
    ->attrib a2

    prod2
    ->attrib b
    ->attrib b2

    and if they purchase any variant of prod1 or prod2 the appropriate prod count will be adjusted but if the customer purchases both prod1 and prod2 they will receive a discount.

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

    Default Re: Stocks by attributes

    Quote Originally Posted by cropinstop View Post
    In a previous post, I discussed in passing a problem relating to being able to purchase out of stock inventory when using Stock by Attributes. If the solution is discussed elsewhere, I apologize.

    Specifically, if a product is set up for Stock by Attributes, it is possible to buy a subproduct that is out of stock after receiving a warning at the shopping cart that the selection is out of stock. But this behavior only happens if the quantity ordered is more than the quantity available for the subproduct, but less than the total stock available for all subproducts.
    This indicates that the mod hasn't been installed properly and the stock calc code that was supposed to have been replaced isn't being executed. This can happen because a key file hasn't been uploaded (some FTP programs only replace existing files if you explicitly tell them to) or because a backup file has been created (by hand or by FTP program) and is over-riding the new code.
    Kuroi Web Design and Development | Twitter

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

  9. #9
    Join Date
    Oct 2006
    Location
    Surprise Arizona
    Posts
    76
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by kuroi View Post
    This indicates that the mod hasn't been installed properly and the stock calc code that was supposed to have been replaced isn't being executed. This can happen because a key file hasn't been uploaded (some FTP programs only replace existing files if you explicitly tell them to) or because a backup file has been created (by hand or by FTP program) and is over-riding the new code.
    Compared all of my code with the 4.7multiadd version using "Beyond Compare", and could not find any errors. Are you sure the code is comparing the item order quantity to the stock quantity for the attribute being ordered?

    Can you point me to the line in the code that does the comparison? perhaps I have a variable naming problem due to another installed enhancement.

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

    Default Re: Stocks by attributes

    @cropinstop

    1. Did you compare the code actually on your server, or to that which you believe you uploaded.
    2. It's possible, though unlikely, that MULTADD operates differently. I haven't reviewed it in depth and can only speak to versions prior to that.
    Kuroi Web Design and Development | Twitter

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

 

 
Page 1 of 2 12 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

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