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

barnett

  • Jr. Member
  • **
  • Posts: 92
    • Contemplate Design
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #30 on: May 17, 2007, 15:50:36 pm »
A quick question (sorry if this was previously posted and I missed it) - for the text input lines is it possible to set the maximum number of characters a client can input? An example would be if I am engraving a trophy and can only fit 25 characters per line.

Thanks,
Paul

currently that is not possible, but I'll look into it.
-barnett

barnett

  • Jr. Member
  • **
  • Posts: 92
    • Contemplate Design
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #31 on: May 17, 2007, 15:51:58 pm »
the line of codes i used is as following:

Size Options(Radio)(Select the SIZE)|title-hover)( Small [+0.00], Medium [+0.00], Large [+0.00], X-Large [+0.00], 2X-Large [+0.25] );Color Options(Radio)(Select the color and size, then enter quantity|title-hover)( Black [+0.00]|images/color/BLACK.gif, Red [+0.00]|images/color/RED.gif);  <-- this adds to shopping cart fine

Size Options(Radio)(Select the SIZE)|title-hover)( Small [+0.00], Medium [+0.00], Large [+0.00], X-Large [+0.00], 2X-Large [+0.25] );Color Options(Radio)(Select the color and size, then enter quantity|title-hover)( Black|images/color/BLACK.gif, Red|images/color/RED.gif);

<-- this one, doesnt catch the black or red attribute when adding to shopping cart.

and also, how do i modify the format these attributes are displayed on the frontend?

thanks

William

Thanks william-
I can replicate the error now so I will work on a fix soon.
-barnett

barnett

  • Jr. Member
  • **
  • Posts: 92
    • Contemplate Design
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #32 on: May 17, 2007, 20:03:31 pm »
New Update available:

- fixed files in step 1
- fixed lines in step 5
- fixed multiple select box image thumbnail problem
- fixed blank results for non-charge radio, checkbox, select, & multiple items
- added NEW attribute type (number)... see syntax

The update is in the first post of this thread.  You can download the new files.
Enjoy.
-barnett

barnett

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

The other problem was a syntax error, but now I have two new issues. :) And this time i tripple checked everythinf.

My attributes look like:
Code: [Select]
Linie 1(text)(|1)(|1.00|char_nospace);
Skrifttype(select)(|)(Enkeltblok|images/stories/gravering/eb.gif,Dobbeltblok*|/images/stories/gravering/db.gif,Enkeltskriveskrift|/images/stories/gravering/es.gif,Dobbeltskriveskrift|/images/stories/gravering/ds.gif);
Linie 2(text)(|2)(|1.00|char_nospace);
Skrifttype(select)(|)(Enkeltblok*|images/stories/gravering/eb.gif,Dobbeltblok|/images/stories/gravering/db.gif,Enkeltskriveskrift|/images/stories/gravering/es.gif,Dobbeltskriveskrift|/images/stories/gravering/ds.gif);
Linie 3(text)(|3)(|1.00|char_nospace);
Skrifttype(select)(|)(Enkeltblok|images/stories/gravering/eb.gif,Dobbeltblok*|/images/stories/gravering/db.gif,Enkeltskriveskrift|/images/stories/gravering/es.gif,Dobbeltskriveskrift|/images/stories/gravering/ds.gif)

1) If I choose a different font in the dropdown at the top, then the one in the bottom of the page changes.

2) The char count and prices does not show up in the cart for line 2 & 3?

Again thanks for your work. :)

/cbach

these have been fixed and updated on the first post.  However lines like this:
Code: [Select]
Linie 2(text)(|2)(|1.00|char_nospace);
need to be like this:
Code: [Select]
Linie 2(text)(|)(|1.00|char_nospace);

also your attributes need to have distinct names like Skrifttype 1, Skrifttype 2, Skrifttype 3

-barnett

william

  • Beginner
  • *
  • Posts: 12
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #34 on: May 17, 2007, 23:55:05 pm »
hi barnett,

thanks for the quick update.  now the attribute without price adjustment indeed gets updated correctly in cart.

however, i've found another bug.  it is when i try to remove an item from shopping cart, it doesnt doesnt get removed, and updating quantity doesnt work neither

please look into this

thanks :)

snoo

barnett

  • Jr. Member
  • **
  • Posts: 92
    • Contemplate Design
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #35 on: May 18, 2007, 05:37:39 am »
hi barnett,

thanks for the quick update.  now the attribute without price adjustment indeed gets updated correctly in cart.

however, i've found another bug.  it is when i try to remove an item from shopping cart, it doesnt doesnt get removed, and updating quantity doesnt work neither

please look into this

thanks :)

snoo

