Needs review
Project:
Ubercart Views
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2010 at 15:09 UTC
Updated:
10 Feb 2011 at 16:02 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jpstrikesback commentedok that was rather easy:
Comment #2
xacobeIm tried this code in diferent places and I couldnt make work.
Could you explain where did you paste that piece of code? It´s not so easy for me.
Thanks
Comment #3
jpstrikesback commentedI just added it to uc.views.views.inc, inside hook_views_data()
Comment #4
madsph commentedThank you for the input.
I will see if I can include this in the module.
Since shipping is a new dependency, I will have to make some adjustments to avoid problems for people with out shipping.
Comment #5
xacobeThanks jpstrikesback,
I just added and I still couldnt get that numbers, Im using dev version with some modifications, so it is not properly tested. I could see a new field on views but not numbers on it :(
Ill keep trying
Comment #6
jpstrikesback commentedHere is something a little more complete then...but my date_api stuff doesn't seem to work i dunno why...
Comment #7
jpstrikesback commented@madsph Any idea why the date_api stuff I've done doesn't work?
Comment #8
madsph commentedSorry for taking so long to get back to you. Unfortunately the time I can spend on this project is very limited at the moment :-(
How ever - I have installed your module, and I can't see that there is anything wrong with it - what is about the date_api stuff you can't get to work?
Comment #9
jpstrikesback commentedHey, no worries : )
the date_api handler doesn't seem to work with the shipment date field, it uses it, but when it comes to selecting the actual field to filter on in the handler UI it's not there...does anyone see the same or am I in a alternate universe?
Comment #10
madsph commentedStrange - I can't reproduce any errors.
I have made a very simple view with only one field (shipping date), and an exposed filter using an exact date to match shipping date (see attached picture)
The environment I am testing on is slightly out dated:
Drupal: 6.15
Views 6.x-2.6
Comment #11
jpstrikesback commentedoops, I just downloaded what I uploaded and noticed that I've commented out the simple date_api call, it's on the last lines of uc_views_shipments.views.inc...my bad, if you want to uncomment it and test again I'd be very grateful!
Comment #12
madsph commentedOkay - I now get what you mean. I can't get the field to show up in the list either.
I will see if I can dig anything up and let you know.
Comment #13
Anonymous (not verified) commentedWhat does the patch in #6 create? I've installed & enabled it, but am so far not seeing any additional fields.
Comment #14
Anonymous (not verified) commentedHm, I think I found my problem. This submodule is for shipping costs on orders completed, rather than shipping costs associated with products themselves (ie: flat rate shipping cost per product). Any idea where I could find that to be put into views? Thanks.
Comment #15
longwaveI don't think per-product shipping costs are actually recorded anywhere, as not all shipping methods can provide this information - often a store will use a flat rate per order, or calculate based on total weight of items.
Comment #16
Anonymous (not verified) commentedI've got flat rate shipping set up, and it provides a field for each product to enter a non-default rate. Wish I knew enough php to write sometime for this myself.
Comment #17
longwaveThat could be exposed to Views against product nodes, but if you change or delete that flatrate in the future it won't be correct for previous orders as the history isn't available. Then again if you only want to show shipping prices on node views or something, this doesn't matter.