Welcome, Guest. Please login or register.
Login with username, password and session length


VirtueMart 1.1.8 - [SECURITY RELEASE] is available! Read more....

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
Pages: 1 ... 62 63 [64] 65 66 67   Go Down
Print
Author Topic: Converted Custom Attributes Extended Hack 2.1 for VM 1.1 + J1.5  (Read 323175 times)
StrakOntwerp
Newbie
*
Posts: 4


« Reply #945 on: March 24, 2011, 19:53:01 PM »

Hi all,
I have a question for a clothing webshop I'm working on. The attributes I have are product (mens shirts or woman shirts), size and color.
I'm trying to get the image to change when I change the color or the product.
Is this possible with Custom Attributes Extended and if yes, how?
Thanks alot!
Logged
blueargylemedia
Newbie
*
Posts: 25



« Reply #946 on: March 24, 2011, 22:39:07 PM »

Oh I have no doubt the hack works I use it on my own commerce site. In fact I tested the syntax for the non working site on my working site and it works like a charm there. If I enable mootools upgrade i get an internal server error when adding to cart. If I use one attribute at a time it works, two or more and I get a dead add to cart button. donate function turns into zero at the cart but not the mini cart module. non custom attribute items are fine. All items added to cart must be done with ajax on or i get to a blank screen. I have disabled everything unnecessary but jm rockettheme html calls some stuff and has some js stuff commented out (As I recall, I think). My head is spinning. I will try permissions but after that I think I am out of my scope of understanding. I have no clue what the heck. This site is like a teenagers room. There is form and function in there somewhere but there is so much stuff piled on top.  Thanks for all your help and direction.
Logged
webgobe
Advanced
Sr. Member
*****
Posts: 384


Follow me on Twitter! http://twitter.com/webgobe


WWW
« Reply #947 on: March 25, 2011, 03:29:11 AM »

Is this possible with Custom Attributes Extended and if yes, how?
Not "per se", you need to hack the hack to do it. It is possible, but you need to make your hands dirty with some JavaScript.
But if you ask me, for this kind of setup I would go another route, or using parent-child products like there:
http://www.topratediamonds.com/new/index.php?page=shop.product_details&flypage=flypage.tpl&product_id=122&category_id=7&option=com_virtuemart&Itemid=53
or using product types, like here:
http://www.kadkitchenandbedroom.co.uk/index.php?option=com_virtuemart&page=shop.browse&category_id=4&Itemid=53&vmcchk=1&Itemid=53
Logged

Like a fine wine... Good from the start and getting better over time.
Donations are welcome!
webgobe
Advanced
Sr. Member
*****
Posts: 384


Follow me on Twitter! http://twitter.com/webgobe


WWW
« Reply #948 on: March 25, 2011, 03:30:44 AM »

but jm rockettheme html calls some stuff and has some js stuff commented out (As I recall, I think).
Don't tell me, that is RT Mynxx... I love RT!!! but I HATE Mynxx...
Let me know if I can help in any way, would be happy to do it.
Logged

Like a fine wine... Good from the start and getting better over time.
Donations are welcome!
erwin_m
Jr. Member
**
Posts: 54


« Reply #949 on: March 26, 2011, 06:27:30 AM »

Hi Webgobe,

I've bin trying for a couple of evenings, but I'm still doing something wrong. I just can't get it right.
At this moment I've entert the following code:

Afmetingen (surface)(Hebt u onze inmeettips gelezen?|title-hover)(500|1000|1|18.75|10|18.75|25|18.75|1000000)

500|1000 for minimum 1/2 square meter
18.75 price per 1/2 square meter
1000000 multiplier from mm to m

Initial price is also set as 18.75

When I order a window 2000x1000mm, so 2 square meter, I will be billed for 21,31 including tax. This must be 75 excl. 19% tax.

Can you tell me what I'm doing wrong?

Logged
webgobe
Advanced
Sr. Member
*****
Posts: 384


Follow me on Twitter! http://twitter.com/webgobe


WWW
« Reply #950 on: March 26, 2011, 13:26:33 PM »

OK, I see where I was wrong - and where You where wrong here Wink
First of all, my fault. I was not very clear on, that the prices in the attribute's argument list MUST BE the prices for the surface units - so for example square meters if you use metrical system in your shop. Not for the minimal surface, as you did. Here's my biggest error, one of my messages potentially misleaded you - and others alike. My apologies.
Also I may not was clear enough on the fact, that EVERYWHERE in the CAE extended hack argument list you must set NET prices (prices withouth tax.)
Third mistake I may be made guilty of is that there are couple of variants of the hack, on the older variants indeed you should add for the multiplier 1000000 if you want to use millimeters, but sometimes in late september I corrected this, and now the much more natural figure of 1000 should be used. This is in the readme attached to the hack, and soon will be included in the upgraded documentation to.
So, having the above in mind, and presuming that the 18.75 was the price WITHOUTH tax for the 0.5 square meter - the initial price of the product, your code should look like:
Code:
Afmetingen (surface)(Hebt u onze inmeettips gelezen?|title-hover)(500|1000|0.5|37,50|10|37.50|25|37.50|1000)
And this code will give you the right price. (note, that the first surface step's value isn't 1 square meter - but the surface of the minimal size, 0.5.)
If the 18.75 was the price including tax, then you need to update the prices above accordingly.
Logged

