News:

Looking for documentation? Take a look on our wiki

Main Menu

Attributes/Custom Fields Thread

Started by PRO, September 12, 2011, 15:02:49 PM

Previous topic - Next topic

OpenGlobal

2.0.7 is the current development stream, not due for general release. 2.0.6 is the latest public release.

OpenGlobal

dsrpmedia

Quote2.0.8? I never saw 2.0.7 released. My site has been cusomtized / hacked so much, I don't think I can upgrade off of 2.0.6

lol I was just thinking the same thing - I`m really hoping all the changes I`ve had to make to 2.0.6 to get it to the point where it is almost as functional as vm 1.1 work on the next version. (or better yet all the things I`ve had to fix are now fixed in the core)

spyderwebdesign

Quote from: OpenGlobal on June 17, 2012, 10:52:35 AM
This has been fixed for 2.0.8 anyway.

In 2.0.8 does the "notify me" text show for the parent items with stock set to 0? If so, does the "add cart" but still show for the parent item that has stock defined?
I currently set the parent stock to 0 because I don't want people ordering a shoe without a size.

OpenGlobal

In 2.0.8 (assuming stockable cart variants hasn't been replaced by Generic Child Variants), everything will be based on the child product stock levels, not the parents. The Generic Child Variants will also have options to work this way.

OpenGlobal

rvbgnu

#289
And what about cart variant multi-langual?
When the HTML menu (select / option) is built, the strings are not translated. But once in the cart, or other view, they are...

Probably something very simple for php skilled programmer, but not for a beginner  :-\

Please have a look here to see what I mean exactly:
[EDIT: URL removed because page layout changed and uses now DropBox plugin]
http://REMOVED/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=9&virtuemart_category_id=7&Itemid=173&lang=en

and other tread here:
http://forum.virtuemart.net/index.php?topic=100784.msg344154#msg344154
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

3D Secure v1 (3DS1) & Strong Customer Authentication (SCA)! Stripe.com payment plugin for VirtueMart 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart

OpenGlobal

That one's on my list so should hopefully make it into 2.0.8 in one way or another.

OpenGlobal

rvbgnu

That's great OpenGlobal !
Let me know if you need any test, I will be more than happy to help (I am helping a bit in the Joomla Bug Squad as well, so testing is ok with me).
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

3D Secure v1 (3DS1) & Strong Customer Authentication (SCA)! Stripe.com payment plugin for VirtueMart 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart

OpenGlobal

rvbgnu,

Please try out the attached changes. Simply drop the (unzipped) file into plugins/vmcustom/stockable/.

It also includes the fixes for all of the other problems with it that I've been dealing with.

OpenGlobal

[attachment cleanup by admin]

rvbgnu

Thank you OpenGlobal.
Just tried your file, but no changes at all for me... well, I am not using stock control.
I think I will look into other custom field type, and try something else. I did not want menu select/option anyway, but rather radio button, and a list in a text area. I am a bit confused now. I am fixing something else, and then I might have a better idea ;-)

Keep on the good work, and I keep you posted too!
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

3D Secure v1 (3DS1) & Strong Customer Authentication (SCA)! Stripe.com payment plugin for VirtueMart 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart

Maxim Pishnyak

#294
Quote from: spyderwebdesign on June 17, 2012, 05:27:34 AM
HOLY CRAP!!! - I think I found it with my fundamental php skills.

This appears to work, but I need to test ordering a product to see what happens.

in administrator\components\com_virtuemart\models\customfields.php
around line 763

foreach($uncatChildren as $k => $child){
   $options[] = array( 'value' => JRoute::_('index.php?   option=com_virtuemart&view=productdetails&virtuemart_category_id='.$virtuemart_category_id.'&virtuemart_product_id='.$child['virtuemart_product_id']) ,'text' =>$child['product_name']);

change to

foreach($uncatChildren as $k => $child){
   $options[] = array( 'value' => JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id='.$virtuemart_category_id.'&virtuemart_product_id='.$child['virtuemart_product_id']) ,'text' =>$child['product_name']);
   $options[0]['text'] = "Please choose a size";
               }
or just add
   $options[0]['text'] = "Please choose a size";
on the line before the
}
any luck to use such construction?
if (sizeof($options) > 1) {
    $options[0]['text'] = JText::_('COM_VIRTUEMART_SET_PRODUCT_TYPE');
}
cos we already this have language constant
COM_VIRTUEMART_SET_PRODUCT_TYPE="Choose product type"
in en-GB.com_virtuemart.ini
or better to ask svn about some fresh constant like:
COM_VIRTUEMART_SET_Size="Please choose a size"
COM_VIRTUEMART_SET_Simple_Chooser="Choose"
COM_VIRTUEMART_SET_Smart_Developer="Choose you destiny, Virtuemart"
How da you think, guys?  :P
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

ccvid

Maybe this is where I need to ask this question:  I'm working on a cart for a ministry.  We'd like customers to be able to add a donation when they place their product in the cart.  In other words, a little text field where they type in the amount they want to donate.  Then that amount is added into the cart as a donation.  How would I do this?

rvbgnu

Quote from: OpenGlobal on June 20, 2012, 14:30:04 PM
That one's on my list so should hopefully make it into 2.0.8 in one way or another.

OpenGlobal
Hi OpenGlobal,
I have been confused with stock control and without stock control cart variant. And now with child product, it looks not good to me with all my 150 products with custom fields and language constant that are not displayed...
I just want to display, in two different languages, the product options on the product detail page, with choice of size and colour (for clothes).

Any update, please?
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

3D Secure v1 (3DS1) & Strong Customer Authentication (SCA)! Stripe.com payment plugin for VirtueMart 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart

OpenGlobal

I believe the translations are now fixed in 2.0.8. If you want stock control, use stockable cart variant, if you don't want stock control, just use a customfield with cart variant.

OpenGlobal

accessvirus

I have a product of a wooden board with all different sizes and different prices. All prices need to be including 19% VAT. What I did was adding a "shopping cart variable" at "custom fields" and put in a line at "standard" inputbox and "in list?" and "add to shopping cart" ticked.

at "standard" I put in:
1,9x20x40;2,9x20x40;3,9x20x40;4,9x20x40; (etc etc... untill I unfortunatly cannot exceed the 255 chars. Or I am doing something not intended here, I suppose. Or the line needs to become a textbox) Anyway... for this part it works functionally except for getting stocked, but happily I don't need that with this customer, else I was screwed... ) Now... I made a VAT amount of 19% as mentioned earlier. This amount is calculated correctly on the prices except for discounts for "shopping cart variable".

When I put in for:
1,9x20x40 -> 1.10 (1.10 euro added ON the default product price.)
2,9x20x40 -> 1.20 (1.20 euro added ON the default product price.)
3,9x20x40 -> 1.30 (1.30 euro added ON the default product price.)
4,9x20x40 -> 1.40 (1.40 euro added ON the default product price.)

the price in those above here needs to be put in EX VAT. So if I put in 1 there, the frontend tells me 1.19 (oke, not the biggest deal, but it whould be handy if I could put in the amount INCL. VAT also optionally like in the article page itself is possible)

Untill here I don't meet much problems..... but then shit happens :)

When I make a discount for the product, for instance lets say 2 euro. I want to be able to choose on which of these wooden boards the fixed discount applies to. (with a check marker?) It now seems that all other dropdown menu items have an increased discount amount?!. So my 2 euro discount for default product becomes 2.20 for the second instance. Oke... what I did was, assuming the above shopping cart variable method isn't suited for this matter. I choose another custom field to test.... "plugin". I noticed 3 options with childs etc... But then I can't seem to manage, reading all obove posts, to exclude the child items. I don't need child items. I just need a container with variable products. Preferably with no root price and discounts on choosen variable products.

For now I met 2 problems:

1. with shopping cart variable the amount of input at standard is 255.
2. with shopping cart variable the discount is miscalculated for all other "shopping cart variable" products.
3. with shopping cart variable the amount put in at the product its custom field is ex VAT only. (even hikashop has this option to choose between inc, exc)
4. maybe the most important when choosing a discount is that the price amount stays the same, also with a larger size of wooden board :) (can;t be good :))

note: (instead of using the custom fields I tried sub products, but those are buggy and doesn't show up in the website at some child level below the product or in the categorie, it doesn't show me a price in the overview but does in the details and is also to complex for every different size being put in for each different type of wood)
Jack of all trades with a specialization in Branding, Graphic- & sound design

rvbgnu

Quote from: OpenGlobal on July 12, 2012, 18:17:59 PM
I believe the translations are now fixed in 2.0.8. If you want stock control, use stockable cart variant, if you don't want stock control, just use a customfield with cart variant.

OpenGlobal

Hi OpenGlobal,
I am using custom fields with cart variant. I tracked down into JHtml select.genericlist with XDebug, and found a weird issue:
- the same custom field WITHOUT cart variant is well translated (but of course no displayed in a dropdown list)
- with cart variant enabled, no translation: the JText method is called and entered just before the building of <option> tags as it should be, BUT the value string is not returned translated... I have tried to put the language constant value in all the main .ini files, to check a wrong file loading of the language override, but to no avail.

Getting a bit crazy, so my workaround will be to use the DropBox plugin
http://forum.virtuemart.net/index.php?topic=99678.msg350054#msg350054

I have still an issue with cart variant, but at least I've got a nice formatted dropdown list for my options (choice of colour and size for clothes).

And I feel that the custom fields implementation for multi lingual may change again, so I cannot afford to update all the products again...

Any hint on the JHtml select.genericlist / JText issue?


PS: not use to report/contribute with the VM team, where should I post this issue to help find a solution?
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

3D Secure v1 (3DS1) & Strong Customer Authentication (SCA)! Stripe.com payment plugin for VirtueMart 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart