Jump to content
Sign in to follow this  
toasty

Attribute Sets Plus

Recommended Posts

Ok .... I've installed all the files and made all the changes

per the instructions, but I've run into a snag.

When I try to enter Contents via the Admin section I get

this error :

 

Parse error: syntax error, unexpected T_CASE in /home/ladykd54/public_html/cart/admin/categories.php on line 196

 

Here is the snippet of code :

 

 

tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $new_parent_id . '&cID=' . $categories_id));

}

 

 

break;

case 'move_product_confirm': (line 196)

 

$products_id = tep_db_prepare_input($HTTP_POST_VARS['products_id']);

$new_parent_id = tep_db_prepare_input($HTTP_POST_VARS['move_to_category_id']);

 

Can someone please help me correct this? I have to get passed this one to see if there

are any more errors to fix. I hate this part lol. :'(

 

Thanks in advance,

Karen

Share this post


Link to post
Share on other sites
Ok .... I've installed all the files and made all the changes

per the instructions, but I've run into a snag.

When I try to enter Contents via the Admin section I get

this error :

 

Parse error: syntax error, unexpected T_CASE in /home/ladykd54/public_html/cart/admin/categories.php on line 196

 

Here is the snippet of code :

tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $new_parent_id . '&cID=' . $categories_id));

}

 

 

break;

case 'move_product_confirm': (line 196)

 

$products_id = tep_db_prepare_input($HTTP_POST_VARS['products_id']);

$new_parent_id = tep_db_prepare_input($HTTP_POST_VARS['move_to_category_id']);

 

Can someone please help me correct this? I have to get passed this one to see if there

are any more errors to fix. I hate this part lol. :'(

 

Thanks in advance,

Karen

 

I don't have the files handy but the error is telling you that it does not expect to find a 'case' here (line 196). This indicates to me that you have missed something earlier in the file.

Check your instructions for edits to this file (line by line!) and redo the edits - hint: sometimes its easier to use your backup and do the file again. Often it is just a missing semi-colon at the end of a line or something simple.

 

C.

Share this post


Link to post
Share on other sites

Hi Chris;

Thanks for your reply. I figured that was the problem

and went searching thru the file last night and wasn't

able to find anything work. But ..... this morning I

tackled again and found an extra bracket that I took

a shot at removing and TAH-DAH I can get into the

Admin now. (now I have to check my scalp to see

how many bald spots I created this time around lol)

 

Now I have another question ... I probably should have

asked this before hand. Prior to installing your contrib

I had installed the Actual Attributes contrib. The files

that were overwritten were the includes/classes/shopping_cart.php

and includes/functions/general.php Should I replace these with

the original files? (as I don't recall any other contribs I've installed

dealt with these files, but I'll double check)

 

Ok, now onto figuring out how to use your great contrib. As

long as everything stays in a drop down box, I'll be happy lol.

If I run into any other snags, I'm sure I'll be back with more

newbie questions lol.

 

Take care hon and thanks for your help and have a great

rest of the weekend,

Karen :)

Share this post


Link to post
Share on other sites

Hi Chris;

Well I've run into a snag here. It's probably something

I've done or missed. I was wandering around my site

checking things out and on the products that have multiple

priceing, the shopping cart is not picking up the price and

listing the cost as $0.00

I tried going into the attribute set and adding the + back into

the Price Prefix (I'd taken the +'s out) and that semi worked

but it seems to double the price for one item.

These are attributes that I had put in while useing the

Actual Attributes contrib. Everything is still in the dropdown

menues. I still need to go through some of my other products

and change attributes for colors and scents that do not need

any type of priceing to them in the dropdowns.

 

Help please?

 

Karen

Share this post


Link to post
Share on other sites
Hi Chris;

Well I've run into a snag here. It's probably something

I've done or missed. I was wandering around my site

checking things out and on the products that have multiple

priceing, the shopping cart is not picking up the price and

listing the cost as $0.00

I tried going into the attribute set and adding the + back into

the Price Prefix (I'd taken the +'s out) and that semi worked

