Author Topic: Custom Attributes Extended 2.1 [Hack]  (Read 495837 times)

Nick

  • Beginner
  • *
  • Posts: 13
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #60 on: May 21, 2007, 08:52:00 am »

The hack seems to be working fine.  The reason no images appear is because you're using the example I gave which links to images which aren't in your install.  Also you can either rename "Divide" to something more appropriate or just add a space " " instead.  I'm not sure what specifically you're having problems with.....

it seems that you got the overall hack working... layout is more of a design issue.
-barnett
Thanks - I'll start putting in the code.

N

brigitte

  • Beginner
  • *
  • Posts: 15
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #61 on: May 21, 2007, 12:15:52 pm »
Hi,

Installed the update, works fine :)

Anybody using safari and experiencing probems with textboxes?

I defined:

Tekst(textarea)(5.00 per word|title-hover)(Your text here|5.00|word);

Works fine in FF but is leaving my cart empty when ordered (no message shown).
Anybody has a clue or pointer?

<Update>
Narrowed it down to the following definition:

Tekst(textarea)(5.00 per woord|title-hover)(Your text here|5.00|word);
Kaart(radio)(kaartje|title-hover)(blauw [+5.00]|,rood* [+10.00]|)

If I define the custom fields in above order, it works fine, the text is displayed in cart. If i switch the definition to beneath order (the other way around), no text of textarea is displayed in Safari.

Kaart(radio)(kaartje|title-hover)(blauw [+5.00]|,rood* [+10.00]|);
Tekst(textarea)(5.00 per woord|title-hover)(Your text here|5.00|word);

Second: the selected option with * also workst fine in FF, but does not work in Safari.

Somebody can give a hand please/idea? ( i cleared the cache :)


Regards
brigitte



dubey

  • Beginner
  • *
  • Posts: 21
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #62 on: May 21, 2007, 12:39:22 pm »
Thanks Barnett. I am getting these "file type error" upload messages too since I changed my hosting yesterday, which makes me thing its not a hack issue . however, i am using the same upload folder for my docman repository and that is working fine.

I've only started getting this error since updating to the latest ps_product_custom_type.php file - the one incorporating minimum / maximum file sizes. If I go back to an older version of this file everything works fine.

Is it possible to post these old versions to the thread? They might be useful.

I am getting this message now:

Fatal error: Cannot instantiate non-existent class: ps_product_custom_type_ in /home/*****/public_html/administrator/components/com_virtuemart/classes/ps_product_custom_attribute.php on line 68

Mike

  • Beginner
  • *
  • Posts: 2
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #63 on: May 21, 2007, 20:25:22 pm »
I have got stuck at Step 4 in file ps_product_attribute.php:

The instruction is to replace the code begining:

"// added for custom fields by denie van kleef....."

with the block of code starting

"// added for custom fields by ted barnett...."

but the file already contains the "ted barnett" code.

Are the pictures the wrong way round? Or has this code already been replaced in the files?

Similarly, step 6 seems already to be done in the file ps_product.php.

If I presume the work is done and leave these 2 steps out, VM fails.

Can anyone help?

Thanks

Mike

brigitte

  • Beginner
  • *
  • Posts: 15
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #64 on: May 21, 2007, 20:55:47 pm »
Hi Mike,

I  just installed all the files which are in the zip, that is copied them to the right directory. It worked fine for me! Did not do any editing at all, exept my own hacks :)

Maybe this will help you..

dubey

  • Beginner
  • *
  • Posts: 21
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #65 on: May 22, 2007, 15:58:00 pm »
Hi Mike,

I  just installed all the files which are in the zip, that is copied them to the right directory. It worked fine for me! Did not do any editing at all, exept my own hacks :)

Maybe this will help you..


I just did a completely fresh install with a new database, on a fresh copy of joomla, [1.0.12] with only the main Virtuemart componant and module, [ and I'm still getting the error. [1.0.10 ]
Hi Mike,

I  just installed all the files which are in the zip, that is copied them to the right directory. It worked fine for me! Did not do any editing at all, exept my own hacks :)

Maybe this will help you..


hi, thanks. Can you confirm that your upload function works ok? I have tried a completely fress installation on a new database and still get the error? could this be a permissions issue?

scott

  • Beginner
  • *
  • Posts: 1
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #66 on: May 22, 2007, 16:32:41 pm »
i have done a fresh install and i also get the filetype not supported message. I know that folder can be uploaded to. I used another hack to test it. So i am stuck as well. Great hack it would be the perfect thing if i could get it to work. here is my snippet i am using:  Print Size(checkbox-r)(Please check the print size you need|title-hover)(2 Wallets [+0.40]|photos/Zapotec.bmp,3.5x5 [+0.25],4x6 [+0.29],5x7 [+1.75],8x10 [+5.00],11x14 [+12.00],12x18 [+15.00];
Paper Choice(checkbox-r)(Select a finish|title-hover)(Gloss,Matte;
File Upload(file-r)(|)(photos/|.jpg,.bmp||3000000|300)
any help would be appreciated. Thanks and great work.

barnett

  • Jr. Member
  • **
  • Posts: 92
    • Contemplate Design
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #67 on: May 23, 2007, 00:43:13 am »
hey everyone-

I realize that the new update had a bug in the file upload.  I hope to fix it in the next couple of days.  Sorry I haven't been around the last day or so.... work things come first.  So hold tight.  If someone wants to post the old file they can on this thread.  otherwise I'll try to get to it in the next day or so.

-barnett

Thomas Test

  • Beginner
  • *
  • Posts: 3
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #68 on: May 23, 2007, 17:38:07 pm »
Hi everybody,

i hope one of you guys can help me out !?
I already browsed 90% of the Web including this board and couldn't find anything !

What we want to do:

We are selling personalised product (various kind of printing / engraving etc).
Therefor the customers uploads the file he wants to have printed.
Mostly (99%) this would be a picture.

What we need to know:

I) Is there any way the uploaded file is attached to the order list in the backend of VM ?
II) It should be possible for all customers, not only for those who registred !? Any chance?
III) The picture should be shown for each product as well as for each category if products have been ordered in different categories (e.g. T-Shirt in S ; XL ; L) different sizes same picture.


