Your account is limited to posting only in the Pre-Sales Questions forum.
Support forum access is limited to members with a purchase history.

If you are working on behalf of another member, please contact us with the name of the license holder and we will upgrade your account.
   
2 of 5
2
Multi Currency Addon: Call for beta testers
Posted: 24 May 2012 02:39 AM   [ Ignore ]   [ # 16 ]
Has a Great Personality
Rank
Total Posts:  48
Joined  2011-06-16

Thanks, Chris.

I am getting a

exp_cartthrob_notification_events' doesn't exist
SELECT 
`notification_eventFROM (`exp_cartthrob_notification_events`) WHERE `applicationLIKE 'Cartthrob\_multi\_location%'

Filenamethird_party/cartthrob_multi_location/libraries/Mbr_addon_builder.php

Line Number
732 

database error on installation. I thought it might be because I am running CT 2.1.2, but I searched through version 2.1.3 and couldn’t find any reference to this table either. Am I missing something?

 

Thanks

Ben

Profile
 
 
Posted: 24 May 2012 03:00 AM   [ Ignore ]   [ # 17 ]
Has a Great Personality
Rank
Total Posts:  48
Joined  2011-06-16

Hi

I am also getting

Message: Use of undefined constant CARTTHROB_PATH assumed 'CARTTHROB_PATH'

Filenamelibraries/Mbr_addon_builder.php

Line Number
442 

Which then causes a fatal error on line 453, when I go to the multi location cp. Apologies if this is because of ct 2.1.2, but it doesn’t seem like it would be.

Thanks

Ben

Profile
 
 
Posted: 24 May 2012 03:49 AM   [ Ignore ]   [ # 18 ]
Has a Great Personality
Rank
Total Posts:  48
Joined  2011-06-16

Hello,

And then I got the error:

Class 'Cartthrob_child' not found in ...third_party/cartthrob/cartthrob/core/Cartthrob_shipping.php on line 3 


Sorry for the multiple reports. I found each issue after having patched the previous one.

Ben

Profile
 
 
Posted: 24 May 2012 05:34 AM   [ Ignore ]   [ # 19 ]
Has a Great Personality
Rank
Total Posts:  48
Joined  2011-06-16

Hello

So, I’ve gotten prices to display correctly (using correct price field and currency symbol depending on customer info as per multi location addon settings), but the currency code sent to the gateway is not affected. I use Cartthrob_sage. Is there some other step to get the order currency_code changed?

Thanks,

Ben

Profile
 
 
Posted: 24 May 2012 08:39 AM   [ Ignore ]   [ # 20 ]
Has a Great Personality
Rank
Total Posts:  48
Joined  2011-06-16

Sorry, ignore that last one. There was a hidden currency_code input field on the payment page that I had forgotten about!

Profile
 
 
Posted: 24 May 2012 09:24 AM   [ Ignore ]   [ # 21 ]
Has a Great Personality
Rank
Total Posts:  48
Joined  2011-06-16

Hello,

Now for a Feature/help request.

Will cartthrob_multi_location:price have a “plus_tax” option?  Could you help me with any tips on how I might quickly add something like this?

Thanks,

Ben

Profile
 
 
Posted: 24 May 2012 01:11 PM   [ Ignore ]   [ # 22 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10218
Joined  2008-09-29

database error on installation. I thought it might be because I am running CT 2.1.2, but I searched through version 2.1.3 and couldn’t find any reference to this table either. Am I missing something?

This has been fixed. The error is in the module builder, and the error’s been fixed.

Message: Use of undefined constant CARTTHROB_PATH - assumed ‘CARTTHROB_PATH’

I’ll have to look at that one. My guess is that CT isn’t being initialized (that’s where that constant is declared)

Sorry for the multiple reports. I found each issue after having patched the previous one.

If you have patches you wanna share, send them on. I’ll take a look at them. I try to stay on top of fixes to the module builder. We’ve been doing a lot of work on it lately adding features. Looks like it’s introduced some new instability. :(

Will cartthrob_multi_location:price have a “plus_tax” option?  Could you help me with any tips on how I might quickly add something like this?

I tried emailing you a revised multi location module (just he module file) let me know if you don’t get it.

{exp:cartthrob_multi_location:price:plus_tax row_id= OR entry_id=

 

 

 

 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 25 May 2012 02:30 AM   [ Ignore ]   [ # 23 ]
Has a Great Personality
Rank
Total Posts:  44
Joined  2010-04-08

Hi Chris

I’m afraid I am getting a white screen of death when trying to install or view the module settings.
The development site at the moment is a very complex setup, however, so I might run up a fresh install to test and report back.

If you don’t mind putting me on your list for revisions as and when they come out, I’d be glad to keep helping out with this.

Cheers
Andrew

Profile
 
 
Posted: 25 May 2012 07:32 AM   [ Ignore ]   [ # 24 ]
Has a Great Personality
Rank
Total Posts:  48
Joined  2011-06-16

If you have patches you wanna share, send them on. I’ll take a look at them.

These issues are quite simple, and I’ve been patching them to “just work”, not sure if its very helpful for you. For the first problem I just commented out all references to the notification_events table in cartthrob_multi_location/libraries/Mbr_addon_builder.php. There is one “$this->EE->db->delete(‘cartthrob_notification_events…” and, then two big blocks that are marked out with “///// NOTIFICATIONS ///////”.

Then for the next two issues, in mcp.cartthrob_multi_location.php, I just added the following line to the end of the constructor:

$this->EE->load->library('cartthrob_loader'); 

But I’m not sure if that is the most carrthrob-idiomatic way of doing it!

Ben

Profile
 
 
Posted: 25 May 2012 07:47 AM   [ Ignore ]   [ # 25 ]
Has a Great Personality
Rank
Total Posts:  48
Joined  2011-06-16

Chris,

Thanks for the plus_tax attempt. I am getting this:

Fatal errorCall to undefined method Api_cartthrob_tax_plugins::get_tax() in /home/ben/work/goodwithfilm.com/httpdocs/admin/expressionengine/third_party/cartthrob_multi_location/mod.cartthrob_multi_location.php on line 51 
Profile
 
 
Posted: 25 May 2012 07:48 AM   [ Ignore ]   [ # 26 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10218
Joined  2008-09-29

or the first problem I just commented out all references to the notification_events

That one’s been solidly fixed. I put in a check for the table.

Then for the next two issues, in mcp.cartthrob_multi_location.php, I just added the following line to the end of the constructor:

Yep. That’s the way I did it locally. I’ll send you both the updated copy.

 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 25 May 2012 08:49 AM   [ Ignore ]   [ # 27 ]
Has a Great Personality
Rank
Total Posts:  48
Joined  2011-06-16

Thanks Chris, got that new version.

Now this one is a bit of a mystery:

When I change my country in a save_customer_info form, then on the next page (to which the save_customer_info_action redirects) the currency has changed but the prices and shipping values of items in the basket have not changed. They only change when I reload the page. (So the item price will e.g. go from £100 to $100, and then after refreshing the page it will show correctly as $150, which it should have been the first time the page loaded) This only seems to affect items in the basket, not product prices otherwise displayed on the page.

Any ideas?

Thanks,

Ben

Profile
 
 
Posted: 25 May 2012 09:42 AM   [ Ignore ]   [ # 28 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10218
Joined  2008-09-29

Sounds like a problem that at one point was fixed. I think I added a template hook to force EE to do some business… last time I looked it seemed like that hook wasn’t being run on one of my systems. At the time, since a few other things were broken, I assumed that was an aberration. I’ll have to look into it.

What version of EE do you have going?

 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 28 May 2012 03:42 AM   [ Ignore ]   [ # 29 ]
Has a Great Personality
Rank
Total Posts:  48
Joined  2011-06-16

Chris,

I am running EE 2.3.1, but I have added the necessary hooks into EE. Your template_fetch_template hook is definitely being called.

It’s the other one, cartthrob_update_cart_end, that’s not getting called, because I am using a save_customer_info form. I think maybe you need to have that hook operate on cartthrob_save_customer_info as well. That way, the prices are updated before the new page is loaded—because when the new page is loaded I am guessing that the old cart is read in before the multi location extension is called by the fetch_template hook.

Ben

Profile
 
 
Posted: 28 May 2012 03:48 AM   [ Ignore ]   [ # 30 ]
Has a Great Personality
Rank
Total Posts:  48
Joined  2011-06-16

For the missing function problem with the tax api, I added this function to Api_cartthrob_tax_plugin:

public function get_tax($price$item null)
 
{
  
if ($this->plugin() && method_exists($this->plugin(), 'get_tax'))
  
{
   
return $this->plugin()->get_tax($price$item);
  
}
  
  
return '';
 
Profile
 
 
   
2 of 5
2