Well... right in the first quote your wrote it says he's figured it out and will post when he can :)
Printable View
Well... right in the first quote your wrote it says he's figured it out and will post when he can :)
I have created the database table and uploaded all the files as per the instructions given with the zip file.
However, I am not sure what needs to be amended. The readme.txt it mentions an amendment will need to be made to orders.php but I cannot see what needs to be amended.
Please can anyone advise?
I have checked the database and a table has been created with the standard prefix zen_products_with_attributes_stock and all the fields are showing.
However I am also getting the 1146 Table 'fancynt1.TABLE_PRODUCTS_WITH_ATTRIBUTES_STOCK' doesn't exist error when i go in to the admin program and try to use Products with attribute Stock.
I have read through this entire thread and I am encountering some of the same problems people are having. I have installed this module and all is working well. One question remains though. We have recieved alot of orders from people who are continuing with the checkout process even though the message displays that we are out of stock on that particular attribute combination. For instance.
Sweatshirt:
Attribute Size: Small, Large, X-Large
Color: Red, Green, Blue
If our stock of Small Red sweatshirts is 0 and someone selects it, it displays the correct message that we are out of stock in the cart. However, the customer either doesn't see the message, or doesn't bother reading it and places the order anyway.
Is there an easy way to remove or disable the "Checkout" button when such message/error is shown to prevent them from continuing and processing the order?
This will circumvent the hassels and headaches we are currently having to deal with.
You can see the example here: http://www.shippingonly.com/index.php?main...products_id=746
try ordering in size 6. The message will appear, but you can continue your order if you don't read it.
The Configuration-->Stock-->Allow Checkout setting is already set to false
Diode, i have to ask a quick question about the install process if you have got the module working well can you advise what needs to be done other than copying the files down to the relevant locations?
I added the database and copied the files down as per the instructions but still get errors although i know the table has been added correctly with the zen prefix.
solutionsfast, that is pretty much all that was done. Copied the files into the relative locations, added the table. Then I added a product, gave it a few attributes.
In the admin section under categories-->Products With Attributes Stock section, the product appears. Then all you have to do is "Add Quantity For Product Variant" selection the correct attributes, add the quantity for that choice and its done.
Works fine except for my question.
After a little tinkering around, I believe that I fixed the "problem" that I was having. I edited the cart code, so now if anything that shows out of stock, it removes the button and link to proceed with the cart.
For those that would like to know, or anyone with any better ideas, here is what i edited.
includes-->templates-->template_default-->templates-->tpl_shopping_cart_default.php
The original code on line 270 was
I changed the code as followsCode:<td class="main" align="right"><? echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a>'; ?></td>
It seems to work so far. Anybody with a better suggestion?Code:<?
if ($any_out_of_stock == 0) {
?>
<td class="main" align="right"><? echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a>'; ?></td>
<?
} else {
?>
<td class="main" align="right"></td>
<?
}
?>
All that should be taken care of with the core files... if you have the option to not allow checkout on out-of-stock items set, then that should be that. I'm not sure why yours wasn't working but I don't think it had anything to do with this mod.
- Steven
[deleted... dang duplicate posts!]
has anyone upgraded yet to 1.3?
I just installed a demo store to see what the diff's are, but haven't "upgraded" yet. I was just wondering if anyone had any problems with this mod.
Not sure if anyone has posted this or not, but if you provide downloads on your cart (1.2.x) remember to add stock for the downlolad in your stockbyattributes otherwise the download won't work. Customers will be charged and unable to download the product.