Hmm, doesn't seem to work or maybe I did sth somehow wrong. I get blank page after I click on "save" beeing in shipment view. There is neither notification displayed nor email sent. Is variable $order_info.lang_code available at that stage?
Hmm, doesn't seem to work or maybe I did sth somehow wrong. I get blank page after I click on "save" beeing in shipment view. There is neither notification displayed nor email sent. Is variable $order_info.lang_code available at that stage?
It should work. Please PM me temporary FTP access so that our specialists can examine the issue.
I made a new carrier called "cpost" and everything works as intended.
I click the link in the invoice sent to Customer, it opens the correct Carrier tracking page.
I click the link in the shipments email sent to Customer, it opens the correct Carrier tracking page.
But when I click on the tracking link within an order (Admin side) it doesn't open to the Carrier tracking page like it should, it just opens the same order page.
I've double checked everything, cleared cache, searched the database etc to try and figure it out but can't make it work.
I found the problem. The new Carrier needs to be added to /app/schemas/shippings/carriers.php
Yes, you right. You can do it through addon. For example create app/addons/my_changes/schemas/shippings/carriers.post.php file with the following code:
I have added my new Carriers and all works well. Now I want to remove the old Carriers from the dropdown.
I have double checked my files, cleared cache, template cache, manually cleared var/cache yet they still persist.
Is the most elegant way to remove it to just delete the language variable?
By 'elegant' I mean to make them cosmetically disappear without ripping them from the core, I don't want to throw too many errors in future upgrades :)
The list of carriers depends on the cscart_shipping_services table. But we do not recommend to change it. Please delete unused carriers in the fn_get_carriers function (app/functions/fn.cart.php)
/**
* Get all available carriers
*
* @return array List of available carrier codes
*/
function fn_get_carriers()
{
$carriers = db_get_fields('SELECT module FROM ?:shipping_services GROUP BY module');
return $carriers;
}
I see it pulls all the carriers from the db and puts them in an array.
But now I am stuck. Do I exclude (remove) the unwanted Carriers from the array, or do I need to re-write the db query to select only the wanted Carriers?
Thanks a lot, the first part went fine but I am doing something wrong with the url replace. My edits seem to be ignored even though I clear the cache every time i edit something. I tried it both in the theme responsive as in our customized theme, which is a copy of responsive with some small edits.
Yes ive edited it there as well, but where should i see the effect? When i check the shipments of an order, nothing changes. I attached a screenshot to show which block i mean.