Author Topic: Converted Custom Attributes Extended Hack 2.1 for VM 1.1 + J1.5  (Read 647955 times)

Marco

  • Jr. Member
  • **
  • Posts: 139
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #15 on: May 12, 2008, 08:49:33 am »
Fix for mandatory, please download ps_product_attribute.zip.
And test please.
See first post.

cer

  • Beginner
  • *
  • Posts: 24
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #16 on: May 12, 2008, 13:44:18 pm »
Thanks, Marco!
The mandatory bug seems to be fixed for regular products.

But now there is a problem with child products - regardless if the ca is entered in the parent or child items product status.

I get this error:
Warning: Invalid argument supplied for foreach() in /is/.../administrator/components/com_virtuemart/classes/ps_product_custom_type.php on line 776


 
VM1.1.3 // VM 1.1.4 RC
Joomla! 1.5.12
Xampp

Marco

  • Jr. Member
  • **
  • Posts: 139
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #17 on: May 12, 2008, 14:45:45 pm »
Hi cer,

I can't get extended or custom attributes to show up with child products.
How did you do this?
What I did is:
-Add main product with no attributes
- add 2 child products with extended attributes.

When in the shop I select a child product, but no attributes show up.

cer

  • Beginner
  • *
  • Posts: 24
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #18 on: May 12, 2008, 16:14:02 pm »
you're right: attributes don't show up when you use them in the child item itself.
but you can use the attributes via the parent product. just use the syntax in there.
my ca's are visible even before I select a child from the drop-down.
VM1.1.3 // VM 1.1.4 RC
Joomla! 1.5.12
Xampp

Marco

  • Jr. Member
  • **
  • Posts: 139
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #19 on: May 12, 2008, 18:25:23 pm »
I don't get the warnings, but product is not added to the cart.
Get message "select special attribute" even if all attributes have a value.

I will drop this at JK again.


crotech

  • Beginner
  • *
  • Posts: 30
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #20 on: May 12, 2008, 23:45:04 pm »
One of the previous incarnations of this hack for vm1.1 worked with adding the attributes to the child item. I'll keep looking into that issue.

S

Marco

  • Jr. Member
  • **
  • Posts: 139
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #21 on: May 13, 2008, 00:59:49 am »
Yes, but I even can't get the standart custum attributes to show up in VM 1.1 for child products.
Is the attribute system changed for child products, does anybody knows that?

crotech

  • Beginner
  • *
  • Posts: 30
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #22 on: May 13, 2008, 11:07:00 am »
I think you hit the nail on the head Marco. I haven't had a chance to dig very deep but it does appear that child product attribute handling has changed in some way. The recent changes to the ca extended hack aren't in any area that would have effected them. I'll dig some more when I have time later today.

Marco

  • Jr. Member
  • **
  • Posts: 139
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #23 on: May 13, 2008, 14:29:40 pm »
JK did some fixing on this child problem allready.
I think it is fixed, but I have to wait JK's respons.

Yes, attributes can't be set with child products, you have to set them with the parent product.
If I'm wrong, please (anybody) let me know.


crotech

  • Beginner
  • *
  • Posts: 30
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #24 on: May 13, 2008, 17:55:04 pm »
Marco,

Thanks for taking the lead on keeping up with this hack. When you have time, can you update the first post with the current status?

unleash.it

  • Jr. Member
  • **
  • Posts: 150
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #25 on: May 14, 2008, 07:59:03 am »
Marco,

I also read somewhere that attributes aren't possible with child products. But...

Tried it anyway and I got it working: http://www.tomanddaves.com/shop.html?page=shop.product_details&flypage=flypage-coffee.tpl&product_id=21&category_id=6

Thanks for pulling this together. If I ever end up using it I'd be glad to donate some cash if you post a link.

crotech

  • Beginner
  • *
  • Posts: 30
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #26 on: May 14, 2008, 16:17:54 pm »
unleash.it,

Can you post which version of joomla, vm and the hack you are using? I had the custom attributes hack working with items a couple of days ago but after upgrading to the vm 1.1 and the newest files, it doesn't work anymore.

Marco

  • Jr. Member
  • **
  • Posts: 139
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #27 on: May 14, 2008, 17:55:13 pm »
Yes I like to know that too.

JK is still working on a fix.

If you(and everybody else) want to donate, donate to Joseph Kwan.
He puts a lot of time in it.

crotech

  • Beginner
  • *
  • Posts: 30
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #28 on: May 14, 2008, 18:50:46 pm »
Marco,

I would consider donating if there were an outline of the requirements the hack should fulfill when it is complete and a time schedule for it's completion. Right now I'm in a testing phase and, given the instability of the hack so far, I'm not sure if I'm going to be able to use it at all.

For my purposes, I need the hack to allow adding custom attributes to items as well as products.

Marco

  • Jr. Member
  • **
  • Posts: 139
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #29 on: May 14, 2008, 19:06:32 pm »
As you know we're working on that right now.  :)

My intention was to convert the 2.1 hack to a working version for VM 1.1.
So it has to work the same as in VM 1.0.x, at least.
Few problems that were never fixed in the 2.1 version are solved in this one.
So it's even better than the old one.
The child problem and tax problem are the only things open right now, if I'm right.
JK is working on those.
And when we find no other things it can go stable very soon.

Just keep on testing, so we can be sure to have a nice solution to start with.
And it would be nice for JK when you donate anytime you feel like it.