Custom field values don't show on order - InStyle VM3

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Aug 30, 2016 12:37 pm
Reply with quote
Report this post
I have installed the InStyle template and I made some CSS modifications here www.esorouxa-busto.gr where I have Joomla 3.6.2 & VM 3.0.14. On the product page it shows the custom fields OK. I used position "ontop". I have also set the position "ontop" to all custom fields.
When someone makes any selection (i.e. size, color) and places an order, his selections don't show on his order in the backend and this way the shop owner doesn't know what color, size etc to send. It just displays the product name and SKU not any of the custom fields choosen. It's not either in the email he and the store owner gets after the order. Note that: The custom fields, that we need to get their values, are marked as "Cart Input" and "Cart Attribute".
I have found this thead : http://forum.virtuemart.net/index.php?topic=126629.0 where the problem was corrected by changing a line in the productdetails/default.php file. I tried doing the same thing but didn't work.... I saw in the jos_virtuemart_order_items table the field product_attribute has just two brackets ([]). It doesn't take the values of the custom fields after the order is placed. I think that this is because the way VM3 handles custom fields is different than in VM2.
Where should I search and why it's not working; Please Help....

P.S. If you need access please PM me.
User avatar
Fresh Boarder

GK User
Wed Aug 31, 2016 9:25 pm
Reply with quote
Report this post
I have this problem in my site too.
User avatar
Junior Boarder

GK User
Thu Sep 01, 2016 7:30 am
Reply with quote
Report this post
The basic question here is that if the InStyle template is Virtuemart 3 ready as advertised here: https://www.gavick.com/joomla-templates/instyle. I downloaded the latest template files from here but the productdetails/default.php is the same as before.
As this forum post says in order for the product attributes to pass on to the database in VM3 you need to have a different php code i.e. (<?php echo shopFunctionsF::renderVmSubLayout('addtocart',array('product'=>$this->product)); ?>) but that doesn't work. It shows two add to cart buttons ! ! !
What is the correct php code to add into the productdetails/default.php file when you have changed the position of custom fields into the product details page?
If anyone has found a solution to this please post it. My e-shop is running and the orders are coming w/o values for the custom fields that I use.
Thanks
User avatar
Fresh Boarder

teitbite
Thu Sep 01, 2016 9:10 am
Reply with quote
Report this post
Hi

Easiest to check is to rename /html/com_virtuemart to /html/_com_virtuemart template will than use VM original files. Let me know if after this test anything starts working. If not than problem is related with VM and You should contact VM support to solve than. If renaming the folder will make it work than it's a template issue, so I will be expecting joomla panela and ftp access to be able to fix it.
User avatar
Moderator

GK User
Thu Sep 01, 2016 11:55 am
Reply with quote
Report this post
Yes you are right ! ! ! Sorry I didn't think of that...
After renaming the directory and doing the test I still didn't get the values of the custom fields into my order.... So the problem relies into the VM3 ver 3.0.14 which I have installed and recently updated to. Could you make any suggestions on who to contact for that? Is posting to Virtuemart Forum (http://forum.virtuemart.net/) sufficient? Where elese can I post my problem?
Thanks and sorry for the incovinience
User avatar
Fresh Boarder

teitbite
Sun Sep 04, 2016 1:51 pm
Reply with quote
Report this post
Hi

Not a problem. Posting on VM forum should be all. Their support takes good care of their users.
User avatar
Moderator

GK User
Sun Sep 04, 2016 8:20 pm
Reply with quote
Report this post
I posted on VM forum for more than 3 days now but still no replies.
No one has the same problem? It just happened to me?
What do I need to do?
How can I troubleshoot that?
Can I downgrade my VM installation w/o loosing any datas to say 3.0 or some version between 3.0 and 3.0.17?

Thanks
User avatar
Fresh Boarder

teitbite
Wed Sep 07, 2016 11:24 am
Reply with quote
Report this post
Hi

I do not know what to tell You. We make templates and the only connection to VM we have is when we add some styling for it to match to our template. We do not change its functionality, so I'm really not a VM expert to be able to tell which version will work for You.

But I can tell You that I saw every thread on our forum and indeed it's the only report of that issue, but I assume if there are others experiencing that they could start from VM forum.
User avatar
Moderator

GK User
Wed Sep 07, 2016 12:32 pm
Reply with quote
Report this post
Thanks for replying...
I fixed the problem myself ! ! !
The problem was that I had changed in the line : echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$product,'position'=>'addtocart')); addtocart to ontop and also I set all custom fields' position "ontop" like we used to do in VM2.
This doesn't work for VM3. You have to leave the position to be addtocart otherwise you lose all custom fields' values from cart, orders and emails....
Thanks a lot for your concern.
BR
George
User avatar
Fresh Boarder

teitbite
Fri Sep 09, 2016 9:14 am
Reply with quote
Report this post
Hi

Ok. Thank You for the explanation. I'll pass this information to programmers.
User avatar
Moderator


cron