A short while back when I updated CSVI component, my order line items export template stopped working correctly. I used to get a list of all line items sold with the order number and custom field values populated. Now, for product_attribute, I get something cryptic, that looks like this:
{
"3": "89828"
}
I guess the "3" is the attribute custom field order, and "89828" is the custom field value. Is there any way to automatically cross reference and include the value for 89828 without me having to do a separate lookup?
- incolor
- RO CSVI
- Friday, 13 May 2016
- Subscribe via email
0
Accepted Answer
Pending Moderation
Hello,
CSVI should turn this into a human readable format. Which type of custom field are you using? The 89828 is the value you expect?
CSVI should turn this into a human readable format. Which type of custom field are you using? The 89828 is the value you expect?
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
That data is being populated from the virtuemart_product_customfields table.
"89828" is the virtuemart_customfield_id field, but what is important is the customfield_value field, in my case "24x36 Framed Paper".
"3" is from the virtuemart_custom_id, which is relatively unimportant to me. If it were to be properly referenced, it would relate to the virtuemart_customs table, and use the custom_title field.
In previous versions of CSVI, that information would be properly referenced and populated, albeit with some added garbage that I would "find and replace" to strip out.
Thank you,
Art
"89828" is the virtuemart_customfield_id field, but what is important is the customfield_value field, in my case "24x36 Framed Paper".
"3" is from the virtuemart_custom_id, which is relatively unimportant to me. If it were to be properly referenced, it would relate to the virtuemart_customs table, and use the custom_title field.
In previous versions of CSVI, that information would be properly referenced and populated, albeit with some added garbage that I would "find and replace" to strip out.
Thank you,
Art
Accepted Answer
Pending Moderation
Hello Art,
I do understand where the info is coming from. Which type of custom field are you using?
I do understand where the info is coming from. Which type of custom field are you using?
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
Hello,
So I checked this but it exports fine here. When you updated CSVI, did you also update the VirtueMart addon? Perhaps do that first, download the VirtueMart addon and install it. After that see if the export works or not. If not, I can take a closer look.
So I checked this but it exports fine here. When you updated CSVI, did you also update the VirtueMart addon? Perhaps do that first, download the VirtueMart addon and install it. After that see if the export works or not. If not, I can take a closer look.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
Here's what I have installed (entire list as screenshot). Note that I also have K2 installed.
CSVI Pro - VirtueMart
Site Plugin 6.5.7 24 April 2016 RolandD Cyber Produksi csviaddon
CSVI Pro
Administrator Component 6.5.7 24 April 2016 RolandD Cyber Produksi N/A
CSVI Pro - VirtueMart
Site Plugin 6.5.7 24 April 2016 RolandD Cyber Produksi csviaddon
CSVI Pro
Administrator Component 6.5.7 24 April 2016 RolandD Cyber Produksi N/A
Attachments (1)
Accepted Answer
Pending Moderation
Hello,
That all looks good. Can you sent me a private message with Joomla and FTP login? I will take a look why it isn't doing it.
That all looks good. Can you sent me a private message with Joomla and FTP login? I will take a look why it isn't doing it.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
Hello,
Thanks for that, I had a look. I see that the order items export have no special treatment for the product_attribute field. The order export however does, so that could be used I guess.
I just wonder if you had a patch in place if you were indeed using the order item export. Do you remember? If so, do you happen to know which patch?
Thanks for that, I had a look. I see that the order items export have no special treatment for the product_attribute field. The order export however does, so that could be used I guess.
I just wonder if you had a patch in place if you were indeed using the order item export. Do you remember? If so, do you happen to know which patch?
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
I use commonly two different exports. The order export is just to report monthly gross sales. Then the order item export is for product accounting to analyze what's being sold.
I've never used a patch that I know of. Is there a way to simply reset everything?
I've never used a patch that I know of. Is there a way to simply reset everything?
Accepted Answer
Pending Moderation
Hello,
If you have a backup of your old site, you could send me the file administrator/components/com_csvi/models/addon/com_virtuemart/models/export/orderitem.php, so I can check it.
Other than that, from what I see, you can use the fields you use for the line items also with a regular order export. So if you make a copy of the existing line item template (so you have a backup) and modify the copy to be an order export and set the filters to your needs. You should get the same output.
Let me know if that helps.
If you have a backup of your old site, you could send me the file administrator/components/com_csvi/models/addon/com_virtuemart/models/export/orderitem.php, so I can check it.
Other than that, from what I see, you can use the fields you use for the line items also with a regular order export. So if you make a copy of the existing line item template (so you have a backup) and modify the copy to be an order export and set the filters to your needs. You should get the same output.
Let me know if that helps.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
What did you do to the order items export template? I'm looking at it, comparing it to my live site, and the options tab is much different. Why are there more options on that tab? Everything else looks the same.
Whatever changes you made make it work properly now. I would like to replicate those changes to my live site.
Whatever changes you made make it work properly now. I would like to replicate those changes to my live site.
Accepted Answer
Pending Moderation
Hello,
I changed the operation from Order item to Order. That is why the tabs are different.
I changed the operation from Order item to Order. That is why the tabs are different.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
I have another question regarding the order items export. Why are most of the items doubled in the export but not in the invoices? There are two occurrences per line item of most, but not all. This is curious.
Accepted Answer
Pending Moderation
Hello,
You can check the Use of group and sort by fields document on how to manage the duplicates. One other way is, if you do not care about the addresses is to set the Order address type option to Billing address.
Why are most of the items doubled in the export but not in the invoices?Actually they are not double. A duplicate means that every single field is exactly the same but if you look deeper into the data you may notice that not all fields are actually the same. One of the reasons is that VirtueMart stores the billing and shipping address separate.
You can check the Use of group and sort by fields document on how to manage the duplicates. One other way is, if you do not care about the addresses is to set the Order address type option to Billing address.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »