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

unleash.it

  • Jr. Member
  • **
  • Posts: 150
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #30 on: May 15, 2008, 06:33:02 am »
The site I posted is using Joomla 1.5 and VM 1.1 (late beta). It is not using the custom attribute hack, just the built in features. Not sure how the hack might affect things, but as-is you should be able to have attributes on child products.

crotech

  • Beginner
  • *
  • Posts: 30
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #31 on: May 15, 2008, 06:53:02 am »
Thanks for the info. I had the custom attribute hack working with attributes for child products on an earlier release candidate also. Somewhere along the lines, I think a change was made to ps_product.php that killed them. I just haven't had enough time to look further into it yet. Maybe JK will find it first.

Marco

  • Jr. Member
  • **
  • Posts: 139
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #32 on: May 16, 2008, 08:03:56 am »
Hi

JK send me an other update (2.12)
Should fix child products problem.
Known issues:
1. File attribute type cannot be used together with ajax because ajax do not upload file.
2. Multiple attribute types cannot be used together with childlist display option : there will be conflict in field names between different children
3. Savecart cannot be used with attributes that need price calculations by given formula (such as cost/char etc.).

For download see first post.

crotech

  • Beginner
  • *
  • Posts: 30
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #33 on: May 16, 2008, 08:07:47 am »
Marco,

Thanks again for keeping up with this one. Can you elaborate a little on what you mean by "2. Multiple attribute types cannot be used together with childlist display option : there will be conflict in field names between different children"

Does this mean that adding multiple types of attributes (i.e. text, select and a radio) to one child product?

Thanks

Marco

  • Jr. Member
  • **
  • Posts: 139
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #34 on: May 16, 2008, 08:14:02 am »
The hack will work with child products, as long as you use the old way to display them (selectlist).
Using it together with child list (check)boxes it won't work because of the conflicts in field names.


crotech

  • Beginner
  • *
  • Posts: 30
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #35 on: May 16, 2008, 08:18:51 am »
Thanks for the clarification. I'll test it over the next few hours.

crotech

  • Beginner
  • *
  • Posts: 30
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #36 on: May 16, 2008, 18:37:15 pm »
The way the calendar is being called in addtocart_form.tpl.php errored for me. It works if you change:

Code: [Select]
// JLoader::import('joomla.html.html.behavior');
// JHTMLBehavior::calendar();
around line 70 to
Code: [Select]
JHTML::_('behavior.calendar');
I still have a little more testing to do but it's looking really good.

mostyles

  • Beginner
  • *
  • Posts: 1
    • MoStyles.com
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #37 on: May 19, 2008, 21:52:58 pm »
The way the calendar is being called in addtocart_form.tpl.php errored for me. It works if you change:
Code: [Select]
// JLoader::import('joomla.html.html.behavior');
// JHTMLBehavior::calendar();
around line 70 to
Code: [Select]
JHTML::_('behavior.calendar');I still have a little more testing to do but it's looking really good.


I'm having an issue with the same code.  I tried the above mentioned fix but with no success.  getting the error:  undefined class name 'jloader'

running joomla 1.1.14 and vm 1.1.0 RC2

I'd really like to work with this hack.  Please help.

crotech

  • Beginner
  • *
  • Posts: 30
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1
« Reply #38 on: May 20, 2008, 04:07:26 am »
mostyles,

The code I posted works for changes to Joomla 1.5. Maybe someone else can post how it's called in 1.1.14.

bebe

  • Beginner
  • *
  • Posts: 2
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1 + J1.5
« Reply #39 on: May 24, 2008, 01:49:19 am »
Hi guys,

Would this hack work for Joomla! 1.0.13 as well?

I installed the hack (VM 1.1) and get a white page when I click on a product in the frontend now. Maybe there went something wrong when I installed the hack....  ???

Thanks for your help.

bebe


Marco

  • Jr. Member
  • **
  • Posts: 139
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1 + J1.5
« Reply #40 on: May 24, 2008, 07:44:04 am »
It is converted for Joomla 1.5 and VM 1.1.
On other version it may cause errors.

editoon

  • Beginner
  • *
  • Posts: 2
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1 + J1.5
« Reply #41 on: May 24, 2008, 12:42:19 pm »
great job, but i have a problem to upload file.
$_FILES[$titlevar] doesn't return any data and an error appear
(I desactivated the ajax option as you said)
What is wrong ?
regards

Marco

  • Jr. Member
  • **
  • Posts: 139
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1 + J1.5
« Reply #42 on: May 24, 2008, 12:53:39 pm »
Did you set everything right in the VM config? (Attributes tab)
Is directory writeable, does it exist?

Maybe you could explain a bit more what you did.

editoon

  • Beginner
  • *
  • Posts: 2
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1 + J1.5
« Reply #43 on: May 24, 2008, 13:03:51 pm »
Thanks for you quick answer
Yes in Attibutes tab I put : mypictures/ in the field 'Upload root path'
the directory exist (I'm on localhost) and is writeable
and i put : name(text);photo(file) in the Custom Attribute List of my product.
Everything seems Ok but
When I checked on ps_product_custom_type.php, the result of the line 661 (if (isset($_FILES[$titlevar]) && is_array($_FILES[$titlevar]))) is false. In fact $_FILES[$titlevar) doexn't return anything... and $titlevar = photo

Thanks for your help marco

Marco

  • Jr. Member
  • **
  • Posts: 139
Re: Converted Custom Attributes Extended Hack 2.1 for VM 1.1 + J1.5
« Reply #44 on: May 24, 2008, 13:11:49 pm »
The root path should be the complete server path to the directory.
Did you do that or only the mypictures directory?