Search found 53 matches

by swpierce
30 Nov 2015, 17:01
Forum: Laravel package
Topic: Updating cart address at login
Replies: 10
Views: 7135

Re: Updating cart address at login

Your main problem might be the calculation depending on the weight of the products so it's no fixed shipping cost you can calculate with for your standard delivery area (US). Try to copy and modify the ServiceUpdate basket plugin to add the costs based on the API you are using. But beware: External...
by swpierce
30 Nov 2015, 15:55
Forum: Laravel package
Topic: Updating cart address at login
Replies: 10
Views: 7135

Re: Updating cart address at login

Trying to come up with a way around this but not having any ideas... I think now it's a bit a problem that you set a default address for each customer if they are not logged in. If you won't do this and only the first shipping option will be added by the "ServiceUpdate" basket plugin when ...
by swpierce
30 Nov 2015, 13:26
Forum: Laravel package
Topic: Updating cart address at login
Replies: 10
Views: 7135

Re: Updating cart address at login

Awesome! Thanks for the pointers. I'll start working on those "fixes" for our site. Our site is http://planabilities.com if you want to take a look. Thanks again for all the help in getting us up and running. Next step: writing a customer loyalty component to add to the site . The work nev...
by swpierce
30 Nov 2015, 04:52
Forum: Laravel package
Topic: Updating cart address at login
Replies: 10
Views: 7135

Updating cart address at login

I would like to adapt the basket such that when a customer authenticates, the address in the basket is automatically updated if the customer has an address set (which they should since we require it at registration). Conversely, it'd be nice if I could add a hook such that if customer logs out, bask...
by swpierce
30 Nov 2015, 04:34
Forum: Laravel package
Topic: Adapting existing routes
Replies: 7
Views: 5444

Re: Adapting existing routes

That's awesome. Thanks! :D
by swpierce
28 Nov 2015, 23:23
Forum: Laravel package
Topic: Adapting existing routes
Replies: 7
Views: 5444

Re: Adapting existing routes

If there are Aimeos objects that can do the job, it should be easy enough to use those with the AuthServiceProvider closure? Maybe something like: Use Aimeos\whatever\group\manager; $gate->define('admin', function($user) { $manager = getAimeosManager(); return $manager->isUserInAdminGroup($user); } ...
by swpierce
28 Nov 2015, 17:33
Forum: Help
Topic: Importing CSV
Replies: 6
Views: 3832

Re: Importing CSV [SOLVED]

If anyone has this same problem, here's the issue: No trailing commas! If the fields at the end are blank, just strip all the trailing commas and the processor figures it all out. Import crashes every time I leave any trailing commas in the file. Also, if you ever get an error that says Undefined in...
by swpierce
28 Nov 2015, 15:42
Forum: Help
Topic: Importing CSV
Replies: 6
Views: 3832

Re: Importing CSV

I hope so too. The HTML is exactly the same as Aimeos stores it in the database. I've loaded the CSV into OpenOffice and added a field-number row at the top. The fields match up exactly to the mapping. I even sat and counted the fields in the CSV by hand to double-check. I don't think it's a field c...
by swpierce
28 Nov 2015, 13:38
Forum: Help
Topic: Importing CSV
Replies: 6
Views: 3832

Re: Importing CSV

Here is the entire mapping: 'mapping' => array( 'item' => array( 0 => 'product.code', 1 => 'product.label', 2 => 'product.type', 3 => 'product.status', ), 'text' => array( 4 => 'text.type', 5 => 'text.content', 6 => 'text.type', 7 => 'text.content', ), 'media' => array( 8 => 'media.url', 9 => 'media...
by swpierce
28 Nov 2015, 05:32
Forum: Help
Topic: Importing CSV
Replies: 6
Views: 3832

Importing CSV

I'm trying to import some products via csv. I am running up against an error and I cannot figure out the issue. Maybe someone can spot what I'm doing wrong? My mapping (not all of it but the relevant parts....I think) : 'mapping' => array( 'item' => array( 0 => 'product.code', 1 => 'product.label', ...