Oh, and warning displays for the product WITH attribute if I place order HIGHER than TOTAL NUMBER of the product available (say Product A has 1 Small, 2 Medium, 3 Large = 6 TOTAL NUMBER)
Please help!!
Oh, and warning displays for the product WITH attribute if I place order HIGHER than TOTAL NUMBER of the product available (say Product A has 1 Small, 2 Medium, 3 Large = 6 TOTAL NUMBER)
Please help!!
ZEN 1.3.9h stock_by_attributes_1.4.13
I installed this mod on a test store and it works fine.
Then i installed on a live store and now i can't login to admin panel. Also this live store has the MOD ADMIN PROFILE installed.
This has to be the problem.
Has anybody had the some problem?
and how did you fix it.
In the mean time i think ill install admin profiles on my test site and see if it crashs it
If you think it's an Admin Profiles problem, then the support thread for that mod would be a more appropriate place to post.
Seems unlikely though, as Admin Profiles doesn't get involved until after you've logged in. More likely (especially if AP was working before) would be that one or more of the Stock by Attributes files has ended up in the wrong place, has the wrong permissions for your server, or has gotten corrupted preventing pages from launching properly.
That's a bit speculative though, as you haven't really explained in what way you're being prevented from logging in, so there's not a whole lot to go with here.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
What i mean by not loging in the page can't be found when trying to login to admin page
Very difficult to see how either of the mods named could cause this, but let's try. What's the URL in the browser bar when you get the page not found message?
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Webstar59
The url is to the admin folder domain/adminfolder/login.php
or domain/adminfolder/index.php or just domain/adminfolder/
can't be found. Im going to do some test on my test store first
and if it works then may I did put a file in the wrong place. your MOD works fine on my test site now but will see what happens when i install admin profile MOD I know this mod has nothing to do with this thread just thought somebody here had the same problem.
Clean install Zen-cart v1.3.9h
stock_by_attributes_1-4-13
I have the same problem as the user hostilerecords on page 14
Their post was:
I have installed it and then set up stock values for each attribute, however you can still checkout with variations which are out of stock, for example;
Army Camo Jacket
10 Total
5 Medium
5 Large
I can't checkout with more than 10, thats fine.
But I can checkout with 6 Medium.
How can I Fix this?
Stock config:
Check stock level- True
Subtract stock- True
Allow Checkout- False
Show stock when low- True
----------------------------------
Webstar59 IS there a fix for this?
Update the code in your header_php.php file with the fix on page 114 of this thread.![]()
I found this tip on some blog i forgot where.
This fixed my problem. Credit gos to the bloger.
Zen Cart - stock by attributes plugin bug
I've found a couple of bugs with this, otherwise excellent, module:
1. If you are not logged in Zen Cart will allow you to progress to the login page even if you have ignored the 'delete out-of-stock' products message on the shopping cart page. This may not seem a big deal, as you can't progress further, but from a user experience perspective it's definitely not ideal.
2. If there is an out-of-stock product in your cart, all subsequent products you add will also be flagged as out-of-stock whether or not this is true.
Fortunately both issues were easy to fix with a little digging.
Issue 1 involves a modification to /includes/modules/pages/checkout_shipping/header_php.php.
Simply move the block of code under
// Stock Check
until it is above the section beginning with
// if the customer is not logged on, redirect them to the login page
This will force the page to check for stock before redirecting to the login page.
Issue 2 needs a small addition to
/includes/modules/pages/shopping_cart/header_php.php
Look for this section around line 59:
Change it to read:Code:$flagAnyOutOfStock = false; $products = $_SESSION['cart']->get_products(); for ($i=0, $n=sizeof($products); $i$n; $i++) { if (($i/2) == floor($i/2)) {
This will force a reset of the flag for each iteration of the loop which builds the....Code:$products = $_SESSION['cart']->get_products(); for ($i=0, $n=sizeof($products); $i$n; $i++) { $flagStockCheck = false; if (($i/2) == floor($i/2)) {
Bookmarks