but it seems to double the price for one item.

These are attributes that I had put in while useing the

Actual Attributes contrib. Everything is still in the dropdown

menues. I still need to go through some of my other products

and change attributes for colors and scents that do not need

any type of priceing to them in the dropdowns.

 

Help please?

 

Karen

 

 

Just a quick update : I've checked my other products

and it seems the issue is just with those products that

have multiple priceing.

Share this post


Link to post
Share on other sites
Just a quick update : I've checked my other products

and it seems the issue is just with those products that

have multiple priceing.

 

just passing through - what is multiple pricing? Is that another contrib? Anyone else using multiple pricing with ASP?

 

rgds

C.

Share this post


Link to post
Share on other sites

Hi Chris;

I finally made it back around to check posts lol.

 

The multiple pricing that I have is for my clothing.

I have sizes rangeing from Small to 9x and a

set of prices for the differant sizes.

 

Here is a sample page from my site : (I should have done this before-sorry)

 

http://ladykdelights.com/cart/product_info...15b585fe1ba51cf

 

Thanks for your help,

Karen

Share this post


Link to post
Share on other sites

Options do not display on site. dropdown menu is there, but empty i followed the instructions...any ideas? requires immediate help. thank you

Share this post


Link to post
Share on other sites
Hi Chris;

I finally made it back around to check posts lol.

 

The multiple pricing that I have is for my clothing.

I have sizes rangeing from Small to 9x and a

set of prices for the differant sizes.

 

Here is a sample page from my site : (I should have done this before-sorry)

 

http://ladykdelights.com/cart/product_info...15b585fe1ba51cf

 

Thanks for your help,

Karen

 

Not sure what is going on there.

Your item price is shown as $79.00 but when I add 9x to the cart I get $-15 as the total.

Perhaps your data is a bit mixed up.

If you are pricing your product using the options only, then you need to set the options attribute price correctly (to match the description) (ie. $94.00) as it currently appears to be -$15.00

 

Without delving deeper I can't suggest a magical solution.

C.

Share this post


Link to post
Share on other sites
Not sure what is going on there.

Your item price is shown as $79.00 but when I add 9x to the cart I get $-15 as the total.

Perhaps your data is a bit mixed up.

If you are pricing your product using the options only, then you need to set the options attribute price correctly (to match the description) (ie. $94.00) as it currently appears to be -$15.00

 

Without delving deeper I can't suggest a magical solution.

C.

 

 

Hi Chris;

Thanks for your reply. I've had troubles with the pricing on the

clothing since I started this site. I'll go in and start fiddleing

and see if I can do something. I've put the attribute prices

in via the Product Atributes in Admin. I'll try deleting a product

set from there and create a new set useing your contrib and

see if that might do the trick. I'll let you know how it turns

out.

Share this post


Link to post
Share on other sites
Options do not display on site. dropdown menu is there, but empty i followed the instructions...any ideas? requires immediate help. thank you

 

Joe

I suggest you search through this thread from the start - you will find your problem and most likely the answers!

regards

Chris.

Share this post


Link to post
Share on other sites

Hi Chris;

I'm still stuck here. I tried deleting the attributes that

I originally used on one of the products (incense sticks

since it's smaller) and then created an attribute set using

ASP, but it's the same problem. It works great on everything

else.

I'm debateing installing Actual Attributes but I'm not sure if

there will be a conflict between the 2 contribs.

 

Help --- Suggestions?

 

Thanks,

Karen

Share this post


Link to post
Share on other sites
Hi Chris;

I'm still stuck here. I tried deleting the attributes that

I originally used on one of the products (incense sticks

since it's smaller) and then created an attribute set using

ASP, but it's the same problem. It works great on everything

else.

I'm debateing installing Actual Attributes but I'm not sure if

there will be a conflict between the 2 contribs.

 

Help --- Suggestions?

 

Thanks,

Karen

 

 

Update ... I finally got it figured out. I have to use the + for

the price increases in the dropdown box and the correct total will show

in the shopping cart.

Not exactly how I wanted the dropdown to be, but it'll do lol. :thumbsup:

Edited by ladykaren

Share this post


Link to post
Share on other sites
Hi Chris;

I'm still stuck here. I tried deleting the attributes that

I originally used on one of the products (incense sticks

since it's smaller) and then created an attribute set using

ASP, but it's the same problem. It works great on everything

else.

I'm debateing installing Actual Attributes but I'm not sure if

there will be a conflict between the 2 contribs.

 

Help --- Suggestions?

 

Thanks,

Karen

 

Not Familiar with Actual Attributes so cannot comment but I would not add another contrib until you work out what is going on.

 

I am not 'precisely' sure what you are trying to achieve. As I see it you have -$15.00 being added to the cart when you actually want (e.g.) $79.00 - is that right? Or are you trying to achieve 79.00-15.00=84.00 ??

Either way I am understanding that you have it functioning correctly for new attributes added using ASP but NOT for attributes sets created before ASP was integrated. This indicates you problem is with historical data.

 

Please note that anything added prior to ASP being present will not be seen by ASP. This is a feature (ie a good thing!) to allow co-existance with previous (historical) data. Read the Install instruction to confirm this.

 

Pre ASP attributes should be deleted WHEN YOU ADD AN ASP set with the SAME Option as an existing product attribute; so the products attributes causing problems should be reomoved during the adding of the same option via ASP to the product.

 

If you think this is not happening then ie edit each product concerned and remove teh attributes from the products.. and check in your products_attributes table to be sure the attributes have been removed from the product].

 

Then

  • create the sets using ASP and
  • add them by editting the product and ticking the ASP set box to add the product.

I am assuming there is no other contribution screwing things up.

 

Hope that helps somehow. Not much more I can do without taking a look. If your still stuck make sure you have read this support thread from the start -you might find someone else has the same problem solved for you.

 

regards

 

Chris.

Share this post


Link to post
Share on other sites

Wow, this appears to be exactly what I need for our site. We have lots of footwear and clothing items with lots and lots of attributes.

I am running into difficulties in how to download this to our site, are there directions out there for me try to understand?

 

Thank you all.

Chris Lawson.....

Share this post


Link to post
Share on other sites

Chris,

 

I'm in the same boat as you. On the following page there is something called SHORT INSTRUCTIONS FOR INSTALLATION

 

http://www.oscommerce.com/community/contri...,attribute+sets

 

Unfortunately, they're not making it much easier on me. I'm about to the point of paying someone to do this for me. This is about the ONLY thing keeping me from moving my site to production and it's KILLING ME! I'm stuck on Step 1 as it doesn't tell you which file to put the 3 pieces of code into.. :(

Share this post


Link to post
Share on other sites

UPDATE: I got it figured out... I think... and installed it.

 

I can get to www.mysite.com/admin and the admin console loads... however... when I click on CATALOG, I get a blank page with

 

Parse error: parse error, unexpected '}' in /homepages/39/d191750874/htdocs/oscommerce/admin/categories.php on line 696

 

Here is the code from line 696:

  } elseif ($action == 'new_product_preview') {

 

And when I go to any page in the admin console, I get this at the top of the page:

 

// BOF Linkmatics attributes sets plus define('FILENAME_PRODUCTS_ATTRIBUTES_SETS', 'products_attributes_sets.php'); define('FILENAME_PRODUCTS_ATTRIBUTES_SETS_EDIT', 'products_attributes_sets_edit.php'); // EOF Linkmatics attributes sets plus

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /homepages/39/d191750874/htdocs/oscommerce/admin/includes/filenames.php:56) in /homepages/39/d191750874/htdocs/oscommerce/admin/includes/functions/sessions.php on line 67

 

 

 

HELP!!

Share this post


Link to post
Share on other sites

Got the above referenced issues resolved. everything *SEEMS* to be working.

 

I make sets, apply them to images, they show at the bottom of PRODUCT ATTRIBUTES, but on the site they have a dropdown box with $0.00 in them....

 

NONE of my attributes have $0.00 in them, so I'm REALLY LOST!

 

STILL LOOKING FOR HELP!

Share this post


Link to post
Share on other sites

Hi, I did have issues with this contrib when I installed it at first, the options box was totally blank, but I think I have figured them out except that I can't seem to control the order at which the attributes display in the option. I think it is supposed to go in the order you designate as 1 would show first, 2 second, 3 third and so on. Am i not understanding this or did I not install this contrib right. Can anyone help me?

 

Thanks

Share this post


Link to post
Share on other sites
Hi, I did have issues with this contrib when I installed it at first, the options box was totally blank, but I think I have figured them out except that I can't seem to control the order at which the attributes display in the option. I think it is supposed to go in the order you designate as 1 would show first, 2 second, 3 third and so on. Am i not understanding this or did I not install this contrib right. Can anyone help me?

 

Thanks

 

Some people have had issues with the sort not working. I cannot explain why - for some it is ok and for others not. All I can say is that the code I have added to 'standard' osC works as far as can see or am aware.

If you cannot get it working then you are left with the osCommerce default approach of using the order in which the attributes are added to osCommerce (i.e. by the id) - useless but that's the way it is.

If you read the support thread you will find more information on how to achieve this.

Sorry I cannot be of more help.

regards

Chris.

Share this post


Link to post
Share on other sites
Some people have had issues with the sort not working. I cannot explain why - for some it is ok and for others not. All I can say is that the code I have added to 'standard' osC works as far as can see or am aware.

If you cannot get it working then you are left with the osCommerce default approach of using the order in which the attributes are added to osCommerce (i.e. by the id) - useless but that's the way it is.

If you read the support thread you will find more information on how to achieve this.

Sorry I cannot be of more help.

regards

Chris.

 

Thanks for all you do Toasty! I just got this installed, but can see it will be a great time saver for me once I have made all the attribute sets that I need!

 

Thanks for replying back to me. I'll keep trying to look thru the threads to see if anything sounds like it will work when I have time. I have about 90 fabric choices for our cushions and I want to be able to give them the option to order them along with any furniture pieces they are purchasing. I would like the "None" attribute to show up first with no extra charge so as not to make them feel pressured that they have to purchase them. After that I don't really care if the fabric pattern numbers are mixed up. If anyone has any ideas let me know.

Share this post


Link to post
Share on other sites

I'm having a "moment" here... Been a while since I installed ASP and started configuring it. And now I have quite the noobish question...

 

Once I create my products, options, and attribute sets, how do I assign the attribute sets to the products? :rolleyes:

Share this post


Link to post
Share on other sites
Once I create my products, options, and attribute sets, how do I assign the attribute sets to the products? :rolleyes:

 

Ah -- Never mind. Found it! The "Add A.S." button on the product edit screen.

 

:blush:

Share this post


Link to post
Share on other sites
Got the above referenced issues resolved. everything *SEEMS* to be working.

 

I make sets, apply them to images, they show at the bottom of PRODUCT ATTRIBUTES, but on the site they have a dropdown box with $0.00 in them....

 

NONE of my attributes have $0.00 in them, so I'm REALLY LOST!

 

STILL LOOKING FOR HELP!

 

I think I have an answer for you. I had the same thing happened to me, but I found the answer. Check product_info.php for the line

        while ($products_options = tep_db_fetch_array($products_options_query)) {

. You might find it as part of a comment. It needs to go in the line below that comment. I that myself (twice) when I pasted the contribution code into the file.

Share this post


Link to post
Share on other sites

Guys,

 

After reading 15 pages of code fixes can we please have an updated version posted online as it's almost impossible to work via the forum.

 

I have a problem with the options not appearing with the product info which i believe has been fixed in the forum but not via the contrib. Can thie be documented in the contrib properly rather than hack away at a very complexed set of 15 forum code changes.

 

Personally I've spent over 3 months adding addon's and tweeking the oscommerce app, I dont want this addon to cost me another 3 months to try and fix.

 

Scologic

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×