exp_cartthrob_notification_events' doesn't exist SELECT `notification_event` FROM (`exp_cartthrob_notification_events`) WHERE `application` LIKE 'Cartthrob\_multi\_location%'
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?
Message: Use of undefined constant CARTTHROB_PATH - assumed 'CARTTHROB_PATH'
Filename: libraries/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.
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?
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=}
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.
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!
Thanks for the plus_tax attempt. I am getting this:
Fatal error: Call 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
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.
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.
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.