barnett

  • Jr. Member
  • **
  • Posts: 92
    • Contemplate Design
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #69 on: May 23, 2007, 22:15:40 pm »
Ok I've re-written the file upload script and tested it so it should work now.  See the first thread for the new files.

I also took care of the issue of the file upload always defaulting to being required.  Now if you don't mark it as required then no file is needed to be uploaded and a "No file was uploaded" message will be attached to the cart if the user decided not to upload a file.

-- UPDATED -- 5-23-07
- fixed "File Type Error" for file upload
- fixed File Upload always defaulting to required
- fixed Default Checked Radio & Check boxes for Safari (haven't tested)

-barnett

barnett

  • Jr. Member
  • **
  • Posts: 92
    • Contemplate Design
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #70 on: May 23, 2007, 22:17:45 pm »
i have done a fresh install and i also get the filetype not supported message. I know that folder can be uploaded to. I used another hack to test it. So i am stuck as well. Great hack it would be the perfect thing if i could get it to work. here is my snippet i am using:  Print Size(checkbox-r)(Please check the print size you need|title-hover)(2 Wallets [+0.40]|photos/Zapotec.bmp,3.5x5 [+0.25],4x6 [+0.29],5x7 [+1.75],8x10 [+5.00],11x14 [+12.00],12x18 [+15.00];
Paper Choice(checkbox-r)(Select a finish|title-hover)(Gloss,Matte;
File Upload(file-r)(|)(photos/|.jpg,.bmp||3000000|300)
any help would be appreciated. Thanks and great work.

I've fixed the file upload.... but check your syntax as you are missing some end ")"

-barnett

barnett

  • Jr. Member
  • **
  • Posts: 92
    • Contemplate Design
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #71 on: May 23, 2007, 22:30:36 pm »
Hi everybody,

i hope one of you guys can help me out !?
I already browsed 90% of the Web including this board and couldn't find anything !

What we want to do:

We are selling personalised product (various kind of printing / engraving etc).
Therefor the customers uploads the file he wants to have printed.
Mostly (99%) this would be a picture.

What we need to know:

I) Is there any way the uploaded file is attached to the order list in the backend of VM ?
II) It should be possible for all customers, not only for those who registred !? Any chance?
III) The picture should be shown for each product as well as for each category if products have been ordered in different categories (e.g. T-Shirt in S ; XL ; L) different sizes same picture.

1) the file name of the file that is uploaded appears on the order in the backend like so:
example) File Upload: filename.jpg
It does not appear on the "Order List" page which shows all of your orders... but when you click on a specific order it appears.

2) I think it should work for registered and non-registered alike.

3)  this hack also allows for you to show image thumbnails for each option... if that is what you mean.

I think some other people here are using this hack for engraving as well.
-barnett


barnett

  • Jr. Member
  • **
  • Posts: 92
    • Contemplate Design
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #72 on: May 23, 2007, 23:56:31 pm »
I've added another small update which corrects the problem of multiple attributes not calculating correctly in IE.  See the new files on the first thread.

-barnett

-- UPDATED -- 5-23-07
- fixed multiple attributes of same type not being calculated in IE bug

barnett

  • Jr. Member
  • **
  • Posts: 92
    • Contemplate Design
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #73 on: May 23, 2007, 23:58:11 pm »
There's is just one small bug left, Line 2 & 3 is not counted and added to the shoppingcart. Could you point me in the right direction?

I really hope to resolve this issue soon, we can't wait to get online with our new webshop. :o)

EDIT: This is only an issue in IE. It works like a charm in FF. ???

/cbach
the new update fixes this problem.
-barnett

barnett

  • Jr. Member
  • **
  • Posts: 92
    • Contemplate Design
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #74 on: May 23, 2007, 23:59:15 pm »
Hi,

Installed the update, works fine :)

Anybody using safari and experiencing probems with textboxes?

I defined:

Tekst(textarea)(5.00 per word|title-hover)(Your text here|5.00|word);

Works fine in FF but is leaving my cart empty when ordered (no message shown).
Anybody has a clue or pointer?

<Update>
Narrowed it down to the following definition:

Tekst(textarea)(5.00 per woord|title-hover)(Your text here|5.00|word);
Kaart(radio)(kaartje|title-hover)(blauw [+5.00]|,rood* [+10.00]|)

If I define the custom fields in above order, it works fine, the text is displayed in cart. If i switch the definition to beneath order (the other way around), no text of textarea is displayed in Safari.

Kaart(radio)(kaartje|title-hover)(blauw [+5.00]|,rood* [+10.00]|);
Tekst(textarea)(5.00 per woord|title-hover)(Your text here|5.00|word);

Second: the selected option with * also workst fine in FF, but does not work in Safari.

Somebody can give a hand please/idea? ( i cleared the cache :)

Regards
brigitte

I think the new update should fix both problems.
-barnett