Like a fine wine... Good from the start and getting better over time.
Donations are welcome!
webgobe
Advanced
Sr. Member
*****
Posts: 384


Follow me on Twitter! http://twitter.com/webgobe


WWW
« Reply #951 on: March 26, 2011, 13:28:28 PM »

Some of the confusion regarding this hack is created due the fact, that nobody really knows, which is the last version of the hack, since I unpublished it from my homepage, and posted it here as an attachment following the dispute I had with one of global moderators.
To eliminate this, I will republish the hack on my homepage, and will add a link to it in my signature. Hopefully this won't start again a dispute, because I never claimed, that I'm the sole author of the hack, and I have giving full credit to ALL contributors now and everytime.
But since I'm the sole person still supporting the hack, and from the more, than a half of existing attributes are the result of my work, I think I can't be accused of hijacking other's work by posting it on a single, easy to access and to locate site, reducing the confusion and made it easier to support in the future.
So, here's the list of contributors once again:
• Barnett - original J1.x version
• Joseph Kwan (JK) – port to J1.5
• Nemesis02 – port to VM 1.1.2
• Cer – error reporting
• Ben Stovall – groups
• Ruppert – Documentation
• Mike Taylor – Documentation
So, fellow contributors, if any of you have anything to say related to the above, let me know, I will try to find a solution to make happy everyone. But the current situation is leading to a chaotic "ecosystem", and ever with my determination to keep supporting this hack FREE OF CHARGE, and to made public ANY new developments slowly made it a chore to do it. If none of you contacts me with their observations/ideas I consider, that you agree with the solution chosen by me.

 
Logged

Like a fine wine... Good from the start and getting better over time.
Donations are welcome!
erwin_m
Jr. Member
**
Posts: 54


« Reply #952 on: March 26, 2011, 17:09:23 PM »

Ok, I've tried the previous. I do not find it interesting who's fault something is. I'm already glad when its working and somebody is willing to help me Wink.
With the previous code set, I set a initial price 37,50 and to 18,75 and to zero (indeed wihout tax). Then the calculated price isn't right in all cases.
I'm using mynx, I know, I know, but i have manually overwrite each file. In he backend you've checked it, previous. I don't know which hackversion I'm using at the moment. I was starting with it in december and have used the newest file from your website.

Do you have more suggestions?
Logged
blueargylemedia
Newbie
*
Posts: 25



« Reply #953 on: March 27, 2011, 12:58:14 PM »

but jm rockettheme html calls some stuff and has some js stuff commented out (As I recall, I think).
Don't tell me, that is RT Mynxx... I love RT!!! but I HATE Mynxx...
Let me know if I can help in any way, would be happy to do it.


Mynxx does not seem to be a super favorite.  No, it is Versatility II which looks to be old??? I did a fresh install of vm and jm and added the hack in a directory on the same server. It too had internal server errors and all the wonky results I mentioned above. So for now I have it installed my godaddy shared hosting servers where it works fine and I have it in wrappers so at least they have a work around that looks to be part of their site until I figure it out. Its hard to go wild on a production site so this way I can play in the sandbox while they are still able to function.

You have been awesome, so thank you.  I will post when I figure it out so if anyone has these issues won't have to go through this out... or if need to beg for more help Smiley Thank your for your offer to help!
Logged
timkolm
Newbie
*
Posts: 16


« Reply #954 on: March 27, 2011, 15:59:13 PM »

What if i want to use the entered surface data in other attribute items? I sell banners and if a customer enters width and height and wants the banner to be sewn all around is there any possibility to automatically calculate the perimeter and multiply it by one meter price, then add this price to the total?
Logged
webgobe
Advanced
Sr. Member
*****
Posts: 384


Follow me on Twitter! http://twitter.com/webgobe


WWW
« Reply #955 on: March 28, 2011, 05:42:17 AM »

Do you have more suggestions?
Will re-check the site, and get back to you!
Logged

Like a fine wine... Good from the start and getting better over time.
Donations are welcome!
webgobe
Advanced
Sr. Member
*****
Posts: 384


Follow me on Twitter! http://twitter.com/webgobe


WWW
« Reply #956 on: March 28, 2011, 05:47:21 AM »

What if i want to use the entered surface data in other attribute items? I sell banners and if a customer enters width and height and wants the banner to be sewn all around is there any possibility to automatically calculate the perimeter and multiply it by one meter price, then add this price to the total?
In the hack you will find allteady the "windows" attribute- wich is an evolved version of the "surface" wich is doing exacly that, from the entered width/height attributes is calculating the size (and the price of) a windows blinds and couple of other,  similar things.
You can take that code and to adapt it for your needs.
And the druckstadt.de site I mentioned in one of above posts is selling banners and flags too - and he had similar needs, and solved them based on this hack.
Logged

