My files were original based off of Stock by Attributes v4.7ajax by Kurio for Zen-Cart 1.3.5+ =)
Cleaned up and updated it to meet 1.3.9D Modification changes.
Printable View
<insert sound of choking> I had nothing to do with the AJAX version, or the multiadd version that preceded it. Those were the releases where it started to go downhill. Very glad to see somebody else helping it back to its feet, dusting it off, helping it back to a righteous path.
:thumbsup:
np. A sign of how little attention was paid when the mod was updated by your predecessors!
Can't criticise people too much for trying though. The mod was in a bit of a sloppy state when I took it on too. But better that than it hadn't been written at all.
this is kinda weird as for my first issue in the attributes drop down it states select size, but you can just byepass this and just click the add to cart button. which will add the product without attributes to the cart.
then in the shopping cart it will state that something is out of stock at the top but in the product list in the cart i have nothing indicating which product is out of stock.
This is not an SBA "issue" rather it's a Zen Cart attribute setup that makes this possible (required attributes). This FAQ article might help:
https://www.zen-cart.com/tutorials/i...hp?article=190
Do a forum search for required attributes. There are a few good threads that you might find useful.
When out of stock products are added to the cart, the cart looks like this:
http://i31.tinypic.com/347z1b4.png
Note that you can clearly see which items are the ones out of stock
god i love beyond compare i just took a peek at the code in creinoid's updated files and my files and i was missing the attributes code on the \includes\modules\pages\shopping_cart\header_php.php
$flagStockCheck = zen_check_stock($products[$i]['id'], $products[$i]['quantity'],$attributes);
@creinold Just found a minor text display glitch. One of my products does not have an image. When displaying the product list the image field displayed TEXT_IMAGE_NONEXISTENT instead of an image.
A search using the developers tool kit shows this term appearing in multiple define files.
I figured this means with no common use defined I had to add it specifically to SBA (?)
It worked :)
In file:
admin/includes/languages/english/extra_definitions/products_with_attributes.php
add
before php close tag.Code:define('TEXT_IMAGE_NONEXISTENT', 'No Image Exists');
Also for consideration for improvement in the how to file:
In the installation section it should read
'There are five core Zen Cart files modified'
because
•admin/includes/stylesheet.css is no longer affected.
hth
Kevin