Forums / All Other Contributions/Addons / Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Views: 660,384

Results 141 to 160 of 3,609
8 Feb 2007, 3:07 PM
#141
13moons avatar

13moons

Zen Follower

Join Date:
Nov 2003
Posts:
111
Plugin Contributions:
1

Stock by Attribute v4.0 addon for v1.3.5-1.3.9

I read through the posts and I'm not quite clear on this: If I install the latest version on 1.3.7 must all current products with attributes have stock for each attribute?
Or can I select individually which products with attributes are affected by this mod?

Thanks

8 Feb 2007, 4:25 PM
#142
redcinamn avatar

redcinamn

Zen Follower

Join Date:
Oct 2006
Posts:
175
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Ok 1 quick question :) When copying one product with attributes by stock added to it to another category and duplicating attributes does everything carry over?
For instance if I order a product from the copied item listing, does it detract the quantity from the original item listing that I added the stock by attributes to ?

Thanks!
~Renee

Red

9 Feb 2007, 9:53 AM
#143
heavenlynights avatar

heavenlynights

Zen Follower

Join Date:
Jan 2006
Location:
Australia
Posts:
303
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

crabacle:

Dear all - please see below:

OK - for the terminally stupid (which I must be) - what have I done wrong on the install? - Did anybody find any differences in the instructions and the reality for example? -

Where does the quantity box appear for the stock options? - Is it the normal attributes tab? - perhaps a screen print would be useful?

Thanks

Hello Crabacle.

I have just installed this mod and wanted to let you know that I am having the same problem as you are. Were you able to find resolution to this and if not, can someone please help us with this issue.

Cheers Heavenlynights
http://www.heavenlynightslingerie.com.au
Warning: Adult Content - Zen 1.3.8a

9 Feb 2007, 1:22 PM
#144
redcinamn avatar

redcinamn

Zen Follower

Join Date:
Oct 2006
Posts:
175
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

If you go to admin->catalog->then at the very bottom you will see Product with attributes stock. Click that and you will see what you need to get started!

Also be sure you add all of your normal attributes to each product as normal before doing this step :) Hope that helps!!
~Renee

See coffee really does help

Red

9 Feb 2007, 11:46 PM
#145
heavenlynights avatar

heavenlynights

Zen Follower

Join Date:
Jan 2006
Location:
Australia
Posts:
303
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Redcinamn:

If you go to admin->catalog->then at the very bottom you will see Product with attributes stock. Click that and you will see what you need to get started!

Also be sure you add all of your normal attributes to each product as normal before doing this step :) Hope that helps!!
~Renee

See coffee really does help

Hi Recinamn

Thank you for your suggestion, but I have to apologize, as I quoted the wrong statement.

The problem that I face is

by crabacle in a previous post
What is happening is the items with attributes are showing out of stock when selecting. Also the Attrributes page for the item (in site admin) has no fields for entering different stock numbers for the items.

Whenever I place an item in the cart that has attributes by stock it shows up as being out of stock even though it is stated in both admin>catalogue/product and **admin>catalogue>Product with attributes stock **as having the correct amount of stock that I have.

I have temporarily fixed this problem by changing the admin>stock>check stock level to false.

I don't in particular like this fix as now when I place more of a particular item in the cart than I actually have in stock it will proceed with the checkout even though there is insufficent stock to cover the order, and what is worse is that there is no indication to the customers, telling them that is only x amount of product in stock.

eg;

I may have 12 of a particular product in stock

3x white - small
3x white - medium
6x white - large

If a person adds 4 x white - small, then I have insuffient stock to cover order, yet the cart will allow the order to go through even I have set **admin>stock>allow checkout **to false and this is because the backend is not recognising the stock attributes for some reason. It is still treating stock as though this mod isn't installed.

Now because I have the check stock level set to false the other setting below in bold don't even enter into the equation I may as well not have them there.

below are my setting in admin for stock

Check stock level false (this used to set to true before mod install)
**Subtract stock true
Allow Checkout false
Mark product out of stock *** **
Stock Re-order level 2
Show stock when low false
Products status in Catalog when out of stock should be set to 1
Show Sold Out Image in place of Add to Cart 1
Product Quantity Decimals 0
Show Shopping Cart - Delete Checkboxes or Delete Button 3
Show Shopping Cart - Update Cart Button Location 3
Show New Products on empty Shopping Cart Page 1
Show Featured Products on empty Shopping Cart Page 2
Show Special Products on empty Shopping Cart Page 3
Show Upcoming Products on empty Shopping Cart Page 4

Sorry for the long winded explanation but hopefully someone will be able to understand and suggest a better resolution as this mod is an excellent concept and would be better appreciated if I could get it to work properly.

BTW, I am running Zen 1.3.7

Thanks a bunch for any assistance!!

Cheers Heavenlynights
http://www.heavenlynightslingerie.com.au
Warning: Adult Content - Zen 1.3.8a

13 Feb 2007, 12:07 AM
#146
heavenlynights avatar

heavenlynights

Zen Follower

Join Date:
Jan 2006
Location:
Australia
Posts:
303
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

:down: Sorry to bump this, but I really could do with some help here. :sadwalk:

Cheers Heavenlynights
http://www.heavenlynightslingerie.com.au
Warning: Adult Content - Zen 1.3.8a

14 Feb 2007, 3:20 AM
#147
redcinamn avatar

redcinamn

Zen Follower

Join Date:
Oct 2006
Posts:
175
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Very strange I don't have that problem at all with the addon for 1.3.7. But I have run into this problem: I have disabled the show product inventory and it is still showing the number that I have added to each size in the stock by attributes add on section. Is there a way to turn this off when using the add on?

Thanks!
~Renee

Red

14 Feb 2007, 2:51 PM
#148
redcinamn avatar

redcinamn

Zen Follower

Join Date:
Oct 2006
Posts:
175
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Fixed mine by doing this:

This one is in admin > catalog > product types > general > at the right is "edit layout" > select this and then find the weight entry and set to off "0"\

Thanks again. ~Renee

heavenlynights post the url so someone can look a the problem as well :)

Red

14 Feb 2007, 9:33 PM
#149
frogster avatar

frogster

New Zenner

Join Date:
Feb 2006
Posts:
15
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

How do I get the product Quantity in Stock value to show by attribute on the product pages. I have search the for this with no luck.

I KNOW MOM I'LL GO BLIND IF I DON'T QUIT THAT!
PHP can turn one's mind to mush. Back to the pound I go.

**Silent Thunder Products, Prices So Low Is't Almost Criminal!**

14 Feb 2007, 9:55 PM
#150
tbrides avatar

tbrides

Zen Follower

Join Date:
Oct 2006
Posts:
198
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

frogster,
i dont think this module can do that.

maybe somebody can recommend how to extract these amounts to display for you.

14 Feb 2007, 10:07 PM
#151
woodlandsprite avatar

woodlandsprite

Zen Follower

Join Date:
May 2006
Posts:
307
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

frogster:

How do I get the product Quantity in Stock value to show by attribute on the product pages. I have search the for this with no luck.

it requires additional modifications.
you if you cheeck previous version (stock by attribute for zencart 1.3) there should be some info available in the original stock by attribute thread.

Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2

14 Feb 2007, 11:05 PM
#152
heavenlynights avatar

heavenlynights

Zen Follower

Join Date:
Jan 2006
Location:
Australia
Posts:
303
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Redcinamn:

heavenlynights post the url so someone can look a the problem as well :)

Thanks for the prompt Red. The url is at the following

my store

The following url is of a product that has the stock by attribute activated on it.

**Beautiful Bridal Babydoll

Colour: White
Size: Small
3 Quantity

Colour: White
Size: Medium
6 Quantity

Colour: White
Size: Large
3 Quantity **

My settings in admin>stock are still

Check stock level false (this used to set to true before mod install)
Subtract stock true
Allow Checkout false
Mark product out of stock ***

I would like to change the "check stock level" back to true, but if I do this then every item that has the stock by attribute activated shows up as "out of stock" and cannot be ordered.

I could leave it as it is, but this won't work for me as there are products in store that I do not intend on restocking which is why I have the "check stock level" active normally

other mods that I am using are:

IH2
Links Manager 1
Aus Direct Deposit
Shipping Insurance
Recover Cart Sales
Cross Sell Products
referrals
News Box Manager
User Tracking
Off Site Payment
Western Union Money (disabled)
DRM Delivery (local delivery)
Paypal Verified
Login Box
Ask A Question
Aus Shipping (disabled)
Better Categories
Returns
Scrolling Specials
Improved Attributes Controller
Ez Pages on Site Map (which i think maybe incorporated into the 1.3.7 edition)
shopping cart with images (sidebox)
testimonials (disabled)
css flyout menu

There may be more, I can't quite remember but as you can see she is pretty much loaded with mods. I am wondering if one of the above mods is conflicking with this mod

Any assistance from anyone would be really appreciated.

Cheers Heavenlynights
http://www.heavenlynightslingerie.com.au
Warning: Adult Content - Zen 1.3.8a

14 Feb 2007, 11:29 PM
#153
tbrides avatar

tbrides

Zen Follower

Join Date:
Oct 2006
Posts:
198
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

I've asked this in another tread. I was referred to the middle of this tread, but the answer is only partially complete and I'm not great with PHP.

What i need to do is add Sold out beside the attribute if its stock level is 0.
So thats for radiobuttons, check boxes or dropdowns.

I know somebody in here has been able to do it :yes:

If so can you please PM me your attributes file, because I cant get my head around it.

15 Feb 2007, 1:32 AM
#154
frogster avatar

frogster

New Zenner

Join Date:
Feb 2006
Posts:
15
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

woodlandsprite
Thanks for the info. Found a fix at wiki but the fills they say to modify do not match the new files in zen-cart so could not get it to work at all. Some one must have gotten the stock amount to show in the product pages for this new version. Hope someone can steer me in the righ direction.

I KNOW MOM I'LL GO BLIND IF I DON'T QUIT THAT!
PHP can turn one's mind to mush. Back to the pound I go.

**Silent Thunder Products, Prices So Low Is't Almost Criminal!**

15 Feb 2007, 3:47 PM
#155
frogster avatar

frogster

New Zenner

Join Date:
Feb 2006
Posts:
15
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

[QUOTE=frank_lyy;293871]First, a little bug that I found in your new release by using beyond compare with older ones.

In functions_lookups.php on line 163:

should've been:

Next, I applied a fix by Grayson posted in archived threads to show qty of attributes on product info page. For those who still having trouble with this fix, I am including the attributes.php file here. You may drop it in includes/modules/your_template/ folder.

I am also including another alternative version of this fix (I take no credit whatsoever on this), which shows attribute stock after price_fix and weight etc. display, which makes more sense to myself, becasue this way customer won't confuse stock level with quantity discounts/surcharges. This alternative file is called attributes_Alternative.php. You need to rename it to attributes.php to overwrite the existing one when using.

Don't forget to add a define to the product_info.php in includes/languages/english/your_template folder, such as:

[define('TEXT_ATTRIBUTES_PIECES','pieces');/QUOTE]. I use 'in stock' instead of 'pieces', for it makes more sense.

Now, I need help for myself!! I tried hard to set a "display only" option value such as " select from below" to NOT show stock level, which is a conditional undone of the above fix in attributes.php. I tried codes as follows, but no luck:

This block of codes were applied after the "// prepare product options details" section and before "//radio buttons" section.

Any help on this would be greatly appreciated!

I found the fix I was looking for post # 46 Thanks Frank for the great post the patch file did just what i wanted it to and that was to add product stock to the product pages.

I KNOW MOM I'LL GO BLIND IF I DON'T QUIT THAT!
PHP can turn one's mind to mush. Back to the pound I go.

**Silent Thunder Products, Prices So Low Is't Almost Criminal!**

16 Feb 2007, 12:49 AM
#156
redcinamn avatar

redcinamn

Zen Follower

Join Date:
Oct 2006
Posts:
175
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

This should be in the same spot as well underneth I believe ?:) ~Renee

Red

16 Feb 2007, 7:42 PM
#157
tbrides avatar

tbrides

Zen Follower

Join Date:
Oct 2006
Posts:
198
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Hello,

I've a solution for adding Sold Out on the attribute if the stock of it is 0.
It works for dropdown boxes, radio buttons and checkboxes.

I've modified kuroi's attributes.php file, adding the suggestions of other people and figuring it out for dropdowns.

  • First you need to add this to:
    includes\languages\english\custom\product_info.php

if product_info.php is not there it will be in
includes\languages\english\product_info.php

Once you have added the below move the file to your custom directory

define('TEXT_ATTRIBUTES_NOT_IN_STOCK',' Sold Out');
  • I've changed the function "function zen_draw_pull_down_menu" in includes\functions\html_output.php
function zen_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) {
    $field = '<select name="' . zen_output_string($name) . '"';
    $soldout = "";
    if (zen_not_null($parameters)) $field .= ' ' . $parameters;

    $field .= '>' . "\n";

    if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]);

    for ($i=0, $n=sizeof($values); $i<$n; $i++) {
    /* Added by TB on 16/2/2007 */
    /*need to check if Sold Out occurs in the option tag for the dropdown*/
    if(strpos($values[$i]['text'], "Sold Out")) $soldout = 'class ="red bold"';
    else $soldout = "";
      $field .= '  <option '.$soldout.' value="' . zen_output_string($values[$i]['id']) . '"';
      if ($default == $values[$i]['id']) {
        $field .= ' selected="selected"';
      }

      $field .= '>' . zen_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</option>' . "\n";
    }
    $field .= '</select>' . "\n";

    if ($required == true) $field .= TEXT_FIELD_REQUIRED;

    return $field;
  }
  • Then I modified kuroi's attributes.php file. Located in
    includes\modules\custom\attributes.php.
    See attached. Rename your old one to something like attributes.php-old and upload this one.

  • Then I added the class .red to my stylesheet, which just sets color:red

If anybody cares to try this in a test environment for me after they have installed the stock by attributes module.
Please let me know how it goes. It should work, works for me, but no guarantees.

23 Feb 2007, 1:57 AM
#158
digitalrust avatar

digitalrust

New Zenner

Join Date:
Nov 2006
Posts:
13
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Then I added the class .red to my stylesheet, which just sets color:red

Wow, I've been wanting this feature for a long time. I followed all of these steps and the "Sold Out" displays correctly. The only thing is that my text isn't red or bold.

23 Feb 2007, 12:49 PM
#159
tbrides avatar

tbrides

Zen Follower

Join Date:
Oct 2006
Posts:
198
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

hi,
have you added the style to your custom stylesheet and for the radio buttons and check boxes i wrapped TEXT_ATTRIBUTES_NOT_IN_STOCK in attributes.php in span tags with the class red and bold

23 Feb 2007, 3:50 PM
#160
digitalrust avatar

digitalrust

New Zenner

Join Date:
Nov 2006
Posts:
13
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

I actually spoke too soon. I checked some other pages and noticed that adding this mod knocks out my color dropdown choices. It just returns a blank dropdown so I had to revert back.