-
Re: Product Attribute Grid
Long time reader - first time poster...
Would like to thank Absolute for this contribution! I've read other messages indicating that this functionality would be very hard to implement - was surprised to find this contribution. It works great.
Does anyone know if it should be working with quantity discounts?
I think I have quantity discounts set up correctly - but when I add to cart it doesn't seem to discount the items, even if the same size.
Any ideas?
http://97.74.65.82/index.php?main_pa...products_id=39
Thanks!
-
Re: Product Attribute Grid
POSTED
I am not sure if this is the right thread, but I am totally lost as to how to set up Attributes, options names, option values.
I don't know if I need this grid -
will this work for what I need or am I in the wrong zone?
First of all, I am selling art. It doesn't quite fit as though I were selling nuts and bolts.
I don't know what is what!
Which one is the is the Option Name-
Which one is the is the Option Value - and
Which one is the is the Attribute???
I am confused!
When a client clicks on the image, I want them to have a choice of everything in which that this image is available.
Example:
I posted the chart, examples, and notes:
http://www.artsales.net/_asn/samples/pricechart_3.html
I will give the details of each edition and each product in the description area, and then want a chart under it where they make their selections.
For each art image, I assign it an image#
I want to show all the available editions this artwork is available in.... Let us say one image is available in four editions:
Premier, First, Limited, & CanTree.
Each edition FOR THIS IMAGE is a different size. -
PREMIER Edition: 45x32
FIRST Edition: 34x24
LIMITED Edition: 26x18.5
CanTree Charity Edition: 21x15
and the image comes in other products, (such a note cards). see my online example at the link above. (I did overkill here, but wanted to show all the possibilities that one image could be available in.)
Each one of the Editions is available in either an Artist Proof or a Print. Each has separate prices.
However, in some cases the in the editions I offer there are no Artist Proofs, just prints.
In addition, the Premier edition is not always 45x32
And the First edition is not always 34x24 etc, etc,
So how do I program this?
What is considered the Attributes, options names, option values
with this scenario
Yes, I read the guide- I still do not know how to convert the example Zen gives of "color and size XL L M sm" to suit my art products.
If ANYONE can make sense of this and help me out, I'd appreciate it. I just installed the latest version of Zen- on 4/12/09 and have everything up and running for the most part and am now stumped as to how to set this up so I can upload product.
:blink: ???
Thanks april_may
-
Re: Product Attribute Grid
OK- I worked on this and finally figured out I do NOT need the attributes grid. I listed the editions as option values- and had to list the Limited edition AP and P's separately. All other info I put into the description-
Sorry to have interupted this thread.
-
Re: Product Attribute Grid
Quote:
Originally Posted by
john_dude
Long time reader - first time poster...
Does anyone know if it should be working with quantity discounts?
I think I have quantity discounts set up correctly - but when I add to cart it doesn't seem to discount the items, even if the same size.
That was (my) user error. I didn't have it set up properly in the admin section - quantity discounts works great!
Thanks again Absolute for this great extension.
-
Re: Product Attribute Grid
Quote:
Originally Posted by
Absolute
The two modules would not function together, as the module we have created relies on a number of product specific hidden variables when the form is submitted.
The solution to the problem you are looking to solve has been created already however! We have it running on a couple of our sites. If you want a pointer in the right direction, you would need to update your cart action script to add the items to cart with attributes, and then on your product listing page, show all the product attributes with speific field names.
It can be done, but requires a little PHP knowledge.
Absolute
Thanks for the pointer Absolute! I am learning PHP right now
-
Re: Product Attribute Grid
Well, thanks to john_dude, v1.1.1 of this module will be released within the next few days.
The new release addresses the following issues and fixes:
- New OPTION TYPE created in admin, so you can now specify GRID when select radio, select boxes, text etc
- Module designed to work with Stock by Attribute module, with no updating to scripting required.
- Grid can now be used in conjunction with additional options, such as a checkbox or text field
- You can now setup 1 or 2 GRID type options. If only 1 GRID type option is created, the grid automatically defaults to showing the QTY field as the additional axis
The module is BETA testing now, and as long as everything goes smoothly, the new release should be here by the end of the week.
Development of these modules is only really possible due to the support of other members, and my thanks go to john_dude for his!
Absolute
-
Re: Product Attribute Grid
Can't wait to see the updated module :) That auto Qty will be interesting to see and should make things easier for a lot of people :)
-
Re: Product Attribute Grid
The new module has been released, and we are currently waiting for it to be approved before it can be found in the downloads section. The module will appear here: http://www.zen-cart.com/index.php?ma...roducts_id=876
Looking forward to some feedback!
Absolute
-
Re: Product Attribute Grid
Its now in the download section and I will be loading it into my store very soon! If it is as straightforward as the last version it would be rather quick and easy to get up and going. I'll let you know how i find it :)
-
Re: Product Attribute Grid
I have just loaded it up and it works fine :) looks different because there is no actual grid around the attributes like the previous version but hey I like it better.
I had to add some details in the css to align the option name txt to the center but was not able to work out how to make the attribute quantity boxes wider. Any help would be appreciated:)
-
Re: Product Attribute Grid
You can try adding the following to your stylesheet:
Code:
.attrib-grid-cell input { width: 100px; }
All borders were removed from this release, as there were a number of comments in this thread about how they were set usnig border="1" within the html, rather than using CSS. You can still have a border if you wish, but this would need to be setup using styles such as:
Code:
#attrib-grid-table { border: 1px solid red; }
#attrib-grid-table td { border: 1px solid blue; }
Absolute
-
Re: Product Attribute Grid
I have a situation i think this mod can help me with but i am not sure. the main thing i am questioning is a qty issue.
i have a top category with products A, B, C, D, E, each product has one attribute that must be selected via radio bttn.
i want to sell these products in case and multiple case lots only. each case must total 12 products in all. no more or less.
so a customer would have to make up a case of 12 products using any combination of products A thru E and choosing the req'd attribute for each.
is it possible to require this case total? if so what happens if some tries to add to cart with an in correct total? can this work in multiples of a set number? in my case multiples of 12? i.e. a total of 12,24,36 would be recognized as 1,2 and 3 cases respectively. totals not equaling a multiple of 12 would cause an error mssg or something.
thx in advance
-
Re: Product Attribute Grid
The solution you're looking for isn't related to this module, as this module doesn't control the actual order, but the items you are adding to the order.
The problem you are looking at is related to the "Product Qty Units" in the product setup page. This value should be set to 12, and you should then set your "Product Qty Min/Unit Mix" value to TRUE. This means that the same products, with different attributes can be mixed together to make up the 12, but they have to have a multiple of 12 to checkout.
If you want to mix the total quantity across all 5 products, so 1 could order 1xA, 2xB, 3xC, 4xD, 14xE, this would have to be custom written into your store.
Absolute
-
Re: Product Attribute Grid
Thx Absolute. i had to find a diff solution. i had tried the settings u suggest already and i got error mssgs. i looked those up as well and found that it seems to be a bug in 1.3.8. i tried the suggested fix for the bug and that just screwed everything up so i have gone a diff. route.
thx agaiin
-
Re: Product Attribute Grid
I've installed this addon and it's working great, except that the prices are displaying minus tax, even though I've got 'Display Prices with Tax' set to true. Is there any way around this?
Cheers for any help, Emily
-
Re: Product Attribute Grid
Hmm, I don't seem to be having any luck with this. After posting yesterday (prices displaying minus tax) I realised that there was a new version of the addon since I had first installed it. So, I tried upgrading (simply replacing the files as the instructions said) and it stopped working altogether. I've just tried a completely fresh installation of Zen Cart and tried again, but still no luck. The earlier version installed really easily, so I'm not sure what I'm doing wrong.
Can anyone offer any advice?
Cheers, Emily
-
Re: Product Attribute Grid
Quote:
Originally Posted by
webfooted
Hmm, I don't seem to be having any luck with this. After posting yesterday (prices displaying minus tax) I realised that there was a new version of the addon since I had first installed it. So, I tried upgrading (simply replacing the files as the instructions said) and it stopped working altogether. I've just tried a completely fresh installation of Zen Cart and tried again, but still no luck. The earlier version installed really easily, so I'm not sure what I'm doing wrong.
Can anyone offer any advice?
Cheers, Emily
Emily,
did you change your Option Type to Grid?
Anthony
-
Re: Product Attribute Grid
Does anyone know how to lay the grid out vertically?
-
Re: Product Attribute Grid
Quote:
Originally Posted by
flowerchild5
Does anyone know how to lay the grid out vertically?
That is using the latest version of this mod
The old way of adding the following to the style sheet is not working
#tab_attrib-grid-opt-nameV { vertical-align: top; }
-
Re: Product Attribute Grid
Quote:
Originally Posted by
flowerchild5
Emily,
did you change your Option Type to Grid?
Anthony
Ah, thanks Anthony, I had completely missed that. That's done the trick! Thanks for your help.
Cheers, Emily
-
Re: Product Attribute Grid
Quote:
Originally Posted by
flowerchild5
Does anyone think (or know) that this mod could be combined with the "
drop down attributes at product listing mod", so that I could create a "quick order on steroids". The grid format would be on the product listing page rather than product info. That way a customer could order for example 5 of one size of shoe and 10 of another size of product a then order 20 of one size and 30 of another of product b on the same page.
I tried combining the 2 modules on my test site with no success. Probably because of my lack of php knowledge.
Anyone tried to combine the 2 modules yet? I really would like to have the grid layout module combined with the drop down attributes at product listing
-
Re: Product Attribute Grid
I've now got the latest version of the addon working, thanks to Anthony. I've still got a problem with the attribute prices displaying before tax, when I need them to include the tax. Can anyone help with this?
Cheers, Emily
-
Re: Product Attribute Grid
If you want to change teh grid to display vertically, just change the sort order of the 2 attributes. If you're only using one attribute, then create a second one which is QTY, in exactly the same way you did for the first version. You can then just change the sort order of these 2 attributes, and hey-presto, horizontal becomes vertical.
Absolute
-
Re: Product Attribute Grid
Quote:
Originally Posted by
manage-it
Anyone tried to combine the 2 modules yet? I really would like to have the grid layout module combined with the drop down attributes at product listing
You can't really combine these two modules, as they would essentially be doing the same thing, so I would suggest that a completely new module was created, to compliment the new GRID type attribute.
Can you post a "proposed screenshot" so that we can get a better idea of what you want this module to look like, and if it's possible, we can take it from there.....
-
Re: Product Attribute Grid
Quote:
Originally Posted by
Absolute
If you want to change teh grid to display vertically, just change the sort order of the 2 attributes. If you're only using one attribute, then create a second one which is QTY, in exactly the same way you did for the first version. You can then just change the sort order of these 2 attributes, and hey-presto, horizontal becomes vertical.
Absolute
Unfortunately I am using just one attribute and if I add the 2nd attribute of quantity the "Stocks by attributes" Mod won't work. I can make the horizontal layout will work.
Anthony
-
Re: Product Attribute Grid
Why is it that this mod does not show the attribute values in their proper sort order. It appears that it is sorting them in alphabetical/numerical order. As you can see this is in alphabetical order.
http://www.teamjsales.net/Image1.jpg
It should be sorted according to size - smallest first.
-
Re: Product Attribute Grid
Have you set up the sort order on a PER PRODUCT basis, or just on the actual option values? You would need t ensure that the sort order is set through the ATRRIBUTE CONTROLLER, for each product, rather than setting the global sort orders on the option values page.
This can be seen on our test site, where we have set the sort orders in reverse price order to confirm.
Absolute
-
Re: Product Attribute Grid
Quote:
Originally Posted by
Absolute
Have you set up the sort order on a PER PRODUCT basis, or just on the actual option values? You would need t ensure that the sort order is set through the ATRRIBUTE CONTROLLER, for each product, rather than setting the global sort orders on the option values page.
This can be seen on our test site, where we have set the sort orders in reverse price order to confirm.
Absolute
Absolute this took care of the problem. Thank you very much. Will I have to update each product individually or is there a global change I can make?
-
Re: Product Attribute Grid
FlowerChild - I don't think there is a global setting within the admin, however, you can run an SQL statement against the table, and set the sort orders for each attribute like that.
Absolute
-
1 Attachment(s)
Re: Product Attribute Grid
I wanted a way to allow multiple sizes to be ordered at one time. I also need the ability to allow customer to "attach files" for upload.
Before i installed "Product Attribute Grid" upload was working just fine...
After i installed ["B]Product Attribute Grid[/B]" any options that should "accept uploaded files" don't work. It instead put the word "TEXT" where the "filename should be".
In other cases these fields that should "accept upload files" don't show up at all in the cart. Here's a snapshot of 3 senarios. I included the "input screen" the customer would fill out and the CART to show what is happening.
http://www.promotees.com/samples/zen_nofileupload.jpg
(also attached it so you can see it enlarged)
ITEM 1 IN CART:
shows that it "DOES" show the upload field of "Sticker-175" but doesn't show the filename instead it says "TEXT".
(doesnt upload a file either)
ITEM 2 IN CART:
This is the actual way i intent to use the grid (for custom products). As you can see here it didn't include "either upload files" Filename-Front or Filename-Back.
** no file was uploaded either **
ITEM 3 IN CART:
This is a product "WITHOUT" using the PRODUCT ATTRIBUTE GRID". The upload filed "Sticker-175" shows up and has the filename like it should
The file does upload
Obviously i am doing something wrong and i can't find any directions on how to use the module so is it possible i "CAN'T" have several drop down boxes or radio boxes if i use the grid module?
I am so confused as to what is happening. I couldn't fine any documentation in the product attribute grid module as to how to use it all i got was the installation directions.
ZEN VERSION: 1.3.8a
OTHER MODULES INSTALLED: Enhanced Attribute Controller
-
Re: Product Attribute Grid
I am having a different issue- mod works perfect but has the wrong out of stock button- I have uploaded the button and can't find an out of stock button anywhere- but it matches my store so I assume it's got a name I don't realize... any tips?
-
Re: Product Attribute Grid
luvingmamma - Right click on the button, and select properties, or Copy Image Location, depending on your browser. This will then show you where the file is stored for this button.
Absolute
-
Re: Product Attribute Grid
printchic - when we first created this module, it only worked with 2 fields, which had to be select boxes, or radio fields. The new release now has it's own attribute type, which is the grid, and this allows you to use the module with additional attributes, for example a text field, which is then applied to all products added to the cart from within the grid.
During this update, we did not test with the file upload feature, as it wasn't a requirement for the sponsoring client. It appears that this type of attribute is currently being uploaded as an additional text field, rather than the required file type.
Absolute
-
Re: Product Attribute Grid
Firstly Thanks for a great mod, works great.
I do have a question, is there a simple way to change the way the grid is laid out? Or am I going to have to get my hands dirty with a bit more coding?
What I need to do is this...
Currently the grid is like this;
Size
Small dress size 8-10 Medium dress size 12 to 14 Large dress size 16-18
Qty........ [ ]...................... [ ] ................................... [ ]
what i would like is;
Size
Small dress size 8-10............ [ ]
Medium dress size 12 to 14.... [ ]
Large dress size 16-18.......... [ ]
Any suggestions?
Thanks
Lee
-
Re: Product Attribute Grid
Do'h...
I just read the thread again 'Properly' and found the answer on the previous page... :blush:
Isn't life simple when you read the instructions...
Thanks again for the excellent mod
Lee
-
Re: Product Attribute Grid
Ok, I'm doing something wrong here...
I followed Absolutes instructions for setting up the attribute grid vertically. But now I have a stray radio button called Qty floating over my attribute grid.
I created a second grid attribute and called it qty, reversed the order as instructed, the grid looks great, but the rouge radio button is confusing. Any pointers would be greatly appreciated.
Thanks
Lee
-
Re: Product Attribute Grid
Gday Absolute.
Thanks for a great mod. Really helps alot.
Problem Im having is two lots of attribute images show up.
BOF attribGrid
[name] [name] [name] [name] [name]
[qty] [qty] [qty] [qty] [qty]
[att image] [att image] [att image] [att image] [att image]
EOF attribgrid
BOF attribImage
[att image]
[att image]
[att image]
[att image]
[att image]
EOF attribImage
Just cant get ris of the bottom images. the attrib grid images line up spot on. How do I get rid of the bottom images and keep the grid images please
-
Re: Product Attribute Grid
Sorry disregard last request.
Options names - atrribute name - Attribute Style for Radio Buttons/Checkbox: 0 to 1 fixes this problem.
-
Re: Product Attribute Grid
Hi,
I've read through this thread but I'm afraid I still need a bit of help.
I have installed this module but can't seem to make it do what I need (my fault I'm sure as I'm still learning Zen Cart).
I have a product, ice cream which has three flavours (chocolate, vanilla, strawberry). I'd like customers to be able to select say 2 pots chocolate, 1 vanilla.
This is where I am currently (module installed)
http://new.urbanfoodie.net/shop/images/have.jpg
This is where I'd like to be:
http://new.urbanfoodie.net/shop/images/want.jpg
Can anyone help me with:
A aligning the flavour/quantity boxes vertically?
B getting rid of the quantity box above the add to basket?
Detailed explanations would be good, as I say I'm new.
Thanks very much
-
Re: Product Attribute Grid
I need this add on as we sell t-shirts with custom requirements. like, Size, Color, Logo, Name, Locations for them and so on.
I installed this and now when I set my size to grid the required warning for my other attributes don't work any more. And if you click add to cart with no quantity or other attribute selected it bring you to an empty cart.
It won't let the upload work for the logo either.
Also I installed the edit cart add-on and it works fine until I change an attribte to grid, then you can't edit the product in the cart.
Again everything works the way it should if there are no attributes using the grid. Can someone help me fix these problems?:frusty:
-
Re: Product Attribute Grid
Quote:
Originally Posted by
urbanfoodie
Hi,
I've read through this thread but I'm afraid I still need a bit of help.
I have installed this module but can't seem to make it do what I need (my fault I'm sure as I'm still learning Zen Cart).
I have a product, ice cream which has three flavours (chocolate, vanilla, strawberry). I'd like customers to be able to select say 2 pots chocolate, 1 vanilla.
This is where I am currently (module installed)
http://new.urbanfoodie.net/shop/images/have.jpg
This is where I'd like to be:
http://new.urbanfoodie.net/shop/images/want.jpg
Can anyone help me with:
A aligning the flavour/quantity boxes vertically?
B getting rid of the quantity box above the add to basket?
Detailed explanations would be good, as I say I'm new.
Thanks very much
Can anyone help with this?
-
Re: Product Attribute Grid
Quote:
Originally Posted by
Absolute
printchic - when we first created this module, it only worked with 2 fields, which had to be select boxes, or radio fields. The new release now has it's own attribute type, which is the grid, and this allows you to use the module with additional attributes, for example a text field, which is then applied to all products added to the cart from within the grid.
During this update, we did not test with the file upload feature, as it wasn't a requirement for the sponsoring client. It appears that this type of attribute is currently being uploaded as an additional text field, rather than the required file type.
Absolute
Thanks for the explanation Abosolute
Signed,
Printchic
-
1 Attachment(s)
Re: Product Attribute Grid (need text box for comments)
Hi,
First i want to say thanks for this wonderful addon.
If i use the product attribute grid feature on a product can i also use a "stand-alone" text box to allow input of comments, instructions, etc.
Seems that i can't get any options marked as "text" to show up on the Attribute Controller area for me to select.
I have an option called "comments" and it set to "text" but... when i get to the attribute's controller page "it's not there to be added to a product".
Doesn't matter what i add if it is a text box it doesn't show up.
So that is why i am asking with the grid attributed can i have separate "text" options not associated with qty grid i have setup?
Hope this make sense. I've attached a screen shot to show what i am trying to accomplish
Signed,
Printchic
-
Re: Product Attribute Grid (need text box for comments)
Forgot to mention;
Store version: 1.3.8a
Other Script Installed: Imprinted Attribute Controller
Quote:
Originally Posted by
printchic
Hi,
First i want to say thanks for this wonderful addon.
If i use the product attribute grid feature on a product can i also use a "stand-alone" text box to allow input of comments, instructions, etc.
Seems that i can't get any options marked as "text" to show up on the Attribute Controller area for me to select.
I have an option called "comments" and it set to "text" but... when i get to the attribute's controller page "it's not there to be added to a product".
Doesn't matter what i add if it is a text box it doesn't show up.
So that is why i am asking with the grid attributed can i have separate "text" options not associated with qty grid i have setup?
Hope this make sense. I've attached a screen shot to show what i am trying to accomplish
Signed,
Printchic
-
Re: Product Attribute Grid (need text box for comments)
Quote:
Originally Posted by
printchic
Hi,
First i want to say thanks for this wonderful addon.
If i use the product attribute grid feature on a product can i also use a "stand-alone" text box to allow input of comments, instructions, etc.
Seems that i can't get any options marked as "text" to show up on the Attribute Controller area for me to select.
I have an option called "comments" and it set to "text" but... when i get to the attribute's controller page "it's not there to be added to a product".
Doesn't matter what i add if it is a text box it doesn't show up.
So that is why i am asking with the grid attributed can i have separate "text" options not associated with qty grid i have setup?
Hope this make sense. I've attached a screen shot to show what i am trying to accomplish
Signed,
Printchic
Nevermind, i fixed it. Found some code on board to add the "text" option code back into the database. It misteriously disappeared.
-
Re: Product Attribute Grid
So after a bonehead start I FINALLY got my grid to display.. (Reading really is fundamental!:laugh:)
I am sooooooo loving that this mod has been setup to work SPECIFICALLY with Stock By Attributes.. Whoo hoo!!! I think this will work perfectly for the client I want to use this with..
Only ONE tiny issue..:wacko:
When I add an available combo to the cart, it doesn't add the item to the cart, and flashes up the "Your Cart Is Empty" message.. I double checked EVERYTHING.. I did a Winmerge of the "tpl_product_info_display.php" to bring over the Tabbed Products Pro code... All LOOKS the way it should, but it's not ACTING the way it should.. HELP!!
Link to example product:
http://testsite.overthehillweb.com/z...products_id=25
-
Re: Product Attribute Grid
Quote:
Originally Posted by
DivaVocals
So after a bonehead start I FINALLY got my grid to display.. (Reading really is fundamental!:laugh:)
I am sooooooo loving that this mod has been setup to work SPECIFICALLY with Stock By Attributes.. Whoo hoo!!! I think this will work perfectly for the client I want to use this with..
Only ONE tiny issue..:wacko:
When I add an available combo to the cart, it doesn't add the item to the cart, and flashes up the "Your Cart Is Empty" message.. I double checked EVERYTHING.. I did a Winmerge of the "tpl_product_info_display.php" to bring over the Tabbed Products Pro code... All LOOKS the way it should, but it's not ACTING the way it should.. HELP!!
Link to example product:
http://testsite.overthehillweb.com/z...products_id=25
So I read back through this thread and found the answer.. It appears that this is related to the Sept 23rd Security patch. If you've implemented the Sept 23rd security patch, it will cause this mod to stop working correctly. I applied the fix outlined belwo, and all is now right with the world!!:clap:
I wanted to summarize what the issue is for the next person who has this issue... I've also attached an updated version of the security patch which includes the suggested changes to the patch posted by Wilt back in October. After unzipping the attached file, it should be uploaded to /includes/extra_configures/
Wilt's Post: http://www.zen-cart.com/forum/showpo...0&postcount=83
Quote:
Originally Posted by
wilt
k,
I installed the attributes grid contribution on a stock 1.3.8 install with the most up to date Security patch file.
It does in fact stop this contribution from adding items to the cart.
The reason is, that the security patch uses a whitelist of characters that are allowed in the to be keys of the products_id array.
The attribute grid contribution uses extended product ids, as keys and these fail the whitelist test.
The fix is fairly simple.
In the security patch, there is a function called.
securityPatchSanitizePostVariableProductsId
and in this is the line
PHP Code:
if (ereg_replace('[0-9a-zA-z_]', '', $key) != '')
this should be changed to
PHP Code:
if (ereg_replace('[0-9a-zA-z_:]', '', $key) != '')
We will look to release an updated patch (probably this weekend)
Our apologies for the inconvenience, however we took the position that using a whitelist was more secure than relying on a simple blacklist.
Keywords:
Your Shopping Cart is Empty
Shopping cart empty
empty shopping cart
does not add products
security patch
nothing added to shopping cart
-
Re: Product Attribute Grid
I am running Stock By Attributes, and unfortunately I am developing this on a localhost system so it is difficult to post up a URL. I will try to put it on a live server so you can all view. Here is my dilemma.
This module is awesome, but I'm attempting to do something a little more complex than the module may allow. I would like to use the grid, however I would like it to display 4 different attributes, say...
Size, Length, Thickness, Height and then the Price and then Quantity Box. So in other words...
SIZE | LENGTH | Thickness | HEIGHT | Price | QTY
All in one row. The Size, Length, Thickness and Height are all produced through the attributes controller, but I want to display them across, similar to a catalog style. I am also running into the issue of getting attributes to repeat, for example...
Size has many different variants, but Length, Thickness and Height are are all the same. So for example it would be...
SIZE | LENGTH | Thickness | HEIGHT | Price | QTY
1 | 1 | 1 | 1 | 70 | QTY
2 | 1 | 1 | 1 | 80 | QTY
My thought is to write a separate SQL query that grabs my Stock By Attributes info, and displays it out, and just rewriting the Grid slightly to display the way that I want.
Does anyone have an suggestions?
-
Re: Product Attribute Grid
I guess I'm trying to understand why you need to create product variants for this quad combo of attributes.. Why create product attributes for values that NEVER change?? It sounds very much like you only need ONE attribute (size)
If the Length, Thickness and Height is the same for ALL sizes, then you would only need to create a single attribute for the size, and then VERY CLEARLY in your product description state that the Length, Thickness and Height for all sizes is the same..
Quote:
Originally Posted by
mkonchalski
I am running Stock By Attributes, and unfortunately I am developing this on a localhost system so it is difficult to post up a URL. I will try to put it on a live server so you can all view. Here is my dilemma.
This module is awesome, but I'm attempting to do something a little more complex than the module may allow. I would like to use the grid, however I would like it to display 4 different attributes, say...
Size, Length, Thickness, Height and then the Price and then Quantity Box. So in other words...
SIZE | LENGTH | Thickness | HEIGHT | Price | QTY
All in one row. The Size, Length, Thickness and Height are all produced through the attributes controller, but I want to display them across, similar to a catalog style. I am also running into the issue of getting attributes to repeat, for example...
Size has many different variants, but Length, Thickness and Height are are all the same. So for example it would be...
SIZE | LENGTH | Thickness | HEIGHT | Price | QTY
1 | 1 | 1 | 1 | 70 | QTY
2 | 1 | 1 | 1 | 80 | QTY
My thought is to write a separate SQL query that grabs my Stock By Attributes info, and displays it out, and just rewriting the Grid slightly to display the way that I want.
Does anyone have an suggestions?
-
Re: Product Attribute Grid
For most of the products I do only need on attribute.
For about 10% of my stock there are two changing attributes. The core issue is that I am asking many people who are relatively uneducated to purchase from the online catalog. This means that I need to spell things out for them, as simply as possible, so by displaying all of the attributes at once, with a price and a quantity box and an ADD TO CART button, it makes it very simple for them to just put the order through....
I've been tearing apart the STOCK BY ATTRIBUTES code and slowly getting it to work the right way...very slowly...two full days and counting. Hopefully it will be done today and I'll be able to share it with everyone.
The other aspect was the Attribute Stock Sku. So I modified Stock By Attributes to include a SKU which will print to every product as well.
-
Re: Product Attribute Grid
Quote:
Originally Posted by
mkonchalski
For most of the products I do only need on attribute.
For about 10% of my stock there are two changing attributes. The core issue is that I am asking many people who are relatively uneducated to purchase from the online catalog. This means that I need to spell things out for them, as simply as possible, so by displaying all of the attributes at once, with a price and a quantity box and an ADD TO CART button, it makes it very simple for them to just put the order through....
I gathered that, and I understand.. However, I still think you can acheive that level of understanding without hacking this mod to achieve it.. JMHO..:smile:
-
Re: Product Attribute Grid
Quote:
Originally Posted by
mkonchalski
I've been tearing apart the STOCK BY ATTRIBUTES code and slowly getting it to work the right way...very slowly...two full days and counting. Hopefully it will be done today and I'll be able to share it with everyone
Curious as to what changes you are making to SBA.. When you say "right way" what does that mean??
-
Re: Product Attribute Grid
Well....So far here is what I have done to Stock By Attributes...
1. Added SKU support. Printing a SKU for each and every varient, as well as printing that SKU to orders. I don't need it available to customers, but I am going to add it in, in the event that someone does need SKU support for customers.
2. 0 Stock. In SBA, you can't just put in 0 under quantity, you have to type 00, or +0 or -0. This is a pain in the ######.
Those are the two things I have changed for SBA...
As for the GRID....
1. Using the EXPLODE function in SBA display to display products in the grid format I need.
2. I have the module displaying and adding the product to the cart. With the attribute hidden fields, and it also checks all stock level by SBA. This works for me since all products with attributes, are controlled by SBA, and all others have standard stock check from the Products database...
I have yet to Get the attributes and price to display correctly. in the shopping cart. At least in the attribute list. The attribute hidden fields are working wonderfully, I should have it worked out this weekend though. I gave up on it for the last few days and took a mini vacation to ease my mind from ripping apart code. I'll make sure I post everything up for the world to see soon. I can send anyone that wants to see my modifications a sample if they want to see, PM me.
-
Re: Product Attribute Grid
Hey Guys,
Has anyone managed to get this working with the file upload box yet?
I'm currently working on a MASSIVE project involving attributes - basically, the customer can pick different attributes for different positions of a garment (ie, a certain logo for the left chest side of a shirt).
Anyway, it's all tied together using Attributes grid. I can't have one without the other really.
I'm going to try and work on a fix regardless and keep you updated if I get anywhere with it :D.
-
Re: Product Attribute Grid
Hello Everyone, i have 2 questions:
1. Does Attributes Grid work with more than 2 attributes? Attributes Grid seems to be exactly what i need, however because a grid is 2 dimensional i assume it only works with products with 2 attributes and once a product has more than 2 attributes it does not work. Is this true? It would be stupendous if i was mistaken here!!!
2. Can anyone confirm whether or not Attributes Grid works with Stock by Attributes Ajax or Stock by Attributes Multiadd? I know it works with Stock by Attributes 4.7 by Kuroi
-
Re: Product Attribute Grid
Quote:
Originally Posted by
Schweb Design
Hello Everyone, i have 2 questions:
1. Does Attributes Grid work with more than 2 attributes? Attributes Grid seems to be exactly what i need, however because a grid is 2 dimensional i assume it only works with products with 2 attributes and once a product has more than 2 attributes it does not work. Is this true? It would be stupendous if i was mistaken here!!!
2. Can anyone confirm whether or not Attributes Grid works with Stock by Attributes Ajax or Stock by Attributes Multiadd? I know it works with Stock by Attributes 4.7 by Kuroi
I answered via PM.. I'll post this here too though.. It is only 2 dimensional.. (works with only two attributes..)
-
Re: Product Attribute Grid
Update:
I took some code out of includes/classes/shopping_cart.php and modified it.
PHP Code:
$real_ids = isset($_POST['id']) ? $_POST['id'] : "";
if (isset($_GET['number_of_uploads']) && $_GET['number_of_uploads'] > 0) {
include_once(DIR_WS_CLASSES . 'upload.php');
for ($i = 1, $n = $_GET['number_of_uploads']; $i <= $n; $i++) {
if (zen_not_null($_FILES['id']['tmp_name'][TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]]) and ($_FILES['id']['tmp_name'][TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]] != 'none')) {
$products_options_file = new upload('id');
$products_options_file->set_destination(DIR_FS_UPLOADS);
$products_options_file->set_output_messages('session');
if ($products_options_file->parse(TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i])) {
$products_image_extension = substr($products_options_file->filename, strrpos($products_options_file->filename, '.'));
if ($_SESSION['customer_id']) {
$db->Execute("insert into " . TABLE_FILES_UPLOADED . " (sesskey, customers_id, files_uploaded_name) values('" . zen_session_id() . "', '" . $_SESSION['customer_id'] . "', '" . zen_db_input($products_options_file->filename) . "')");
} else {
$db->Execute("insert into " . TABLE_FILES_UPLOADED . " (sesskey, files_uploaded_name) values('" . zen_session_id() . "', '" . zen_db_input($products_options_file->filename) . "')");
}
$insert_id = $db->Insert_ID();
$real_ids[TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]] = $insert_id . ". " . $products_options_file->filename;
$products_options_file->set_filename("$insert_id" . $products_image_extension);
if (!($products_options_file->save())) {
break;
}
} else {
break;
}
} else { // No file uploaded -- use previous value
$real_ids[TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]] = $_POST[TEXT_PREFIX . UPLOAD_PREFIX . $i];
}
}
}
$_POST['attribs'][$prid][$option] = $option_value;
}
}
I placed this after "foreach($_POST['id'] as $option => $option_value) {" in the extra cart actions folder for this module.
Now, this works ok, but it checks every single attribute for an upload, not the upload field in itself, meaning I get a heap of messages saying 'file not uploaded' among 2 or 3 which I did actually upload.
Also, the value doesn't appear on the attributes list below any more either!
I can't work this out!
-
Re: Product Attribute Grid
Can anyone get the problem fixed? Upload not working with grid attribute enabled. Please post a solution if you have one.
-
Re: Product Attribute Grid
Quote:
Originally Posted by
mkonchalski
Well....So far here is what I have done to Stock By Attributes...
1. Added SKU support. Printing a SKU for each and every varient, as well as printing that SKU to orders. I don't need it available to customers, but I am going to add it in, in the event that someone does need SKU support for customers.
2. 0 Stock. In SBA, you can't just put in 0 under quantity, you have to type 00, or +0 or -0. This is a pain in the ######.
Those are the two things I have changed for SBA...
As for the GRID....
1. Using the EXPLODE function in SBA display to display products in the grid format I need.
2. I have the module displaying and adding the product to the cart. With the attribute hidden fields, and it also checks all stock level by SBA. This works for me since all products with attributes, are controlled by SBA, and all others have standard stock check from the Products database...
I have yet to Get the attributes and price to display correctly. in the shopping cart. At least in the attribute list. The attribute hidden fields are working wonderfully, I should have it worked out this weekend though. I gave up on it for the last few days and took a mini vacation to ease my mind from ripping apart code. I'll make sure I post everything up for the world to see soon. I can send anyone that wants to see my modifications a sample if they want to see, PM me.
Can't wait to see your final solutions..:smile:
Re: the bolded item.. I don't know which version of SBA you have installed, but the 4.7 version written by Kuroi will indeed allow you to zero out your inventory or even delete a product variant with no muss or fuss about it.. You simply enter "0" for the quantity in stock, save and it works perfectly..
For my money the Ver 4.7 of SBA by Kuroi (as opposed to the MultiAdd and Ajax versions) is the only stable SUPPORTED version of SBA available..
The authors of the MultiAdd and Ajax versions unfortunately put their version up and have failed to properly support them. The Ajax version is missing important files it needs to work, and most folks have had to kluge together code to make this version whole.. I have tried both of the "other" versions and have never been able to get either one to work properly.. (plus I see no real benefit of the MultiAdd or Ajax versions)
From following the SBA support thread, the Ajax version and the MultiAdd versions of SBA are the versions people most often have issues with. That said I do use is the stylesheet from the MultiAdd version of SBA.. I like the way it makes a visual distinction between the products and it's variants.. Otherwise the Kuroi version of SBA is stable and works EXACTLY as Kuroi has described it. (no filler added:smile:)
I can't say for sure, but I believe that when the author of this mod says it works with SBA, that he means the Kuroi release of SBA, and not "the others":laugh:.
-
Re: Product Attribute Grid
Thanks to thomasharding's post and some PM his code inserted into the file absolute_products_with_attributes.php in the includes/extra_cart_actions/ folder we now have the uploads working but with a glitch. It doesn't add the attribute to the cart so it would be hard for the owner of the site to know that someone added an upload.
I am reaching out to the devs or anyone else for some help to get this to work.
Here is the code that was used ,
##########BEGIN UPLOAD HACK#############
$real_ids = isset($_POST['id']) ? $_POST['id'] : "";
if (isset($_GET['number_of_uploads']) && $_GET['number_of_uploads'] > 0) {
/**
* Need the upload class for attribute type that allows user uploads.
*
*/
include(DIR_WS_CLASSES . 'upload.php');
for ($i = 1, $n = $_GET['number_of_uploads']; $i <= $n; $i++) {
if (zen_not_null($_FILES['id']['tmp_name'][TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]]) and ($_FILES['id']['tmp_name'][TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]] != 'none')) {
$products_options_file = new upload('id');
$products_options_file->set_destination(DIR_FS_UPLOADS);
$products_options_file->set_output_messages('session');
if ($products_options_file->parse(TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i])) {
$products_image_extension = substr($products_options_file->filename, strrpos($products_options_file->filename, '.'));
//Arch 04/2007 - to add product name to uploaded file
$prod_image_name = substr($products_options_file->filename, 0,-4);
//eof
if ($_SESSION['customer_id']) {
$db->Execute("insert into " . TABLE_FILES_UPLOADED . " (sesskey, customers_id, files_uploaded_name) values('" . zen_session_id() . "', '" . $_SESSION['customer_id'] . "', '" . zen_db_input($products_options_file->filename) . "')");
} else {
$db->Execute("insert into " . TABLE_FILES_UPLOADED . " (sesskey, files_uploaded_name) values('" . zen_session_id() . "', '" . zen_db_input($products_options_file->filename) . "')");
}
$insert_id = $db->Insert_ID() . $prod_image_name ;
$real_ids[TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]] = $insert_id . ". " . $products_options_file->filename;
$products_options_file->set_filename("$insert_id" . $products_image_extension);
if (!($products_options_file->save())) {
break;
}
} else {
break;
}
} else { // No file uploaded -- use previous value
$real_ids[TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]] = $_POST[TEXT_PREFIX . UPLOAD_PREFIX . $i];
}
}
//$this->add_cart($_POST['products_id'], $this->get_quantity(zen_get_uprid($_POST['products_id'], $real_ids))+($new_qty), $real_ids);
}
##########END UPLOAD HACK#############
If someone has any Ideas please let us know, Thanks!
-
Re: Product Attribute Grid
If you don't get any responses here, perhaps you could consider posting a request in the Commercial forum
Quote:
Originally Posted by
mrgtih2
Thanks to thomasharding's post and some PM his code inserted into the file absolute_products_with_attributes.php in the includes/extra_cart_actions/ folder we now have the uploads working but with a glitch. It doesn't add the attribute to the cart so it would be hard for the owner of the site to know that someone added an upload.
I am reaching out to the devs or anyone else for some help to get this to work.
Here is the code that was used ,
##########BEGIN UPLOAD HACK#############
$real_ids = isset($_POST['id']) ? $_POST['id'] : "";
if (isset($_GET['number_of_uploads']) && $_GET['number_of_uploads'] > 0) {
/**
* Need the upload class for attribute type that allows user uploads.
*
*/
include(DIR_WS_CLASSES . 'upload.php');
for ($i = 1, $n = $_GET['number_of_uploads']; $i <= $n; $i++) {
if (zen_not_null($_FILES['id']['tmp_name'][TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]]) and ($_FILES['id']['tmp_name'][TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]] != 'none')) {
$products_options_file = new upload('id');
$products_options_file->set_destination(DIR_FS_UPLOADS);
$products_options_file->set_output_messages('session');
if ($products_options_file->parse(TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i])) {
$products_image_extension = substr($products_options_file->filename, strrpos($products_options_file->filename, '.'));
//Arch 04/2007 - to add product name to uploaded file
$prod_image_name = substr($products_options_file->filename, 0,-4);
//eof
if ($_SESSION['customer_id']) {
$db->Execute("insert into " . TABLE_FILES_UPLOADED . " (sesskey, customers_id, files_uploaded_name) values('" . zen_session_id() . "', '" . $_SESSION['customer_id'] . "', '" . zen_db_input($products_options_file->filename) . "')");
} else {
$db->Execute("insert into " . TABLE_FILES_UPLOADED . " (sesskey, files_uploaded_name) values('" . zen_session_id() . "', '" . zen_db_input($products_options_file->filename) . "')");
}
$insert_id = $db->Insert_ID() . $prod_image_name ;
$real_ids[TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]] = $insert_id . ". " . $products_options_file->filename;
$products_options_file->set_filename("$insert_id" . $products_image_extension);
if (!($products_options_file->save())) {
break;
}
} else {
break;
}
} else { // No file uploaded -- use previous value
$real_ids[TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]] = $_POST[TEXT_PREFIX . UPLOAD_PREFIX . $i];
}
}
//$this->add_cart($_POST['products_id'], $this->get_quantity(zen_get_uprid($_POST['products_id'], $real_ids))+($new_qty), $real_ids);
}
##########END UPLOAD HACK#############
If someone has any Ideas please let us know, Thanks!
-
Re: Product Attribute Grid
I've search the thread but don't see an answer for this. My apologies if it has been posted and I missed it.. I think I've found a bug with this mod.
See this product:
http://clients.overthehillweb.com/ha...erimeter-Large
This product has two option names: color & wig length. Color has two option values, and wig length has only one. Though BOTH attributes are set up with the grid type, when I add wig lenth to the product the attribute not only shows up as part of the grid, but also as a radiobutton too. I doubled checked that there is only have ONE option name called "Wig Length", and I double checked that there is only ONE 16" value added to this product.
This product had the same issue. To double check that this is indeed a bug, I added an additional option value to the wig length. Once I did that, the radiobutton disappeared.
http://clients.overthehillweb.com/ha...rimeter-Medium
Also I see that the issue is only a problem if there is one value on the right side of the grid. Products which have only one option value across the top of the grid do not display this behavior:
http://clients.overthehillweb.com/ha...rimeter-Medium
I could use some help as to HOW to fix this..:smile: Obviously the workaround is to add another option value to the right side of the grid, but I'd like to not HAVE to do this..
-
Re: Product Attribute Grid - Remove stock level from attribute
Hi There
Forgive me is this has been asked before, I can't find it though! How can I remove the "xxx in stock" beneath every attribute on the grid? Been trying everything but not winning.
Thanks
Cliff
-
Re: Product Attribute Grid - Remove stock level from attribute
It took me a while but I found it!
Quote:
Originally Posted by
cliffvt
How can I remove the "xxx in stock" beneath every attribute on the grid?
In the file /includes/languages/english/extra_definitions/absolute_attribute_grid.php
I changed the line:
Code:
define('TEXT_ATTRIBUTE_GRID_IN_STOCK', '%s in stock' ); //MUST CONTAIN %s AS THIS IS REPLACED WITH STOCK LEVEL
to
Code:
define('TEXT_ATTRIBUTE_GRID_IN_STOCK', 'Qty/Amt?' );
In this case it now displays the input box with the words "Qty/Amt?" underneath, which is acutally quite nifty!
http://choirtickets.co.uk/images/qty.gif
Cheers
Cliff
-
Re: Product Attribute Grid
I am creating a zen cart site for a coin selling company.
I am using the latest zencart/addon versions.
The addons I am having problems with are Product Attribute Grid and Stock by Attributes.
The problem is this:
They sell coins of different years in different conditions.
So, a products attributes might look like this...
------Good Fine
1857 ____ ____
1860 ____ ____
Now how do I price each attribute generated by the grid in a unique price? Pricing by the year and condition values, will not work because the prices are not consistent across the grid.
Thank you for your help.
-
Re: Product Attribute Grid
Forgot to also ask:
Is it possible to have multiple attribute grids per product?
Example:
------Good Fine
1857 ____ ____
1860 ____ ____
------Cent Rolls
1857 ____
1860 ____
-
Re: Product Attribute Grid
I've been using this mod for sometime and love it, I have a quick question, I sell shirts, I have the sizes on the top rows and the colors on the sides, some of my shirts have 27 colors, if you scroll to the bottom colors you have to scroll back up to find the row with your size.
my question is there a way to make the top header row repeat say every 10th row?
thank you again for your help.
-
Re: Product Attribute Grid
Sorry for a newbie question...I am trying to integrate the latest version of this mod (1.1.1) into my ZC (1.3.8a) as per 'INSTALL README.txt', but I still do not see the grid when I visit a product that has different colors and sizes as its attributes. Here is the list of files that I installed:
YOUR_TEMPLATE = arch_shoppe
includes/templates/arch_shoppe/templates/tpl_modules_attributes.php
includes/templates/arch_shoppe/templates/tpl_product_info_display.php
*** I did not have includes/modules/arch_shoppe dir, so created one ***
includes/modules/arch_shoppe/attributes.php
includes/templates/template_default/buttons/english/attribute_out_of_stock.gif
includes/languages/english/extra_definitions/absolute_attribute_grid.php
includes/extra_cart_actions/absolute_products_with_attributes.php
Would appreciate any help.
Thanks,
Nishi
-
Re: Product Attribute Grid
Ok I am setting up Zen Cart for a Cafe and I have a problem with this mod. I installed it successfully and got the quantity boxes to appear. I am using it for a bagel by the dozen product. I have two attributes, a drop down to choose from 1/2 dozen and dozen with the price for each. The second attribute is the type and quantities for the bagels. In other words how many plain, raisin, and so on.
The problem is that when you put a number in the quantity box and then add to cart, it adds 2 1/2 dozen for example. Is there any way to work around this. I just want the customer to be able to choose how many of each bagel. Am I using the mod wrong?
Any help would be greatly appreciated.
-
Re: Product Attribute Grid
-
Re: Product Attribute Grid
I got below problem, when active the grid module, the quantity box still show on the add to cart button, how to re-config it .
URL: http://www.stinkyglondon.com/index.p...roducts_id=199
Thanks in advance.
http://www.stinkyglondon.com/images/grid-problem.png
-
Re: Product Attribute Grid
Just installed this on a test site,
a freash install of ZC
fully patched
Stock by Attributes (only add-on)
but nothing happens!...
please advise... any ideas..
-
Re: Product Attribute Grid
I am using this mod 1.1 with ZC 1.3.8a. Also using Stock by Attributes 4.7 Kuroi. Both were working well for few years. I apologize for cross posting but I'm not sure which mod is in play with my prob.
New problem arose - stock level is adjusted on products WITHOUT attributes when transacted, but stock levels are not adjusted when it is a stock with attributes.
I recently housecleaned my permissions at request of server....folders are 0755, files 0644, and config files 0444.
Does this mod require a different permission setting somewhere in order to process the stock change?
-
Re: Product Attribute Grid
Great Mods I am well impressed at the amount of customisation available. I am using ZC1.3.8, with SBA and PAG both latest versions.
The grid works perfectly displaying the outofstock.gif when products aren't available. However when I add an additional radio button option, the outofstock.gif disappears and reverts back to the input box. This gives the impression that the item is in stock, even though if you go on to purchase it is tells you correctly that it isn't.
So the question is, has anybody managed to successfully get SBA and PAG to work with a grid and an additional separate option(s)???
Your help as ever is appreciated.:dontgetit
-
Re: Product Attribute Grid
You won't be able to use an additional field with the out of stock indicator. After all, if the radio field was for "green" or "blue", and you have 1000 blue, and no green ones left, would the attribute grid box show up, or show a X? In this senario, you are looking for an AJAX dynamic type of attriubte, with stock look up capabilities, which isn't available as yet with Zen Cart.
As for the stock question and file permissions, the coding doesn't use affect the stock levels, as this is still handled via the standard Zen stock control coding, or the Stock by Attribute module.
Finally - mcshane78 - have you installed this module? Did you follow the instructions which are included with the module, and "fairly fool-proof"?
Absolute
-
Re: Product Attribute Grid
Thanks for yr quick response. I will have a rethink on my store now, but at least I don't have to search any more!:smile:
thanks again
-
Re: Product Attribute Grid
Quote:
Originally Posted by
Absolute
You won't be able to use an additional field with the out of stock indicator. After all, if the radio field was for "green" or "blue", and you have 1000 blue, and no green ones left, would the attribute grid box show up, or show a X? In this senario, you are looking for an AJAX dynamic type of attriubte, with stock look up capabilities, which isn't available as yet with Zen Cart.
As for the stock question and file permissions, the coding doesn't use affect the stock levels, as this is still handled via the standard Zen stock control coding, or the Stock by Attribute module.
Finally - mcshane78 - have you installed this module? Did you follow the instructions which are included with the module, and "fairly fool-proof"?
Absolute
Hi Absolute..
yup.. 3 times with 3 diff downloads incase it was currpt.
no error msgs, no strange things happen, all folders renamed properly... etc
on a test site with no other mods installed except stock by attributes
but nothing happens, lol.. and i dont know why
-
Re: Product Attribute Grid
Quote:
Originally Posted by
mcshane78
Hi Absolute..
yup.. 3 times with 3 diff downloads incase it was currpt.
no error msgs, no strange things happen, all folders renamed properly... etc
on a test site with no other mods installed except stock by attributes
but nothing happens, lol.. and i dont know why
Don't shoot the messenger..:smile: But the first time I used this I forgot to use the new "grid" attribute type for my attributes.. Is it possible this is the issue for you??
-
Re: Product Attribute Grid
What are you expecting to happen? When you install it, you MUST follow the instructions to the letter.
- BACKUP!
- Install all files
- Navigate to a PRODUCT PAGE within the store, to initiate the auto-install process.
- Check in the admin, under Option Names to see if GRID is now an available option TYPE.
- Create new option name, and values
- Set up attributes for product
- Go to the store side and admire your handy work
Once you have followed the instructions, you should see exactly what you are looking to achieve.
- Finally, if you find this module an asset to your store, why not send a little something to our PayPal account, so that we can continue to develop this module? We aren't part of the Zen Cart team, and develop these modules at our own cost.
Absolute
-
Re: Product Attribute Grid
Quote:
Originally Posted by
Absolute
What are you expecting to happen? When you install it, you MUST follow the instructions to the letter.
- BACKUP!
- Install all files
- Navigate to a PRODUCT PAGE within the store, to initiate the auto-install process.
- Check in the admin, under Option Names to see if GRID is now an available option TYPE.
- Create new option name, and values
- Set up attributes for product
- Go to the store side and admire your handy work
Once you have followed the instructions, you should see exactly what you are looking to achieve.
- Finally, if you find this module an asset to your store, why not send a little something to our PayPal account, so that we can continue to develop this module? We aren't part of the Zen Cart team, and develop these modules at our own cost.
Absolute
You're ABSOLUTEly right.. Will do so this weekend!:smile:
-
Re: Product Attribute Grid
sorry....
forgot to report back..
yes it was me being rubbish and not installing correctly..mind elsewhere of late...
will donate asap!
thank you
-
Re: Product Attribute Grid
Quote:
Originally Posted by
DivaVocals
I've search the thread but don't see an answer for this. My apologies if it has been posted and I missed it.. I think I've found a bug with this mod.
See this product:
http://clients.overthehillweb.com/ha...erimeter-Large
This product has two option names: color & wig length. Color has two option values, and wig length has only one. Though BOTH attributes are set up with the grid type, when I add wig lenth to the product the attribute not only shows up as part of the grid, but also as a radiobutton too. I doubled checked that there is only have ONE option name called "Wig Length", and I double checked that there is only ONE 16" value added to this product.
This product had the same issue. To double check that this is indeed a bug, I added an additional option value to the wig length. Once I did that, the radiobutton disappeared.
http://clients.overthehillweb.com/ha...rimeter-Medium
Also I see that the issue is only a problem if there is one value on the right side of the grid. Products which have only one option value across the top of the grid do not display this behavior:
http://clients.overthehillweb.com/ha...rimeter-Medium
I could use some help as to HOW to fix this..:smile: Obviously the workaround is to add another option value to the right side of the grid, but I'd like to not HAVE to do this..
I'm having exactly the same issue here.
It looks like you've found a work around for this. Any chance you could point me in the right direction please?
Many thanks,
Alex
-
Re: Product Attribute Grid
Can you post a link to your site?
If the attributres are appearing as both a grid and a radio field, you need to check that you have set them to GRID types in the admin. You then need to check that the includes/modules/YOUR_TEMPLATE/attributes.php file is correctly loading.
Finally, check your tpl_products_info_default.php file. If you are using a template file here, I suggest renaming it, and seeing it the problem persists with the original Zen template file.
Absolute
-
Re: Product Attribute Grid
Quote:
Originally Posted by
Alex Clarke
I'm having exactly the same issue here.
It looks like you've found a work around for this. Any chance you could point me in the right direction please?
Many thanks,
Alex
I never got an answer, and if you look my problem description you'll see that I already describe the workaround..
Quote:
Obviously the workaround is to add another option value to the right side of the grid, but I'd like to not HAVE to do this..
-
Re: Product Attribute Grid
Quote:
Originally Posted by
Absolute
Can you post a link to your site?
See my post that Alex quoted above.. (links included)
Quote:
Originally Posted by
Absolute
If the attributres are appearing as both a grid and a radio field, you need to check that you have set them to GRID types in the admin.
Check
You then need to check that the includes/modules/YOUR_TEMPLATE/attributes.php file is correctly loading.
Check
Finally, check your tpl_products_info_default.php file. If you are using a template file here, I suggest renaming it, and seeing it the problem persists with the original Zen template file.
If I recall correctly, my template did not have a modified version of this file so I used the one from this mod.. But I'll check this tonight..
-
Re: Product Attribute Grid
Which version of this module are you using? The latest version should not require 2 attributes in order to show the grid. As long as grid option types are used, then the grid should be automatic.
I'll check the code this week,
Absolute
-
Re: Product Attribute Grid
Quote:
Originally Posted by
Absolute
Which version of this module are you using? The latest version should not require 2 attributes in order to show the grid. As long as grid option types are used, then the grid should be automatic.
I'll check the code this week,
Absolute
I'll check as soon as I get home and report back, but it was the MOST recent version available in the downloads as of when I 1st reported the issue..
-
Product Attribute Grid - Quantity not adding to cart
Hey there
I'm quite a savvy Zenner and I'm using this add-on on some of my sites but I hit a snag on one of the new sites.
I've installed the add-on and it displays grids beautifully (even a grid for just one attribute) and the quantity boxes show ok. As soon as you select any quantity of the attribute and "Add to Cart" it displays a "no items in your cart message" so it's impossible to add anything to a cart.
If I reset the attributes option to anything but "grid" it works fine again.
I've checked all the usual but can't seem to find the cause - any ideas?
Thanks
Cliff
-
Re: Product Attribute Grid - Quantity not adding to cart
You want to check that the grid appears within a form within the page. You also want to ensure that the extra_cart_actions folder has been uploaded correctly.
If this module is failing, then there will be a file missing, or the grid is appearing incorrectly.
Absolute
-
Re: Product Attribute Grid
Was this ever finished?
Quote:
Originally Posted by
mrgtih2
Thanks to thomasharding's post and some PM his code inserted into the file absolute_products_with_attributes.php in the includes/extra_cart_actions/ folder we now have the uploads working but with a glitch. It doesn't add the attribute to the cart so it would be hard for the owner of the site to know that someone added an upload.
I am reaching out to the devs or anyone else for some help to get this to work.
Here is the code that was used ,
##########BEGIN UPLOAD HACK#############
$real_ids = isset($_POST['id']) ? $_POST['id'] : "";
if (isset($_GET['number_of_uploads']) && $_GET['number_of_uploads'] > 0) {
/**
* Need the upload class for attribute type that allows user uploads.
*
*/
include(DIR_WS_CLASSES . 'upload.php');
for ($i = 1, $n = $_GET['number_of_uploads']; $i <= $n; $i++) {
if (zen_not_null($_FILES['id']['tmp_name'][TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]]) and ($_FILES['id']['tmp_name'][TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]] != 'none')) {
$products_options_file = new upload('id');
$products_options_file->set_destination(DIR_FS_UPLOADS);
$products_options_file->set_output_messages('session');
if ($products_options_file->parse(TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i])) {
$products_image_extension = substr($products_options_file->filename, strrpos($products_options_file->filename, '.'));
//Arch 04/2007 - to add product name to uploaded file
$prod_image_name = substr($products_options_file->filename, 0,-4);
//eof
if ($_SESSION['customer_id']) {
$db->Execute("insert into " . TABLE_FILES_UPLOADED . " (sesskey, customers_id, files_uploaded_name) values('" . zen_session_id() . "', '" . $_SESSION['customer_id'] . "', '" . zen_db_input($products_options_file->filename) . "')");
} else {
$db->Execute("insert into " . TABLE_FILES_UPLOADED . " (sesskey, files_uploaded_name) values('" . zen_session_id() . "', '" . zen_db_input($products_options_file->filename) . "')");
}
$insert_id = $db->Insert_ID() . $prod_image_name ;
$real_ids[TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]] = $insert_id . ". " . $products_options_file->filename;
$products_options_file->set_filename("$insert_id" . $products_image_extension);
if (!($products_options_file->save())) {
break;
}
} else {
break;
}
} else { // No file uploaded -- use previous value
$real_ids[TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]] = $_POST[TEXT_PREFIX . UPLOAD_PREFIX . $i];
}
}
//$this->add_cart($_POST['products_id'], $this->get_quantity(zen_get_uprid($_POST['products_id'], $real_ids))+($new_qty), $real_ids);
}
##########END UPLOAD HACK#############
If someone has any Ideas please let us know, Thanks!
-
Re: Product Attribute Grid
attributes qty box show up but when i put number qty i want to add to cart it dosen't updates
can u tell me why? how to fix that problem pls need badly..thanks
-
Re: Product Attribute Grid
@xshaanx - have you followed the instructions to the letter? Have you installed the file found in includes/extra_actions/ folder?
Absolute
-
Re: Product Attribute Grid
yes i have done everything install everything as it say in intru file
-
Re: Product Attribute Grid
Without further information, such as a link to your site, or seeing your actual code, I can't offer any further suggestions. If you have followed all the instructions as you state you have, this module will just work with a standard template.
It's been downloaded over 4500 times, and so far, only a handful of people have the same problems over and over. It's normally down to the placement of code, or a template over-ride.
Absolute
-
Re: Product Attribute Grid
I have installed this addon and love it. I have one question about it though. Is it possible to have 3 sizes, and 1 color as shown here:
http://funkymunkys.ca/index.php?main...&products_id=7
and not have the sizes shifted one space to the left so that they are no longer lined up properly?
-
Re: Product Attribute Grid
Quote:
Originally Posted by
FunkyPapa
I have installed this addon and love it. I have one question about it though. Is it possible to have 3 sizes, and 1 color as shown here:
http://funkymunkys.ca/index.php?main...&products_id=7
and not have the sizes shifted one space to the left so that they are no longer lined up properly?
I changed a couple of things, the above link no longer works..
Here is the right one:
http://funkymunkys.ca/index.php?main...products_id=14
-
Re: Product Attribute Grid
@FunkyPaPa - What happens if you change the sort order? Do you still get the rows offset by one value?
Absolute
-
Re: Product Attribute Grid
the website http://www.shaplajewelrywholesale.com
i wud really appreciate you help out to fix this problem..
thanks adv..
-
Re: Product Attribute Grid
Everything on the page appears to be rendering corrctly. The forms are set up in the right way, and submitting to the right script. The next thing to check is that your extra_cart_actions script is receiving the data, and find out why this is failing.
Absolute
-
Re: Product Attribute Grid
im sorry im not so goood at coding.. so can u tel me how can i find that were do i look for the erro.. or can i just give u the info and u can help me to fix this problem..
i 'll realy apre...