I used your previous attribute code:
Code: [Select]
Size Options(Radio)(Select the SIZE)|title-hover)( Small [+0.00], Medium [+0.00], Large [+0.00], X-Large [+0.00], 2X-Large [+0.25] );Color Options(Radio)(Select the color and size, then enter quantity|title-hover)( Black|images/color/BLACK.gif, Red|images/color/RED.gif);
and had no problem removing items or updating them.

Please post the code you are having trouble with.
-barnett

william

  • Beginner
  • *
  • Posts: 12
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #36 on: May 18, 2007, 07:38:21 am »
ops..

i accidently added a number before the code, caused the problem.  it's fix now


-> i would like to edit the display format of the attributes, which file do i modify???  <-

thanks!

snoo

barnett

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

i accidently added a number before the code, caused the problem.  it's fix now


-> i would like to edit the display format of the attributes, which file do i modify???  <-

thanks!

snoo

the attribute label, help tip, and wrapper are found in the ps_product_custom_attribute.php file.

while the individual attribute elements or filed input are found in ps_product_custom_type.php file.

-barnett

Nick

  • Beginner
  • *
  • Posts: 13
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #38 on: May 18, 2007, 16:14:47 pm »
Hi,

I must be having a stupid moment here.   :-[ 

I have uploaded all the files in the first post. 
I am running 1.0.10.

However it appears as though the hack simply isn't working.  Please take a look at the image below. 

Now the only thing I can think of is that Safe Mode is on????



[attachment cleanup by admin]

barnett

  • Jr. Member
  • **
  • Posts: 92
    • Contemplate Design
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #39 on: May 18, 2007, 17:14:30 pm »
Hi,

I must be having a stupid moment here.   :-[ 

I have uploaded all the files in the first post. 
I am running 1.0.10.

However it appears as though the hack simply isn't working.  Please take a look at the image below. 

Now the only thing I can think of is that Safe Mode is on????

@ Nick-

please post the Attribute Code you are using!

Did you upload all four files in the .zip to the /administrator/components/com_virtuemart/classes/ folder?

do you have a link I could take a look at?
-barnett

Paul

  • Beginner
  • *
  • Posts: 9
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #40 on: May 18, 2007, 17:30:11 pm »
Hi Barnett,

I was asked by a client yesterday (they are uploading photos) if it is possible to set a minimum or maximum file size for file upload?

Thanks,
Paul

Nick

  • Beginner
  • *
  • Posts: 13
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #41 on: May 18, 2007, 17:45:07 pm »
Hi Barnett,

Here's the link:


http://www.garvel.com/index.php?page=shop.product_details&flypage=shop.flypage&product_id=17&category_id=4&manufacturer_id=0&option=com_virtuemart&Itemid=7


And the code that is the attribute is the example:

Donation(price)(please enter donation|title-below)(10.00|+)

I unzipped the files and ftp'd them in the normal manner!  I even tested one by putting in a comment just to make sure I was overwriting (the safe mode issue) - appeared as good as gold.

Thanks
N

barnett

  • Jr. Member
  • **
  • Posts: 92
    • Contemplate Design
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #42 on: May 19, 2007, 06:19:57 am »

http://www.garvel.com/index.php?page=shop.product_details&flypage=shop.flypage&product_id=17&category_id=4&manufacturer_id=0&option=com_virtuemart&Itemid=7

And the code that is the attribute is the example:
Donation(price)(please enter donation|title-below)(10.00|+)
I unzipped the files and ftp'd them in the normal manner!  I even tested one by putting in a comment just to make sure I was overwriting (the safe mode issue) - appeared as good as gold.

It looks like you put the code it the regular attribute area, rather than the "custom attribute" area.  Can't tell for sure b/c I don't have access to your backend.
-barnett

barnett

  • Jr. Member
  • **
  • Posts: 92
    • Contemplate Design
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #43 on: May 19, 2007, 07:01:42 am »
Hi Barnett,

I was asked by a client yesterday (they are uploading photos) if it is possible to set a minimum or maximum file size for file upload?

Thanks,
Paul

I've updated the hack to now allow for maximum & minimum file upload sizes.  The syntax is:
Name(file)(tip here|title-below)(directory|file types|charge|max file size|min file size);

download the new files and replace the ps_product_custum_type.php file.
Haven't tested this so please let me know if it works.
-barnett

NOTE: your server settings must allow for the max file size to be reached otherwise the file may not upload fully.

Marco

  • Jr. Member
  • **
  • Posts: 139
Re: Custom Attributes Extended 2.0 [Hack]
« Reply #44 on: May 19, 2007, 14:00:42 pm »
Hi

Thanks for this great update on this great hack.

My question.
Is it possible to show the prices in the attributes incl. tax?
I'm used for the attributes to fill in the + price excl. tax in the backend, and they show up in the frontend incl. tax.
That's ok, but with this version they show up excl. tax.
In the cart they show up incl. tax again.
The normal attributes show up in the frontend incl. tax, so it would be nice if attributes and custom attributes act the same way.