Like a fine wine... Good from the start and getting better over time.
Donations are welcome!
timkolm
Newbie
*
Posts: 16


« Reply #957 on: March 28, 2011, 14:54:19 PM »

are the "windows" attributes included in the latest surface hack?
Logged
peter678
Newbie
*
Posts: 4


« Reply #958 on: March 28, 2011, 15:07:13 PM »

Hi I've been using this hack on several sites since the first 1.0x Joomla versions and I love it.  I have a very specific problem with a new site i just deployed Joomla 1.5.9 VM Version 1.1.3. and i have contributed a couple of items to the hack (formatting fixes.)

Everything with this current site works as expected except for photo uploads *DISCLAMER IVE DONE EXTENSIVE SEARCHING IN THE FORUMS* Ajax is turned off but i dont even think thats the problem. The permissions and ownership of the directories and paths in VM are correct.  This is confirmed by deleting the directory and allowing the function to create the non existant directory and write the .html file that prevents direct access. The product gets added to the cart with all other custom attributes, but I get a vm logger msg ERROR: <blank> (The blank msg is a lack of the $VM_LANG->_PHPSHOP_FILES_UPLOAD_FAILURE not being in the language file but it would read "File/Image Upload Failed" if it where there but i digress...)

I tracked down where the error is thrown in this file:
/var/www/virtual/usankf.org/htdocs/administrator/components/com_virtuemart/classes/ps_product_custom_type.php


On or about Line 650 there is the function that handels uploads 'function customTypeProcess($value, $field=array())' I have traced the error to a simple boolean expression on or about line 710 of this function

Code:
if (isset($_FILES[$titlevar]) && is_array($_FILES[$titlevar])){
  
    ... Does a bunch of validation and uploads the file and logs problems...

}

Well the simple problem is that $_FILES is indeed an array but it is empty.  So with an empty array there is no filename passed into the function to init the upload.  With that said when I debug VM and look at the global $vars the filename of the upload IS contained in that array.

Code:
product_id => 18
Last_Name => David
First_Name => Richmond
Middle_Initial => P
Address_Line_1 => 110 anywhere st
Address_Line_2 => Suite A
City => Tomons
State => Hidalgo
Zipcode => AB4k33
Phone_Number => 44343250003
Email => nospam@thanks.com
Date_of_Birth => 5/15/89
Upload_Photo => IMG_0317.JPG
minimum_quantity => 0
flypage => shop.flypage.tpl
page => shop.cart
manufacturer_id => 1
category_id => 6
func => cartAdd
option => com_virtuemart
Itemid => 6
RokMicroNews => {"0":{"open":true,"element":"section-3-6"},"1":{"open":true,"element":"section-3-8"}}
ys-vmconfiguration-active => s:ext-comp-1005
ys-dashboard-active => s:ext-comp-1003
ys-debugpanel-active => s:ext-comp-1004
ja_purity_tpl => ja_purity
switchmenu => 8
virtuemart => 0230673836761533558d5eb174e2ec65
9aad8b7fa1d531ce90e6a50544104382 => 0230673836761533558d5eb174e2ec65
cbcc6125788040a19323045f8e5af6d6 => c4525bef2a4177724b98ccd7360bcd9e
order_subtotal_withtax => 50
payment_discount => 0

One post mentioned this was AJAX turned on but as I mentioned mine is off. I also contemplated some sort of Template error since i use a rocket theme and i did find a post about a problem with one of their themes.  So to eliminate that as a problem I changed back to the Default 1.5 Joomla Template and the behavior did not change.  Then to beat a dead horse i took a site that already had VM 1.1.3 and this hack working and copied the administrator/ and components/ for VM over to this site and it STILL didn't change the behavior.  I also systematically unpublished every module so that it was a default joomla template AND only VM and the Cart to eliminate any module conflicts. I am now thoroughly stumped and cant figure out why that variable is staying empty.  I am using ssl but only on checkout so I dont think that would matter but i mention it for completness.

Can anyone lend a hand?

Solved: In the crappiest way possible...a complete reinstall of everything including VM 1.1.4 and the 1.1.2 v1.5 extended attribute hack.  So for all the people who keep asking if it works with 1.1.4 ever read this deep in the thread -- IT WORKS FOR 1.1.4 FOR ME.

David Richmond

had same problem except mine was working ok & then stoppped only on some products. Have established that adding 'related products' to a product stopped the file upload working.
Logged
webgobe
Advanced
Sr. Member
*****
Posts: 384


Follow me on Twitter! http://twitter.com/webgobe


WWW
« Reply #959 on: March 29, 2011, 02:35:09 AM »

are the "windows" attributes included in the latest surface hack?
As I know, yes, but in worst case you can find a version focusing on that attribute on my site http://webgobe.ro/en/
Logged

Like a fine wine... Good from the start and getting better over time.
Donations are welcome!
Pages: 1 ... 62 63 [64] 65 66 67   Go Up
Print
Jump to: